Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.003008/0.003008, allocations: 184.9 kB / 7.456 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06909/0.06909, allocations: 10.59 MB / 18.46 MB, free: 2.188 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.55/1.55, allocations: 205.2 MB / 226.5 MB, free: 0.5391 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.001005/0.001005, allocations: 84.38 kB / 276.9 MB, free: 15.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.147e-06/9.167e-06, allocations: 4 kB / 332.9 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3355, allocations: 49.98 MB / 382.9 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.4722, allocations: 82.57 MB / 465.5 MB, free: 5.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000362/0.4726, allocations: 75.95 kB / 465.6 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.04445/0.5171, allocations: 10.32 MB / 475.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.191e-05/0.5172, allocations: 15.19 kB / 475.9 MB, free: 10.66 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.001885/0.5191, allocations: 0.7721 MB / 476.7 MB, free: 9.832 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.5192, allocations: 12.02 kB / 476.7 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001842/0.5194, allocations: 59.34 kB / 476.7 MB, free: 9.762 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.5207, allocations: 465.7 kB / 477.2 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.368e-05/0.5208, allocations: 12 kB / 477.2 MB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.926e-05/0.5209, allocations: 27.91 kB / 477.2 MB, free: 9.227 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007917/0.5217, allocations: 281.2 kB / 477.5 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009064/0.5226, allocations: 404.8 kB / 477.9 MB, free: 8.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.5227, allocations: 7.984 kB / 477.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.253e-05/0.5227, allocations: 0 / 477.9 MB, free: 8.516 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.5228, allocations: 8 kB / 477.9 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00366/0.5264, allocations: 1.549 MB / 479.5 MB, free: 6.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.5269, allocations: 203 kB / 479.7 MB, free: 6.676 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.5272, allocations: 141 kB / 479.8 MB, free: 6.535 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.576e-05/0.5273, allocations: 8.172 kB / 479.8 MB, free: 6.527 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004572/0.5277, allocations: 227 kB / 480 MB, free: 6.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 3.126e-06/0.5277, allocations: 0 / 480 MB, free: 6.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.0009658/0.5287, allocations: 348.5 kB / 480.4 MB, free: 5.945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.07e-05/0.5288, allocations: 115 kB / 480.5 MB, free: 5.809 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006657/0.5295, allocations: 421 kB / 480.9 MB, free: 5.395 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.5296, allocations: 25.7 kB / 480.9 MB, free: 5.363 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.5298, allocations: 211.8 kB / 481.1 MB, free: 5.152 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.5299, allocations: 110.5 kB / 481.2 MB, free: 5.043 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.706e-05/0.53, allocations: 4 kB / 481.2 MB, free: 5.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.5302, allocations: 358.8 kB / 481.6 MB, free: 4.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.5305, allocations: 133 kB / 481.7 MB, free: 4.551 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004849/0.531, allocations: 278.2 kB / 482 MB, free: 4.223 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004953/0.5315, allocations: 196.5 kB / 482.2 MB, free: 4.023 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5315, allocations: 0 / 482.2 MB, free: 4.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001232/0.5328, allocations: 0.5115 MB / 482.7 MB, free: 3.508 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.5328, allocations: 4 kB / 482.7 MB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.5328, allocations: 11.91 kB / 482.7 MB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.659e-05/0.5329, allocations: 5.688 kB / 482.7 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007561/0.5336, allocations: 107.8 kB / 482.8 MB, free: 3.383 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/0.5337, allocations: 15.98 kB / 482.8 MB, free: 3.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000418/0.5341, allocations: 43.64 kB / 482.9 MB, free: 3.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.891e-05/0.5342, allocations: 24 kB / 482.9 MB, free: 3.301 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.0003339/0.5345, allocations: 168 kB / 483.1 MB, free: 3.121 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.5347, allocations: 51.34 kB / 483.1 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.5358, allocations: 410 kB / 483.5 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.5359, allocations: 4 kB / 483.5 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.5359, allocations: 0 / 483.5 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.5359, allocations: 0 / 483.5 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007465/0.5366, allocations: 421.6 kB / 483.9 MB, free: 2.211 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.5367, allocations: 4 kB / 483.9 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006707/0.5373, allocations: 68.45 kB / 484 MB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.5374, allocations: 0 / 484 MB, free: 2.141 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.561e-05/0.5374, allocations: 12 kB / 484 MB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.5374, allocations: 0 / 484 MB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.009e-06/0.5375, allocations: 0 / 484 MB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001397/0.5389, allocations: 0.5758 MB / 484.6 MB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.5391, allocations: 133.9 kB / 484.7 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001301/0.5392, allocations: 15.98 kB / 484.7 MB, free: 1.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/0.5395, allocations: 15.98 kB / 484.8 MB, free: 1.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.5397, allocations: 19.97 kB / 484.8 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-05/0.5397, allocations: 8 kB / 484.8 MB, free: 1.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0006258/0.5404, allocations: 319.1 kB / 485.1 MB, free: 1.016 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000861/0.5412, allocations: 115.8 kB / 485.2 MB, free: 0.9023 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.00125/0.5425, allocations: 366.8 kB / 485.6 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009886/0.5435, allocations: 410.1 kB / 486 MB, free: 188 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5435, allocations: 0 / 486 MB, free: 188 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004237/0.544, allocations: 213.7 kB / 486.2 MB, free: 15.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.5446, allocations: 67.45 kB / 486.2 MB, free: 15.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.5468, allocations: 0.7635 MB / 487 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009624/0.5478, allocations: 0.9247 MB / 487.9 MB, free: 14.17 MB / 378.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5478, allocations: 0 / 487.9 MB, free: 14.17 MB / 378.7 MB Notification: Performance of Templates: time 0.01913/0.5669, allocations: 4.942 MB / 492.9 MB, free: 9.227 MB / 378.7 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1)