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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009773/0.0009773, allocations: 171.6 kB / 7.641 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0571/0.0571, allocations: 10.66 MB / 18.73 MB, free: 1.32 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.606/1.606, allocations: 205.3 MB / 226.9 MB, free: 7.957 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009498/0.0009498, allocations: 86.44 kB / 277.3 MB, free: 5.5 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.521e-05/1.522e-05, allocations: 4 kB / 333.5 MB, free: 28.5 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1109, allocations: 50 MB / 383.5 MB, free: 10.45 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4128/0.5238, allocations: 82.92 MB / 466.4 MB, free: 1.98 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.5241, allocations: 81.83 kB / 466.5 MB, free: 1.938 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03056/0.5547, allocations: 10.63 MB / 477.2 MB, free: 9.062 MB / 346.8 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5548, allocations: 0 / 477.2 MB, free: 9.062 MB / 346.8 MB Notification: Performance of Transformations before backend: time 5.489e-05/0.5549, allocations: 12 kB / 477.2 MB, free: 9.051 MB / 346.8 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.001536/0.5564, allocations: 0.7798 MB / 478 MB, free: 8.25 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.5565, allocations: 8.031 kB / 478 MB, free: 8.242 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.5566, allocations: 59.3 kB / 478 MB, free: 8.184 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008722/0.5575, allocations: 457.5 kB / 478.5 MB, free: 7.738 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.5575, allocations: 8 kB / 478.5 MB, free: 7.73 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.653e-05/0.5576, allocations: 31.22 kB / 478.5 MB, free: 7.703 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000567/0.5582, allocations: 284.5 kB / 478.8 MB, free: 7.508 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006574/0.5589, allocations: 396.2 kB / 479.2 MB, free: 7.168 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/0.5589, allocations: 6.688 kB / 479.2 MB, free: 7.164 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.32e-05/0.559, allocations: 3.953 kB / 479.2 MB, free: 7.16 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.559, allocations: 8 kB / 479.2 MB, free: 7.152 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.5614, allocations: 1.529 MB / 480.7 MB, free: 5.781 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.5618, allocations: 217.2 kB / 480.9 MB, free: 5.621 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.562, allocations: 135.9 kB / 481.1 MB, free: 5.531 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.415e-05/0.5621, allocations: 12.22 kB / 481.1 MB, free: 5.52 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003493/0.5624, allocations: 236.8 kB / 481.3 MB, free: 5.316 MB / 346.8 MB Notification: Performance of pre-optimization done (n=33): time 2.565e-06/0.5624, allocations: 0 / 481.3 MB, free: 5.316 MB / 346.8 MB Notification: Performance of matching and sorting (n=33): time 0.0007544/0.5632, allocations: 386.8 kB / 481.7 MB, free: 5.012 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.5633, allocations: 115 kB / 481.8 MB, free: 4.875 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005475/0.5639, allocations: 412.7 kB / 482.2 MB, free: 4.551 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 4.378e-05/0.5639, allocations: 33.64 kB / 482.2 MB, free: 4.512 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002271/0.5642, allocations: 270.1 kB / 482.5 MB, free: 4.324 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.5643, allocations: 114.5 kB / 482.6 MB, free: 4.227 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.5643, allocations: 0 / 482.6 MB, free: 4.227 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.5645, allocations: 365.9 kB / 483 MB, free: 3.883 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.5648, allocations: 132.1 kB / 483.1 MB, free: 3.797 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003411/0.5651, allocations: 279.7 kB / 483.4 MB, free: 3.516 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/0.5654, allocations: 176.1 kB / 483.5 MB, free: 3.383 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5655, allocations: 8 kB / 483.5 MB, free: 3.375 MB / 346.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008057/0.5663, allocations: 0.5381 MB / 484.1 MB, free: 2.938 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.526e-05/0.5663, allocations: 37.61 kB / 484.1 MB, free: 2.898 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/0.5663, allocations: 4 kB / 484.1 MB, free: 2.895 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.5664, allocations: 15.94 kB / 484.1 MB, free: 2.879 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004869/0.5669, allocations: 107.4 kB / 484.2 MB, free: 2.777 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.5669, allocations: 11.92 kB / 484.3 MB, free: 2.766 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.5671, allocations: 43.61 kB / 484.3 MB, free: 2.723 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/0.5672, allocations: 23.44 kB / 484.3 MB, free: 2.703 MB / 346.8 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.0002439/0.5674, allocations: 172.7 kB / 484.5 MB, free: 2.527 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.5675, allocations: 47.34 kB / 484.5 MB, free: 2.48 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007555/0.5683, allocations: 448 kB / 485 MB, free: 2.141 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.735e-06/0.5683, allocations: 8 kB / 485 MB, free: 2.133 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.5683, allocations: 0 / 485 MB, free: 2.133 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.5683, allocations: 3.984 kB / 485 MB, free: 2.129 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.5688, allocations: 412.2 kB / 485.4 MB, free: 1.766 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5688, allocations: 0 / 485.4 MB, free: 1.766 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.5692, allocations: 71.64 kB / 485.5 MB, free: 1.699 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.58e-06/0.5692, allocations: 0 / 485.5 MB, free: 1.699 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/0.5693, allocations: 19.11 kB / 485.5 MB, free: 1.684 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.5693, allocations: 0 / 485.5 MB, free: 1.684 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5693, allocations: 0 / 485.5 MB, free: 1.684 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008908/0.5702, allocations: 0.6275 MB / 486.1 MB, free: 1.176 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.5703, allocations: 132.3 kB / 486.2 MB, free: 1.031 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.29e-05/0.5704, allocations: 11.55 kB / 486.2 MB, free: 1.023 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.5706, allocations: 15.98 kB / 486.3 MB, free: 1.008 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.5707, allocations: 19.47 kB / 486.3 MB, free: 0.9922 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/0.5707, allocations: 19.55 kB / 486.3 MB, free: 0.9766 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0003379/0.571, allocations: 315.4 kB / 486.6 MB, free: 0.7383 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.61e-07/0.571, allocations: 0 / 486.6 MB, free: 0.7383 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0004896/0.5715, allocations: 114.9 kB / 486.7 MB, free: 0.6289 MB / 346.8 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.0009512/0.5725, allocations: 408.1 kB / 487.1 MB, free: 240 kB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0006229/0.5731, allocations: 449.1 kB / 487.6 MB, free: 15.9 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.5732, allocations: 0 / 487.6 MB, free: 15.9 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002701/0.5734, allocations: 242 kB / 487.8 MB, free: 15.71 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004147/0.5739, allocations: 70.16 kB / 487.9 MB, free: 15.66 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.5751, allocations: 0.799 MB / 488.7 MB, free: 14.92 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004763/0.5756, allocations: 0.8872 MB / 489.5 MB, free: 14.02 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.5758, allocations: 83.3 kB / 489.6 MB, free: 13.94 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.316e-05/0.5759, allocations: 39.42 kB / 489.7 MB, free: 13.9 MB / 362.8 MB Notification: Performance of SimCode: time 3.6e-07/0.5759, allocations: 0 / 489.7 MB, free: 13.9 MB / 362.8 MB Notification: Performance of Templates: time 0.009196/0.5851, allocations: 4.388 MB / 494.1 MB, free: 9.52 MB / 362.8 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)