Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004285/0.004285, allocations: 181 kB / 7.457 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.272/1.272, allocations: 194.2 MB / 202.1 MB, free: 8.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001654/0.001654, allocations: 119.6 kB / 247.1 MB, free: 6.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1867/0.1867, allocations: 39.94 MB / 331.9 MB, free: 4.906 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.195e-06, allocations: 4 kB / 392.8 MB, free: 75.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1241, allocations: 54.88 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3405/0.4647, allocations: 81.48 MB / 0.5167 GB, free: 10.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.4651, allocations: 57.73 kB / 0.5168 GB, free: 10.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01266/0.4777, allocations: 3.796 MB / 0.5205 GB, free: 9.281 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.106e-05/0.4778, allocations: 9.281 kB / 0.5205 GB, free: 9.277 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0007934/0.4786, allocations: 0.5211 MB / 0.521 GB, free: 8.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.4786, allocations: 8.906 kB / 0.521 GB, free: 8.812 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.589e-05/0.4787, allocations: 37.28 kB / 0.5211 GB, free: 8.793 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.4792, allocations: 306.8 kB / 0.5213 GB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.4792, allocations: 12.45 kB / 0.5214 GB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.4793, allocations: 20.47 kB / 0.5214 GB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003158/0.4796, allocations: 140.6 kB / 0.5215 GB, free: 8.52 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.48, allocations: 210.7 kB / 0.5217 GB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.48, allocations: 1.062 kB / 0.5217 GB, free: 8.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.013e-05/0.48, allocations: 4.938 kB / 0.5217 GB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.4801, allocations: 5.531 kB / 0.5217 GB, free: 8.441 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00122/0.4813, allocations: 0.6971 MB / 0.5224 GB, free: 8.004 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.4816, allocations: 169.5 kB / 0.5226 GB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001487/0.4818, allocations: 74.83 kB / 0.5226 GB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.428e-05/0.4818, allocations: 10.91 kB / 0.5226 GB, free: 7.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002865/0.4821, allocations: 167.4 kB / 0.5228 GB, free: 7.867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.763e-06/0.4821, allocations: 0 / 0.5228 GB, free: 7.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005024/0.4827, allocations: 228.9 kB / 0.523 GB, free: 7.793 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.4827, allocations: 60.14 kB / 0.5231 GB, free: 7.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002343/0.483, allocations: 190.3 kB / 0.5233 GB, free: 7.617 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.483, allocations: 31.67 kB / 0.5233 GB, free: 7.586 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.27e-05/0.4831, allocations: 142.8 kB / 0.5234 GB, free: 7.465 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.848e-05/0.4832, allocations: 95.38 kB / 0.5235 GB, free: 7.395 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.4832, allocations: 1.312 kB / 0.5235 GB, free: 7.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4833, allocations: 335.4 kB / 0.5238 GB, free: 7.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.4834, allocations: 64.97 kB / 0.5239 GB, free: 7.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.4837, allocations: 201.8 kB / 0.5241 GB, free: 6.898 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.4838, allocations: 96.67 kB / 0.5242 GB, free: 6.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.4838, allocations: 1.062 kB / 0.5242 GB, free: 6.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004718/0.4843, allocations: 300.2 kB / 0.5245 GB, free: 6.777 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.4843, allocations: 5.656 kB / 0.5245 GB, free: 6.777 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.4844, allocations: 8.172 kB / 0.5245 GB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.4844, allocations: 7.562 kB / 0.5245 GB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.4847, allocations: 81.94 kB / 0.5246 GB, free: 6.754 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.4848, allocations: 10.58 kB / 0.5246 GB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.4849, allocations: 29.94 kB / 0.5246 GB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/0.485, allocations: 18.42 kB / 0.5246 GB, free: 6.73 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.mean.y,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.946e-05/0.4851, allocations: 122.2 kB / 0.5247 GB, free: 6.613 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.433e-05/0.4851, allocations: 28.72 kB / 0.5248 GB, free: 6.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004699/0.4856, allocations: 256.8 kB / 0.525 GB, free: 6.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4856, allocations: 7.094 kB / 0.525 GB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4856, allocations: 0 / 0.525 GB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.69e-06/0.4856, allocations: 0 / 0.525 GB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006196/0.4863, allocations: 0.6067 MB / 0.5256 GB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4863, allocations: 0 / 0.5256 GB, free: 6.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.4866, allocations: 51.59 kB / 0.5257 GB, free: 6.137 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4866, allocations: 4.938 kB / 0.5257 GB, free: 6.133 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.4866, allocations: 14.91 kB / 0.5257 GB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.4866, allocations: 5.328 kB / 0.5257 GB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4866, allocations: 0 / 0.5257 GB, free: 6.121 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006077/0.4872, allocations: 448.8 kB / 0.5261 GB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.4873, allocations: 103.5 kB / 0.5262 GB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.4874, allocations: 11.02 kB / 0.5262 GB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001851/0.4876, allocations: 15.39 kB / 0.5262 GB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.4876, allocations: 20.97 kB / 0.5263 GB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.4877, allocations: 19.61 kB / 0.5263 GB, free: 5.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001107/0.4878, allocations: 144.4 kB / 0.5264 GB, free: 5.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003677/0.4882, allocations: 70.14 kB / 0.5265 GB, free: 5.703 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001462/0.4883, allocations: 111.7 kB / 0.5266 GB, free: 5.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003666/0.4887, allocations: 218.5 kB / 0.5268 GB, free: 5.574 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4887, allocations: 1.5 kB / 0.5268 GB, free: 5.574 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001745/0.4889, allocations: 111.5 kB / 0.5269 GB, free: 5.562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.4891, allocations: 21.88 kB / 0.5269 GB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009177/0.4901, allocations: 422.5 kB / 0.5273 GB, free: 5.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003489/0.4904, allocations: 0.8203 MB / 0.5281 GB, free: 4.582 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4904, allocations: 0 / 0.5281 GB, free: 4.582 MB / 346.7 MB Notification: Performance of Templates: time 0.006618/0.4971, allocations: 2.578 MB / 0.5307 GB, free: 3.344 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Mean.pipe 2>&1)