Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.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.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction") [: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.003602/0.003602, allocations: 181.9 kB / 7.455 MB, free: 2.512 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.274/1.274, allocations: 194.2 MB / 202.1 MB, free: 8.746 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.001782/0.001783, allocations: 124.3 kB / 247.1 MB, free: 6.207 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.1776/0.1776, allocations: 39.95 MB / 331.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.623e-06/6.643e-06, allocations: 0 / 392.8 MB, free: 75.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.0989, allocations: 54.86 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3088/0.4077, allocations: 87.67 MB / 0.5228 GB, free: 9.207 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.408, allocations: 66.78 kB / 0.5228 GB, free: 9.199 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03464/0.4427, allocations: 12.87 MB / 0.5354 GB, free: 1.562 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.087e-05/0.4428, allocations: 12 kB / 0.5354 GB, free: 1.551 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001624/0.4444, allocations: 0.8335 MB / 0.5362 GB, free: 0.707 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.4445, allocations: 8.031 kB / 0.5362 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002727/0.4448, allocations: 79.06 kB / 0.5363 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008879/0.4457, allocations: 467.7 kB / 0.5367 GB, free: 204 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.53e-05/0.4457, allocations: 16 kB / 0.5368 GB, free: 188 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.135e-05/0.4458, allocations: 35.91 kB / 0.5368 GB, free: 152 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006049/0.4464, allocations: 273.5 kB / 0.5371 GB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006865/0.4471, allocations: 376.7 kB / 0.5374 GB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.4472, allocations: 3.25 kB / 0.5374 GB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.381e-05/0.4472, allocations: 4 kB / 0.5374 GB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.4472, allocations: 8 kB / 0.5374 GB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003396/0.4506, allocations: 1.662 MB / 0.5391 GB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005942/0.4512, allocations: 327.1 kB / 0.5394 GB, free: 14.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002077/0.4515, allocations: 127.5 kB / 0.5395 GB, free: 13.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.549e-05/0.4515, allocations: 10.98 kB / 0.5395 GB, free: 13.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.4516, allocations: 42.47 kB / 0.5395 GB, free: 13.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.4516, allocations: 0 / 0.5395 GB, free: 13.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=38): time 0.0006696/0.4522, allocations: 308.4 kB / 0.5398 GB, free: 13.69 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.19e-05/0.4523, allocations: 114.6 kB / 0.5399 GB, free: 13.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004359/0.4528, allocations: 369.9 kB / 0.5403 GB, free: 13.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.787e-05/0.4528, allocations: 25.7 kB / 0.5403 GB, free: 13.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.453, allocations: 231.9 kB / 0.5405 GB, free: 13.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.4531, allocations: 146.1 kB / 0.5407 GB, free: 12.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.009e-05/0.4531, allocations: 0 / 0.5407 GB, free: 12.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4533, allocations: 364.5 kB / 0.541 GB, free: 12.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.4535, allocations: 118.8 kB / 0.5411 GB, free: 12.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.4538, allocations: 249 kB / 0.5414 GB, free: 12.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.4541, allocations: 149.9 kB / 0.5415 GB, free: 12.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4541, allocations: 0 / 0.5415 GB, free: 12.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000737/0.4549, allocations: 444.8 kB / 0.5419 GB, free: 11.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006646/0.4555, allocations: 1.393 MB / 0.5433 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.4556, allocations: 4 kB / 0.5433 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/0.4556, allocations: 8 kB / 0.5433 GB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005477/0.4561, allocations: 126.9 kB / 0.5434 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.4562, allocations: 11.94 kB / 0.5434 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004225/0.4566, allocations: 55.56 kB / 0.5435 GB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.222e-05/0.4567, allocations: 15.31 kB / 0.5435 GB, free: 10.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.4567, allocations: 4 kB / 0.5435 GB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005832/0.4573, allocations: 346.6 kB / 0.5438 GB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4573, allocations: 4 kB / 0.5439 GB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/0.4573, allocations: 8 kB / 0.5439 GB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004646/0.4578, allocations: 123.7 kB / 0.544 GB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.203e-05/0.4578, allocations: 11.94 kB / 0.544 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.4582, allocations: 51.5 kB / 0.544 GB, free: 9.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.015e-05/0.4582, allocations: 19.31 kB / 0.5441 GB, free: 9.703 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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 0.0001739/0.4584, allocations: 113.5 kB / 0.5442 GB, free: 9.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.4586, allocations: 55.34 kB / 0.5442 GB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.4587, allocations: 55.98 kB / 0.5443 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.4587, allocations: 8 kB / 0.5443 GB, free: 9.492 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.619e-06/0.4587, allocations: 3.906 kB / 0.5443 GB, free: 9.488 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4588, allocations: 3.938 kB / 0.5443 GB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007432/0.4595, allocations: 481.1 kB / 0.5447 GB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4595, allocations: 0 / 0.5447 GB, free: 9.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005216/0.4601, allocations: 104.2 kB / 0.5448 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.4601, allocations: 0 / 0.5448 GB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.4601, allocations: 10.98 kB / 0.5449 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4601, allocations: 0 / 0.5449 GB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4601, allocations: 4 kB / 0.5449 GB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008268/0.461, allocations: 0.6508 MB / 0.5455 GB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.4612, allocations: 166.8 kB / 0.5457 GB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.4613, allocations: 4 kB / 0.5457 GB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.4617, allocations: 27.98 kB / 0.5457 GB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.505e-05/0.4618, allocations: 31.31 kB / 0.5457 GB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-05/0.4618, allocations: 11.44 kB / 0.5457 GB, free: 8.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003449/0.4622, allocations: 279.3 kB / 0.546 GB, free: 8.023 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007556/0.4629, allocations: 203.1 kB / 0.5462 GB, free: 7.824 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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 Backend phase and start with SimCode phase: time 0.0001784/0.4631, allocations: 110.9 kB / 0.5463 GB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008905/0.464, allocations: 0.5295 MB / 0.5468 GB, free: 7.348 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.464, allocations: 0 / 0.5468 GB, free: 7.348 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002392/0.4643, allocations: 147.8 kB / 0.5469 GB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008556/0.4651, allocations: 133.5 kB / 0.5471 GB, free: 7.148 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002037/0.4672, allocations: 0.9607 MB / 0.548 GB, free: 6.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000685/0.4679, allocations: 0.937 MB / 0.5489 GB, free: 5.273 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4679, allocations: 4 kB / 0.5489 GB, free: 5.27 MB / 362.7 MB Notification: Performance of Templates: time 0.01536/0.4833, allocations: 7.827 MB / 0.5566 GB, free: 13.53 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1)