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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 174.6 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.05748/0.05748, 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.455/1.455, allocations: 205.2 MB / 232.1 MB, free: 12.82 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.0008514/0.0008515, allocations: 94.38 kB / 282.6 MB, free: 13.59 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.62e-05/3.624e-05, allocations: 4 kB / 340.5 MB, free: 3.621 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2954, allocations: 49.98 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.4152, allocations: 82.98 MB / 473.4 MB, free: 0.6562 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.4156, allocations: 79.95 kB / 473.5 MB, free: 0.5781 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02975/0.4454, allocations: 10.25 MB / 483.8 MB, free: 6.293 MB / 362.8 MB Notification: Performance of FrontEnd: time 3.537e-06/0.4454, allocations: 0 / 483.8 MB, free: 6.293 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.492e-05/0.4455, allocations: 12 kB / 483.8 MB, free: 6.281 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001569/0.4471, allocations: 0.7371 MB / 484.5 MB, free: 5.488 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.65e-05/0.4471, allocations: 12.03 kB / 484.5 MB, free: 5.477 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001409/0.4473, allocations: 55.3 kB / 484.6 MB, free: 5.422 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009329/0.4482, allocations: 433.3 kB / 485 MB, free: 4.957 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.713e-05/0.4483, allocations: 20.56 kB / 485 MB, free: 4.938 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.269e-05/0.4484, allocations: 36 kB / 485.1 MB, free: 4.902 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007029/0.4491, allocations: 382.3 kB / 485.4 MB, free: 4.496 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.4491, allocations: 4 kB / 485.4 MB, free: 4.492 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.4492, allocations: 12 kB / 485.5 MB, free: 4.48 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.4492, allocations: 11.95 kB / 485.5 MB, free: 4.469 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004396/0.4497, allocations: 250.1 kB / 485.7 MB, free: 4.223 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.4519, allocations: 1.426 MB / 487.1 MB, free: 2.711 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004946/0.4524, allocations: 209.3 kB / 487.3 MB, free: 2.5 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.4526, allocations: 121 kB / 487.5 MB, free: 2.379 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.4526, allocations: 4.188 kB / 487.5 MB, free: 2.375 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003819/0.453, allocations: 217.4 kB / 487.7 MB, free: 2.145 MB / 362.8 MB Notification: Performance of pre-optimization done (n=28): time 2.074e-06/0.453, allocations: 0 / 487.7 MB, free: 2.145 MB / 362.8 MB Notification: Performance of matching and sorting (n=28): time 0.0007411/0.4538, allocations: 389.5 kB / 488.1 MB, free: 1.754 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.834e-05/0.4539, allocations: 114.8 kB / 488.2 MB, free: 1.617 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006174/0.4545, allocations: 431.1 kB / 488.6 MB, free: 1.195 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/0.4546, allocations: 29.7 kB / 488.6 MB, free: 1.16 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.4548, allocations: 252 kB / 488.9 MB, free: 0.9102 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.102e-05/0.4549, allocations: 90.73 kB / 489 MB, free: 0.8203 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.738e-05/0.4549, allocations: 8 kB / 489 MB, free: 0.8125 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.4551, allocations: 359.4 kB / 489.3 MB, free: 464 kB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.4553, allocations: 108.4 kB / 489.4 MB, free: 356 kB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.4557, allocations: 224.3 kB / 489.6 MB, free: 84 kB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.456, allocations: 178.3 kB / 489.8 MB, free: 15.9 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.456, allocations: 4 kB / 489.8 MB, free: 15.9 MB / 378.8 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008813/0.4569, allocations: 0.4952 MB / 490.3 MB, free: 15.39 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.305e-05/0.457, allocations: 38.48 kB / 490.3 MB, free: 15.35 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.457, allocations: 4.406 kB / 490.4 MB, free: 15.34 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.444e-05/0.457, allocations: 19.89 kB / 490.4 MB, free: 15.32 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003768/0.4574, allocations: 75.89 kB / 490.4 MB, free: 15.25 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.007e-05/0.4575, allocations: 7.938 kB / 490.5 MB, free: 15.24 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.4577, allocations: 47.67 kB / 490.5 MB, free: 15.2 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.4578, allocations: 16 kB / 490.5 MB, free: 15.18 MB / 378.8 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.0002507/0.458, allocations: 183.4 kB / 490.7 MB, free: 14.99 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.4581, allocations: 47.44 kB / 490.7 MB, free: 14.94 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000808/0.4589, allocations: 452.5 kB / 491.2 MB, free: 14.48 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.033e-06/0.4589, allocations: 7.953 kB / 491.2 MB, free: 14.48 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.4589, allocations: 0 / 491.2 MB, free: 14.48 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.459, allocations: 3.984 kB / 491.2 MB, free: 14.47 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005118/0.4595, allocations: 429.2 kB / 491.6 MB, free: 14 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.4595, allocations: 0 / 491.6 MB, free: 14 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002823/0.4598, allocations: 51.91 kB / 491.7 MB, free: 13.95 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.4598, allocations: 4 kB / 491.7 MB, free: 13.95 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.064e-05/0.4598, allocations: 11.98 kB / 491.7 MB, free: 13.94 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.4599, allocations: 4 kB / 491.7 MB, free: 13.93 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.79e-06/0.4599, allocations: 3.953 kB / 491.7 MB, free: 13.93 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001033/0.4609, allocations: 0.5917 MB / 492.3 MB, free: 13.31 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.4611, allocations: 132.5 kB / 492.4 MB, free: 13.16 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.409e-05/0.4612, allocations: 8 kB / 492.4 MB, free: 13.16 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000163/0.4614, allocations: 23.97 kB / 492.4 MB, free: 13.13 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.835e-05/0.4615, allocations: 15.98 kB / 492.5 MB, free: 13.12 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.672e-05/0.4615, allocations: 15.94 kB / 492.5 MB, free: 13.1 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0003908/0.4619, allocations: 337.2 kB / 492.8 MB, free: 12.78 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4619, allocations: 0 / 492.8 MB, free: 12.78 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0004764/0.4624, allocations: 111.8 kB / 492.9 MB, free: 12.67 MB / 378.8 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.001087/0.4635, allocations: 436 kB / 493.3 MB, free: 12.3 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0006316/0.4641, allocations: 391.1 kB / 493.7 MB, free: 11.91 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 3.217e-06/0.4641, allocations: 0 / 493.7 MB, free: 11.91 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002653/0.4644, allocations: 228.5 kB / 493.9 MB, free: 11.68 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003827/0.4648, allocations: 58.06 kB / 494 MB, free: 11.62 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.466, allocations: 0.6479 MB / 494.6 MB, free: 10.95 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/0.4665, allocations: 0.8616 MB / 495.5 MB, free: 10.06 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002305/0.4667, allocations: 75.17 kB / 495.6 MB, free: 9.988 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.959e-05/0.4668, allocations: 39.42 kB / 495.6 MB, free: 9.949 MB / 378.8 MB Notification: Performance of SimCode: time 7.02e-07/0.4668, allocations: 0 / 495.6 MB, free: 9.949 MB / 378.8 MB Notification: Performance of Templates: time 0.009576/0.4764, allocations: 4.315 MB / 499.9 MB, free: 5.641 MB / 378.8 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)