Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.conf.json 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.001004/0.001004, allocations: 81.08 kB / 19.87 MB, free: 4.621 MB / 18.57 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.001523/0.001523, allocations: 169 kB / 23.28 MB, free: 1.219 MB / 18.57 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 0.9244/0.9244, allocations: 177.1 MB / 203.7 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:34:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-535:42:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.8245/0.8245, allocations: 154.9 MB / 415.1 MB, free: 264 kB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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) Running command: translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 0.5211 GB, free: 1.543 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.106e-05/2.307e-05, allocations: 2.312 kB / 0.5211 GB, free: 1.539 MB / 490.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.JSONWriter): time 0.002273/0.002296, allocations: 1.667 MB / 0.5227 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.0007911/0.003087, allocations: 0.5944 MB / 0.5233 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.23e-05/0.003169, allocations: 3.938 kB / 0.5233 GB, free: 15.28 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0002997/0.003469, allocations: 27.73 kB / 0.5233 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.003727, allocations: 72.75 kB / 0.5234 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.003956, allocations: 79.72 kB / 0.5235 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0001601/0.004116, allocations: 140.2 kB / 0.5236 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.004247, allocations: 33.66 kB / 0.5237 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.004406, allocations: 85.02 kB / 0.5237 GB, free: 14.85 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 8.191e-05/0.004488, allocations: 51.81 kB / 0.5238 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.312e-05/0.004511, allocations: 8 kB / 0.5238 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 5.748e-05/0.004569, allocations: 21.19 kB / 0.5238 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.965e-05/0.004639, allocations: 51.83 kB / 0.5239 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 3.468e-05/0.004673, allocations: 36.5 kB / 0.5239 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001631/0.004836, allocations: 115.5 kB / 0.524 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.00484, allocations: 1.844 kB / 0.524 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.283e-06/0.004842, allocations: 0 / 0.524 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.887e-06/0.004846, allocations: 0 / 0.524 GB, free: 14.57 MB / 0.4948 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.0004159/0.005261, allocations: 491.7 kB / 0.5245 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.15e-05/0.005293, allocations: 13.75 kB / 0.5245 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.005411, allocations: 32.8 kB / 0.5245 GB, free: 14.02 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.005598, allocations: 197.4 kB / 0.5247 GB, free: 13.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-06/0.005608, allocations: 4.375 kB / 0.5247 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.005619, allocations: 8.375 kB / 0.5247 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000131/0.00575, allocations: 127.3 kB / 0.5248 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.005756, allocations: 192 / 0.5248 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.005767, allocations: 8.375 kB / 0.5249 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.005778, allocations: 4.906 kB / 0.5249 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.459e-05/0.005803, allocations: 11.98 kB / 0.5249 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.006317, allocations: 325.4 kB / 0.5252 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 3.676e-05/0.006354, allocations: 30.98 kB / 0.5252 GB, free: 13.23 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.54e-05/0.006369, allocations: 11.75 kB / 0.5252 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.532e-05/0.006384, allocations: 0.5 kB / 0.5252 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.786e-05/0.006482, allocations: 132.9 kB / 0.5253 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.006483, allocations: 0 / 0.5253 GB, free: 13.05 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3): time 0.000116/0.006599, allocations: 53.53 kB / 0.5254 GB, free: 12.99 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.006661, allocations: 82.33 kB / 0.5255 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001259/0.006787, allocations: 258.6 kB / 0.5257 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.262e-05/0.006799, allocations: 29.7 kB / 0.5258 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.653e-05/0.006866, allocations: 180.5 kB / 0.5259 GB, free: 12.41 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.627e-05/0.006882, allocations: 7.938 kB / 0.5259 GB, free: 12.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.737e-05/0.00691, allocations: 23.38 kB / 0.526 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001681/0.007078, allocations: 0.5039 MB / 0.5264 GB, free: 11.86 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.071e-05/0.007088, allocations: 8 kB / 0.5265 GB, free: 11.85 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.202e-05/0.00712, allocations: 62.27 kB / 0.5265 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.575e-05/0.007156, allocations: 42.98 kB / 0.5266 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.007158, allocations: 1.656 kB / 0.5266 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.208e-05/0.00722, allocations: 53.55 kB / 0.5266 GB, free: 11.65 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.007231, allocations: 7.938 kB / 0.5266 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.007235, allocations: 5.031 kB / 0.5266 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.013e-06/0.007242, allocations: 0 / 0.5266 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.13e-05/0.007294, allocations: 8.922 kB / 0.5266 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.154e-06/0.007296, allocations: 4 kB / 0.5266 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.365e-05/0.007329, allocations: 15.11 kB / 0.5266 GB, free: 11.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.007335, allocations: 0 / 0.5266 GB, free: 11.62 MB / 0.4948 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.493e-05/0.0074, allocations: 164.5 kB / 0.5268 GB, free: 11.45 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.007417, allocations: 16.19 kB / 0.5268 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.833e-05/0.007445, allocations: 17.02 kB / 0.5268 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.007448, allocations: 3.984 kB / 0.5268 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.007449, allocations: 4 kB / 0.5268 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.007452, allocations: 3.938 kB / 0.5268 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.38e-05/0.007535, allocations: 139.9 kB / 0.527 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.007537, allocations: 4 kB / 0.527 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.12e-05/0.007558, allocations: 4 kB / 0.527 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.82e-07/0.007559, allocations: 0 / 0.527 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.007564, allocations: 3.984 kB / 0.527 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.007565, allocations: 0 / 0.527 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.007565, allocations: 0 / 0.527 GB, free: 11.23 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.062e-05/0.007636, allocations: 96.28 kB / 0.5271 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.007652, allocations: 13.47 kB / 0.5271 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.136e-05/0.007664, allocations: 0 / 0.5271 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.63e-05/0.00769, allocations: 4 kB / 0.5271 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.807e-05/0.007718, allocations: 11.98 kB / 0.5271 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.007733, allocations: 5.281 kB / 0.5271 GB, free: 11.08 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 7.041e-05/0.007803, allocations: 185.5 kB / 0.5273 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.007803, allocations: 3.938 kB / 0.5273 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001396/0.007943, allocations: 16.66 kB / 0.5273 GB, free: 10.88 MB / 0.4948 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.0001504/0.008093, allocations: 117.3 kB / 0.5274 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 6.706e-05/0.00816, allocations: 19.69 kB / 0.5274 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.008162, allocations: 0 / 0.5274 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.098e-05/0.008183, allocations: 29.97 kB / 0.5275 GB, free: 10.71 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001827/0.008366, allocations: 58.8 kB / 0.5275 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004381/0.008804, allocations: 267.2 kB / 0.5278 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.35e-05/0.008837, allocations: 73.55 kB / 0.5279 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 3.961e-05/0.008877, allocations: 12.62 kB / 0.5279 GB, free: 10.26 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.665e-05/0.008953, allocations: 94.17 kB / 0.528 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of SimCode: time 6.01e-07/0.008954, allocations: 0 / 0.528 GB, free: 10.17 MB / 0.4948 GB Notification: Performance of Templates: time 0.003509/0.01246, allocations: 1.917 MB / 0.5298 GB, free: 8.398 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.sim & (cd run_cvode && ../IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_gbode.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_gbode.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_gbode.sim & (cd run_gbode && ../IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_gbode.pipe 2>&1) [Timeout 240] (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_ida.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_ida.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_ida.sim & (cd run_ida && ../IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.JSONWriter_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.7891121059656143]