Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking") [: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.3+maint.om/package.mo): time 0.003165/0.003165, allocations: 181.2 kB / 7.458 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05953/0.05953, allocations: 10.58 MB / 18.46 MB, free: 2.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.645/1.645, allocations: 205.2 MB / 226.5 MB, free: 0.668 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009795/0.0009795, allocations: 87.88 kB / 276.9 MB, free: 15.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.121e-06/6.151e-06, allocations: 0 / 332.9 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3343, allocations: 49.99 MB / 382.9 MB, free: 39.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.116/0.4504, allocations: 82.56 MB / 465.5 MB, free: 5.137 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.4507, allocations: 79.95 kB / 465.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04743/0.4981, allocations: 10.29 MB / 475.8 MB, free: 10.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.499e-05/0.4982, allocations: 8 kB / 475.9 MB, free: 10.74 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002157/0.5004, allocations: 0.7644 MB / 476.6 MB, free: 9.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.416e-05/0.5005, allocations: 16.02 kB / 476.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001847/0.5007, allocations: 59.25 kB / 476.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00155/0.5023, allocations: 457.7 kB / 477.1 MB, free: 9.352 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.033e-05/0.5023, allocations: 12 kB / 477.2 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.5025, allocations: 28 kB / 477.2 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00103/0.5035, allocations: 285.2 kB / 477.5 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.5047, allocations: 400.8 kB / 477.8 MB, free: 8.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.028e-05/0.5048, allocations: 11.91 kB / 477.9 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.09e-05/0.5049, allocations: 0 / 477.9 MB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.066e-05/0.5049, allocations: 12 kB / 477.9 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004852/0.5098, allocations: 1.542 MB / 479.4 MB, free: 6.973 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005494/0.5104, allocations: 210 kB / 479.6 MB, free: 6.758 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003764/0.5108, allocations: 137 kB / 479.8 MB, free: 6.621 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.923e-05/0.5109, allocations: 8.219 kB / 479.8 MB, free: 6.613 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006468/0.5115, allocations: 234.9 kB / 480 MB, free: 6.367 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 5.651e-06/0.5115, allocations: 0 / 480 MB, free: 6.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.001118/0.5127, allocations: 336.5 kB / 480.3 MB, free: 6.035 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.5128, allocations: 115 kB / 480.4 MB, free: 5.898 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009033/0.5137, allocations: 413 kB / 480.8 MB, free: 5.492 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.008e-05/0.5138, allocations: 25.7 kB / 480.9 MB, free: 5.461 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.5141, allocations: 199.9 kB / 481.1 MB, free: 5.262 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.5143, allocations: 118.4 kB / 481.2 MB, free: 5.145 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.5143, allocations: 4 kB / 481.2 MB, free: 5.141 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002601/0.5146, allocations: 358.8 kB / 481.5 MB, free: 4.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/0.515, allocations: 137 kB / 481.7 MB, free: 4.648 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005808/0.5157, allocations: 277.9 kB / 481.9 MB, free: 4.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006304/0.5163, allocations: 189 kB / 482.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.5163, allocations: 0 / 482.1 MB, free: 4.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001531/0.5179, allocations: 0.5112 MB / 482.6 MB, free: 3.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.5179, allocations: 4.781 kB / 482.6 MB, free: 3.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.518, allocations: 7.984 kB / 482.6 MB, free: 3.602 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.205e-05/0.518, allocations: 8 kB / 482.6 MB, free: 3.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.5191, allocations: 107.8 kB / 482.7 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.468e-05/0.5191, allocations: 11.98 kB / 482.8 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004835/0.5196, allocations: 43.81 kB / 482.8 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.5197, allocations: 27.98 kB / 482.8 MB, free: 3.406 MB / 362.7 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(protected = true ) type: Real [4] process.Y[3]:VARIABLE(protected = true ) type: Real [4] process.Y[4]:VARIABLE(protected = true ) type: Real [4] process.U[2]:VARIABLE(protected = true ) type: Real [3] process.U[3]:VARIABLE(protected = true ) type: Real [3] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,$PRE.TrackRef.nextEvent,TrackRef.nextEvent,TrackRef.nextEventScaled,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * 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.000417/0.5202, allocations: 175.4 kB / 483 MB, free: 3.223 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.5203, allocations: 51.44 kB / 483.1 MB, free: 3.172 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.5214, allocations: 409.8 kB / 483.5 MB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.5215, allocations: 7.984 kB / 483.5 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5215, allocations: 0 / 483.5 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.5215, allocations: 4 kB / 483.5 MB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008444/0.5224, allocations: 417.6 kB / 483.9 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.5224, allocations: 4 kB / 483.9 MB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006845/0.5231, allocations: 59.97 kB / 483.9 MB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.164e-05/0.5231, allocations: 7.891 kB / 483.9 MB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.499e-05/0.5232, allocations: 12 kB / 484 MB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.5232, allocations: 0 / 484 MB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.5232, allocations: 3.938 kB / 484 MB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001284/0.5245, allocations: 0.572 MB / 484.5 MB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.5247, allocations: 128.5 kB / 484.7 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.5248, allocations: 19.89 kB / 484.7 MB, free: 1.465 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.5251, allocations: 15.98 kB / 484.7 MB, free: 1.449 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.987e-05/0.5252, allocations: 19.97 kB / 484.7 MB, free: 1.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.45e-05/0.5252, allocations: 8 kB / 484.7 MB, free: 1.422 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0005225/0.5258, allocations: 319.2 kB / 485 MB, free: 1.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007566/0.5265, allocations: 111.8 kB / 485.1 MB, free: 1 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],processTrack.w) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,R_track.TS,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled) * Number of discrete states: 8 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.001084/0.5276, allocations: 369.6 kB / 485.5 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006664/0.5283, allocations: 414.5 kB / 485.9 MB, free: 276 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5283, allocations: 0 / 485.9 MB, free: 276 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003061/0.5287, allocations: 217.5 kB / 486.1 MB, free: 52 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.5291, allocations: 54.84 kB / 486.2 MB, free: 0 / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.5306, allocations: 0.7713 MB / 486.9 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006982/0.5313, allocations: 0.9207 MB / 487.9 MB, free: 14.26 MB / 378.7 MB Notification: Performance of SimCode: time 1.764e-06/0.5313, allocations: 4 kB / 487.9 MB, free: 14.26 MB / 378.7 MB Notification: Performance of Templates: time 0.01127/0.5426, allocations: 4.909 MB / 492.8 MB, free: 9.348 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestD_tracking.pipe 2>&1)