Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.04641/0.04641, allocations: 9.132 MB / 28.99 MB, free: 408 kB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000945/0.000945, allocations: 98.58 kB / 35.33 MB, free: 0.9141 MB / 24.77 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 164.2 kB / 38.73 MB, free: 2.371 MB / 24.77 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.001/1.001, allocations: 177.2 MB / 219.2 MB, free: 10.07 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo): time 0.004416/0.004416, allocations: 0.8294 MB / 276.5 MB, free: 0.7031 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo): time 1.819/1.819, allocations: 274.9 MB / 0.5419 GB, free: 0.6484 MB / 0.4949 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo) Using package SDF with version 0.4.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Running command: translateModel(AixLib.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter") translateModel(AixLib.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 0.6379 GB, free: 14.13 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.586e-05/1.752e-05, allocations: 6.25 kB / 0.6379 GB, free: 14.12 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.IO.Files.Examples.JSONWriter): time 0.002374/0.002391, allocations: 1.743 MB / 0.6396 GB, free: 12.36 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0009238/0.003315, allocations: 0.6113 MB / 0.6402 GB, free: 11.75 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.003418, allocations: 7.938 kB / 0.6402 GB, free: 11.74 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.003622, allocations: 19.8 kB / 0.6402 GB, free: 11.72 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.003846, allocations: 71.59 kB / 0.6403 GB, free: 11.65 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001804/0.004027, allocations: 75.78 kB / 0.6403 GB, free: 11.57 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0001549/0.004182, allocations: 135.6 kB / 0.6405 GB, free: 11.44 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.004311, allocations: 38.23 kB / 0.6405 GB, free: 11.4 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001635/0.004474, allocations: 83.73 kB / 0.6406 GB, free: 11.32 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 8.446e-05/0.004559, allocations: 51.81 kB / 0.6406 GB, free: 11.27 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 2.229e-05/0.004581, allocations: 8 kB / 0.6406 GB, free: 11.26 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.004654, allocations: 24 kB / 0.6407 GB, free: 11.24 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 7.231e-05/0.004726, allocations: 47.83 kB / 0.6407 GB, free: 11.19 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.004759, allocations: 31.86 kB / 0.6407 GB, free: 11.16 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.004916, allocations: 119.5 kB / 0.6409 GB, free: 11.04 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 1.333e-06/0.004918, allocations: 0 / 0.6409 GB, free: 11.04 MB / 0.6043 GB Notification: Performance of FrontEnd: time 5.31e-07/0.004918, allocations: 4 kB / 0.6409 GB, free: 11.04 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 3.918e-06/0.004922, allocations: 0 / 0.6409 GB, free: 11.04 MB / 0.6043 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0003769/0.005299, allocations: 368 kB / 0.6412 GB, free: 10.66 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.00533, allocations: 15.92 kB / 0.6412 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.005442, allocations: 20.92 kB / 0.6412 GB, free: 10.62 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.005626, allocations: 189.4 kB / 0.6414 GB, free: 10.41 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.396e-06/0.005634, allocations: 4.359 kB / 0.6414 GB, free: 10.41 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.005645, allocations: 12.38 kB / 0.6414 GB, free: 10.39 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.005787, allocations: 133.2 kB / 0.6416 GB, free: 10.24 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.001e-06/0.005793, allocations: 192 / 0.6416 GB, free: 10.24 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-06/0.005801, allocations: 384 / 0.6416 GB, free: 10.24 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.005808, allocations: 11.92 kB / 0.6416 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.338e-05/0.005831, allocations: 11.94 kB / 0.6416 GB, free: 10.22 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002833/0.006114, allocations: 221.7 kB / 0.6418 GB, free: 9.984 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 3.684e-05/0.006151, allocations: 26.5 kB / 0.6418 GB, free: 9.949 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.378e-05/0.006165, allocations: 4.859 kB / 0.6418 GB, free: 9.941 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.021e-05/0.006175, allocations: 4 kB / 0.6418 GB, free: 9.938 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.85e-05/0.006264, allocations: 120.6 kB / 0.642 GB, free: 9.789 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.006265, allocations: 0 / 0.642 GB, free: 9.789 MB / 0.6043 GB Notification: Performance of matching and sorting (n=3): time 9.806e-05/0.006363, allocations: 49.62 kB / 0.642 GB, free: 9.734 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.006394, allocations: 85.09 kB / 0.6421 GB, free: 9.633 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.006507, allocations: 205.1 kB / 0.6423 GB, free: 9.418 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.006519, allocations: 29.69 kB / 0.6423 GB, free: 9.383 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 3.664e-05/0.006556, allocations: 108.5 kB / 0.6424 GB, free: 9.273 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.006571, allocations: 7.953 kB / 0.6424 GB, free: 9.266 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.006597, allocations: 21.7 kB / 0.6424 GB, free: 9.238 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.00667, allocations: 334.7 kB / 0.6428 GB, free: 8.902 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.618e-06/0.006679, allocations: 0 / 0.6428 GB, free: 8.902 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.613e-05/0.006706, allocations: 49.14 kB / 0.6428 GB, free: 8.836 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.427e-05/0.00674, allocations: 37.31 kB / 0.6428 GB, free: 8.789 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.006742, allocations: 3.938 kB / 0.6428 GB, free: 8.785 MB / 0.6043 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.329e-05/0.006795, allocations: 49.62 kB / 0.6429 GB, free: 8.73 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.006807, allocations: 7.984 kB / 0.6429 GB, free: 8.723 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.006812, allocations: 8.125 kB / 0.6429 GB, free: 8.715 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.578e-06/0.006821, allocations: 0 / 0.6429 GB, free: 8.715 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.509e-05/0.006876, allocations: 12 kB / 0.6429 GB, free: 8.703 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.236e-06/0.00688, allocations: 7.984 kB / 0.6429 GB, free: 8.695 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.144e-05/0.006911, allocations: 11.92 kB / 0.6429 GB, free: 8.684 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.006917, allocations: 0 / 0.6429 GB, free: 8.684 MB / 0.6043 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.655e-05/0.006983, allocations: 120.5 kB / 0.6431 GB, free: 8.555 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.396e-05/0.006997, allocations: 11.98 kB / 0.6431 GB, free: 8.543 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.391e-05/0.007021, allocations: 17.02 kB / 0.6431 GB, free: 8.531 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.007023, allocations: 0 / 0.6431 GB, free: 8.531 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.007024, allocations: 4 kB / 0.6431 GB, free: 8.527 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.007027, allocations: 288 / 0.6431 GB, free: 8.527 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.203e-05/0.007109, allocations: 109.7 kB / 0.6432 GB, free: 8.402 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.00711, allocations: 0 / 0.6432 GB, free: 8.402 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.278e-05/0.007133, allocations: 8 kB / 0.6432 GB, free: 8.395 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.007136, allocations: 7.969 kB / 0.6432 GB, free: 8.387 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.579e-06/0.007141, allocations: 0 / 0.6432 GB, free: 8.387 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.4e-07/0.007141, allocations: 0 / 0.6432 GB, free: 8.387 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.007142, allocations: 0 / 0.6432 GB, free: 8.387 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.626e-05/0.007208, allocations: 76.98 kB / 0.6433 GB, free: 8.293 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 1.119e-05/0.00722, allocations: 7.953 kB / 0.6433 GB, free: 8.285 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.007231, allocations: 4 kB / 0.6433 GB, free: 8.281 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.3e-05/0.007254, allocations: 4 kB / 0.6433 GB, free: 8.277 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.549e-05/0.00729, allocations: 11.98 kB / 0.6433 GB, free: 8.266 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.007305, allocations: 4 kB / 0.6433 GB, free: 8.262 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 5.037e-05/0.007356, allocations: 69.98 kB / 0.6434 GB, free: 8.191 MB / 0.6043 GB Notification: Performance of sort global known variables: time 5.1e-08/0.007356, allocations: 0 / 0.6434 GB, free: 8.191 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001192/0.007475, allocations: 23.95 kB / 0.6434 GB, free: 8.168 MB / 0.6043 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001569/0.007632, allocations: 112.2 kB / 0.6435 GB, free: 8.051 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 6.756e-05/0.007699, allocations: 20.78 kB / 0.6435 GB, free: 8.027 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.007703, allocations: 3.938 kB / 0.6435 GB, free: 8.023 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 1.737e-05/0.00772, allocations: 12.86 kB / 0.6435 GB, free: 8.008 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001495/0.00787, allocations: 36.64 kB / 0.6436 GB, free: 7.969 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004446/0.008314, allocations: 279.4 kB / 0.6438 GB, free: 7.664 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.463e-05/0.008349, allocations: 71.33 kB / 0.6439 GB, free: 7.574 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 3.585e-05/0.008385, allocations: 4.5 kB / 0.6439 GB, free: 7.57 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.485e-05/0.00846, allocations: 79.34 kB / 0.644 GB, free: 7.492 MB / 0.6043 GB Notification: Performance of SimCode: time 5.11e-07/0.00846, allocations: 0 / 0.644 GB, free: 7.492 MB / 0.6043 GB Notification: Performance of Templates: time 0.003366/0.01183, allocations: 1.822 MB / 0.6458 GB, free: 5.68 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.sim & ./AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > AixLib_AixLib.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.604295149911195]