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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 174.3 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.08775/0.08775, allocations: 10.66 MB / 23.92 MB, free: 1.375 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.843/1.843, allocations: 205.2 MB / 232.1 MB, free: 12.77 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 93.16 kB / 282.6 MB, free: 13.58 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 4.693e-05/4.695e-05, allocations: 4 kB / 340.5 MB, free: 3.621 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3138, allocations: 49.98 MB / 390.5 MB, free: 35.77 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1111/0.425, allocations: 83.3 MB / 473.8 MB, free: 360 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.4252, allocations: 79.94 kB / 473.8 MB, free: 280 kB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03067/0.4559, allocations: 10.75 MB / 484.6 MB, free: 5.484 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.794e-06/0.456, allocations: 0 / 484.6 MB, free: 5.484 MB / 362.8 MB Notification: Performance of Transformations before backend: time 5.079e-05/0.456, allocations: 19.98 kB / 484.6 MB, free: 5.465 MB / 362.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.001342/0.4574, allocations: 0.7684 MB / 485.4 MB, free: 4.641 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.4574, allocations: 8.031 kB / 485.4 MB, free: 4.633 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.4576, allocations: 67.19 kB / 485.5 MB, free: 4.566 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008706/0.4585, allocations: 461.5 kB / 485.9 MB, free: 4.074 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.4585, allocations: 24.78 kB / 485.9 MB, free: 4.051 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.83e-05/0.4586, allocations: 39.91 kB / 486 MB, free: 4.012 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006973/0.4593, allocations: 440 kB / 486.4 MB, free: 3.551 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.4593, allocations: 4 kB / 486.4 MB, free: 3.547 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.197e-05/0.4594, allocations: 16 kB / 486.4 MB, free: 3.531 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.4594, allocations: 11.95 kB / 486.4 MB, free: 3.52 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005332/0.4599, allocations: 298.9 kB / 486.7 MB, free: 3.223 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.4623, allocations: 1.605 MB / 488.3 MB, free: 1.531 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003728/0.4627, allocations: 240.9 kB / 488.6 MB, free: 1.285 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.4629, allocations: 145 kB / 488.7 MB, free: 1.141 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.463, allocations: 4.234 kB / 488.7 MB, free: 1.137 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003747/0.4634, allocations: 248.8 kB / 489 MB, free: 0.8789 MB / 362.8 MB Notification: Performance of pre-optimization done (n=33): time 1.894e-06/0.4634, allocations: 0 / 489 MB, free: 0.8789 MB / 362.8 MB Notification: Performance of matching and sorting (n=33): time 0.0007671/0.4642, allocations: 438.5 kB / 489.4 MB, free: 452 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.884e-05/0.4642, allocations: 111.3 kB / 489.5 MB, free: 316 kB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005799/0.4648, allocations: 475.8 kB / 490 MB, free: 15.84 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.4649, allocations: 33.7 kB / 490 MB, free: 15.8 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002076/0.4651, allocations: 264 kB / 490.2 MB, free: 15.54 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.4652, allocations: 118.4 kB / 490.4 MB, free: 15.42 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.4652, allocations: 12 kB / 490.4 MB, free: 15.41 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.4654, allocations: 370.7 kB / 490.7 MB, free: 15.04 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.4657, allocations: 137 kB / 490.9 MB, free: 14.9 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.466, allocations: 286.2 kB / 491.1 MB, free: 14.56 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.4663, allocations: 226.2 kB / 491.4 MB, free: 14.33 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.4663, allocations: 4 kB / 491.4 MB, free: 14.32 MB / 378.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008711/0.4672, allocations: 0.6144 MB / 492 MB, free: 13.7 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/0.4673, allocations: 37.7 kB / 492 MB, free: 13.66 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.4673, allocations: 12.02 kB / 492 MB, free: 13.64 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.431e-05/0.4673, allocations: 15.92 kB / 492 MB, free: 13.63 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00046/0.4678, allocations: 107.8 kB / 492.2 MB, free: 13.52 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.678e-05/0.4678, allocations: 7.984 kB / 492.2 MB, free: 13.52 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.4681, allocations: 55.58 kB / 492.2 MB, free: 13.46 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.865e-05/0.4681, allocations: 23.98 kB / 492.2 MB, free: 13.44 MB / 378.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.0002157/0.4684, allocations: 188.2 kB / 492.4 MB, free: 13.24 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.778e-05/0.4684, allocations: 55.28 kB / 492.5 MB, free: 13.18 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008103/0.4692, allocations: 0.4961 MB / 493 MB, free: 12.68 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.4693, allocations: 8 kB / 493 MB, free: 12.67 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4693, allocations: 0 / 493 MB, free: 12.67 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.4693, allocations: 7.922 kB / 493 MB, free: 12.66 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004459/0.4697, allocations: 465.1 kB / 493.4 MB, free: 12.16 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.4698, allocations: 0 / 493.4 MB, free: 12.16 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003731/0.4701, allocations: 63.97 kB / 493.5 MB, free: 12.09 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.4701, allocations: 4 kB / 493.5 MB, free: 12.09 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.4702, allocations: 15.98 kB / 493.5 MB, free: 12.07 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.4702, allocations: 0 / 493.5 MB, free: 12.07 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4702, allocations: 0 / 493.5 MB, free: 12.07 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009793/0.4712, allocations: 0.6793 MB / 494.2 MB, free: 11.37 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.4713, allocations: 140.4 kB / 494.3 MB, free: 11.21 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.034e-05/0.4714, allocations: 12 kB / 494.4 MB, free: 11.2 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.4716, allocations: 19.98 kB / 494.4 MB, free: 11.18 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.4717, allocations: 23.97 kB / 494.4 MB, free: 11.16 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.4717, allocations: 27.95 kB / 494.4 MB, free: 11.13 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0004217/0.4722, allocations: 365.5 kB / 494.8 MB, free: 10.78 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4722, allocations: 0 / 494.8 MB, free: 10.78 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0004463/0.4726, allocations: 127.8 kB / 494.9 MB, free: 10.65 MB / 378.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.000944/0.4736, allocations: 439.5 kB / 495.3 MB, free: 10.3 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0006715/0.4743, allocations: 479.6 kB / 495.8 MB, free: 9.816 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4743, allocations: 4 kB / 495.8 MB, free: 9.812 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002914/0.4746, allocations: 247.3 kB / 496 MB, free: 9.559 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.475, allocations: 74.53 kB / 496.1 MB, free: 9.488 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.4763, allocations: 0.8146 MB / 496.9 MB, free: 8.652 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.4768, allocations: 0.8858 MB / 497.8 MB, free: 7.738 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002808/0.477, allocations: 99.31 kB / 497.9 MB, free: 7.637 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001052/0.4772, allocations: 43.42 kB / 498 MB, free: 7.594 MB / 378.8 MB Notification: Performance of SimCode: time 2.8e-07/0.4772, allocations: 4 kB / 498 MB, free: 7.59 MB / 378.8 MB Notification: Performance of Templates: time 0.00973/0.4869, allocations: 4.745 MB / 0.4909 GB, free: 2.848 MB / 378.8 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)