Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestP_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_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.005441/0.005441, allocations: 183.4 kB / 7.457 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.08827/0.08827, allocations: 10.59 MB / 18.46 MB, free: 2.172 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.837/1.837, allocations: 205.2 MB / 226.5 MB, free: 0.5156 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.0009497/0.0009497, allocations: 85.28 kB / 276.9 MB, free: 15.64 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.843e-06/6.873e-06, allocations: 0 / 332.9 MB, free: 7.543 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3002, allocations: 49.99 MB / 382.9 MB, free: 39.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1036/0.4039, allocations: 82.25 MB / 465.2 MB, free: 5.438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.4042, allocations: 75.97 kB / 465.2 MB, free: 5.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02993/0.4341, allocations: 9.819 MB / 475.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.983e-05/0.4343, allocations: 15.98 kB / 475.1 MB, free: 11.5 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001617/0.4359, allocations: 0.741 MB / 475.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.436, allocations: 8.031 kB / 475.8 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.4362, allocations: 55.34 kB / 475.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000985/0.4372, allocations: 429.9 kB / 476.3 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.4372, allocations: 12 kB / 476.3 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.612e-05/0.4373, allocations: 27.84 kB / 476.3 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005169/0.4378, allocations: 229.2 kB / 476.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006249/0.4385, allocations: 356.8 kB / 476.9 MB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.643e-05/0.4385, allocations: 0 / 476.9 MB, free: 9.535 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.774e-05/0.4386, allocations: 4 kB / 476.9 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.4386, allocations: 4 kB / 476.9 MB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.4412, allocations: 1.372 MB / 478.3 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004844/0.4417, allocations: 178.9 kB / 478.5 MB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002008/0.4419, allocations: 113.1 kB / 478.6 MB, free: 7.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.257e-05/0.4419, allocations: 4.188 kB / 478.6 MB, free: 7.789 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003411/0.4423, allocations: 205.8 kB / 478.8 MB, free: 7.566 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 2.605e-06/0.4423, allocations: 0 / 478.8 MB, free: 7.566 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009064/0.4432, allocations: 295.2 kB / 479.1 MB, free: 7.277 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.929e-05/0.4433, allocations: 110.7 kB / 479.2 MB, free: 7.145 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006136/0.444, allocations: 385 kB / 479.6 MB, free: 6.766 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.444, allocations: 29.7 kB / 479.6 MB, free: 6.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.4442, allocations: 188 kB / 479.8 MB, free: 6.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.765e-05/0.4443, allocations: 86.81 kB / 479.9 MB, free: 6.453 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.903e-05/0.4444, allocations: 8 kB / 479.9 MB, free: 6.445 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001736/0.4445, allocations: 362.6 kB / 480.2 MB, free: 6.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.4447, allocations: 104.4 kB / 480.3 MB, free: 5.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.445, allocations: 216.2 kB / 480.5 MB, free: 5.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.4453, allocations: 140.7 kB / 480.7 MB, free: 5.582 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.4453, allocations: 0 / 480.7 MB, free: 5.582 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007756/0.4461, allocations: 400.9 kB / 481.1 MB, free: 5.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.4461, allocations: 12.06 kB / 481.1 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.4462, allocations: 0 / 481.1 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.025e-05/0.4462, allocations: 8 kB / 481.1 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004117/0.4466, allocations: 83.83 kB / 481.2 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.4466, allocations: 4 kB / 481.2 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003489/0.447, allocations: 39.67 kB / 481.2 MB, free: 5.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.373e-05/0.4471, allocations: 16 kB / 481.2 MB, free: 5.023 MB / 362.7 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(protected = true ) type: Real [2] process.Y[3]:VARIABLE(protected = true ) type: Real [3] process.U[2]:VARIABLE(protected = true ) type: Real [2] process.w:VARIABLE(protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(protected = true ) type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (44): * Single equations (assignments): 43 * 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.0003153/0.4474, allocations: 179.9 kB / 481.4 MB, free: 4.836 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.704e-05/0.4475, allocations: 47.44 kB / 481.4 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007414/0.4483, allocations: 350 kB / 481.8 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.4483, allocations: 0 / 481.8 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.4483, allocations: 4.656 kB / 481.8 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4483, allocations: 0 / 481.8 MB, free: 4.438 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004663/0.4488, allocations: 369.8 kB / 482.1 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4488, allocations: 0 / 482.1 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.4491, allocations: 51.91 kB / 482.2 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.4491, allocations: 4 kB / 482.2 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.4492, allocations: 15.98 kB / 482.2 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.4492, allocations: 1.406 kB / 482.2 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/0.4492, allocations: 0 / 482.2 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007958/0.45, allocations: 0.4963 MB / 482.7 MB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.4501, allocations: 124.5 kB / 482.8 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.692e-05/0.4502, allocations: 4 kB / 482.8 MB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.4504, allocations: 23.98 kB / 482.9 MB, free: 3.285 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.4505, allocations: 11.97 kB / 482.9 MB, free: 3.273 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.539e-05/0.4505, allocations: 23.84 kB / 482.9 MB, free: 3.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003505/0.4509, allocations: 295.2 kB / 483.2 MB, free: 2.965 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005312/0.4514, allocations: 99.78 kB / 483.3 MB, free: 2.867 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],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 (26): * Single equations (assignments): 23 * 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.0009219/0.4523, allocations: 373.2 kB / 483.6 MB, free: 2.543 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000545/0.4529, allocations: 326.9 kB / 484 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.4529, allocations: 0 / 484 MB, free: 2.219 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002547/0.4532, allocations: 185.6 kB / 484.1 MB, free: 2.031 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.4536, allocations: 49.94 kB / 484.2 MB, free: 1.984 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.455, allocations: 0.6219 MB / 484.8 MB, free: 1.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000665/0.4557, allocations: 0.8977 MB / 485.7 MB, free: 416 kB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4557, allocations: 0 / 485.7 MB, free: 416 kB / 362.7 MB Notification: Performance of Templates: time 0.01099/0.4667, allocations: 4.32 MB / 490 MB, free: 12.09 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestP_tracking.pipe 2>&1)