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.001163/0.001163, allocations: 174.7 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.06153/0.06153, allocations: 10.65 MB / 23.91 MB, free: 1.379 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.761/1.761, allocations: 205.2 MB / 232.1 MB, free: 12.76 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.0008748/0.0008749, allocations: 101.1 kB / 282.6 MB, free: 13.57 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 2.645e-05/2.647e-05, allocations: 0 / 340.5 MB, free: 3.617 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2728, allocations: 49.99 MB / 390.5 MB, free: 35.74 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3845, allocations: 83.29 MB / 473.8 MB, free: 340 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/0.3848, allocations: 87.94 kB / 473.8 MB, free: 252 kB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.03092/0.4157, allocations: 10.71 MB / 484.5 MB, free: 5.504 MB / 362.8 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4158, allocations: 0 / 484.5 MB, free: 5.504 MB / 362.8 MB Notification: Performance of Transformations before backend: time 5.845e-05/0.4158, allocations: 11.98 kB / 484.6 MB, free: 5.492 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.001401/0.4172, allocations: 0.7646 MB / 485.3 MB, free: 4.672 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.4173, allocations: 15.97 kB / 485.3 MB, free: 4.656 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001085/0.4174, allocations: 63.2 kB / 485.4 MB, free: 4.594 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008156/0.4182, allocations: 449.5 kB / 485.8 MB, free: 4.113 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.96e-05/0.4183, allocations: 24.78 kB / 485.9 MB, free: 4.09 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.603e-05/0.4184, allocations: 39.89 kB / 485.9 MB, free: 4.051 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007886/0.4192, allocations: 448 kB / 486.3 MB, free: 3.582 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.4192, allocations: 0 / 486.3 MB, free: 3.582 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.766e-05/0.4193, allocations: 15.98 kB / 486.4 MB, free: 3.566 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.064e-05/0.4193, allocations: 11.95 kB / 486.4 MB, free: 3.555 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005501/0.4199, allocations: 306.9 kB / 486.7 MB, free: 3.25 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002451/0.4223, allocations: 1.596 MB / 488.3 MB, free: 1.566 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.4227, allocations: 235.1 kB / 488.5 MB, free: 1.324 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002048/0.4229, allocations: 145 kB / 488.6 MB, free: 1.18 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.423, allocations: 4.234 kB / 488.6 MB, free: 1.176 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003589/0.4233, allocations: 244.8 kB / 488.9 MB, free: 0.9219 MB / 362.8 MB Notification: Performance of pre-optimization done (n=33): time 1.593e-06/0.4233, allocations: 0 / 488.9 MB, free: 0.9219 MB / 362.8 MB Notification: Performance of matching and sorting (n=33): time 0.0007149/0.4241, allocations: 446.7 kB / 489.3 MB, free: 488 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/0.4242, allocations: 111.3 kB / 489.4 MB, free: 352 kB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005624/0.4247, allocations: 467.8 kB / 489.9 MB, free: 15.88 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.4248, allocations: 29.7 kB / 489.9 MB, free: 15.84 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/0.425, allocations: 271.9 kB / 490.2 MB, free: 15.57 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.702e-05/0.4251, allocations: 118.4 kB / 490.3 MB, free: 15.46 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.829e-05/0.4251, allocations: 8 kB / 490.3 MB, free: 15.45 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.4253, allocations: 370.7 kB / 490.7 MB, free: 15.08 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.4255, allocations: 141 kB / 490.8 MB, free: 14.94 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.4258, allocations: 290.2 kB / 491.1 MB, free: 14.6 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.4261, allocations: 218.5 kB / 491.3 MB, free: 14.37 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.4261, allocations: 0 / 491.3 MB, free: 14.37 MB / 378.8 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0009015/0.4271, allocations: 0.6216 MB / 491.9 MB, free: 13.74 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.943e-05/0.4271, allocations: 34.23 kB / 492 MB, free: 13.7 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.4271, allocations: 8 kB / 492 MB, free: 13.69 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.4272, allocations: 8 kB / 492 MB, free: 13.68 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004653/0.4276, allocations: 111.8 kB / 492.1 MB, free: 13.57 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.4277, allocations: 11.94 kB / 492.1 MB, free: 13.56 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.4279, allocations: 59.5 kB / 492.1 MB, free: 13.5 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.428, allocations: 24 kB / 492.2 MB, free: 13.48 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.0002793/0.4283, allocations: 192.2 kB / 492.4 MB, free: 13.28 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.089e-05/0.4284, allocations: 51.34 kB / 492.4 MB, free: 13.23 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008298/0.4292, allocations: 0.496 MB / 492.9 MB, free: 12.72 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.4292, allocations: 8 kB / 492.9 MB, free: 12.71 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.4292, allocations: 0 / 492.9 MB, free: 12.71 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.4292, allocations: 3.984 kB / 492.9 MB, free: 12.71 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004591/0.4297, allocations: 469 kB / 493.4 MB, free: 12.2 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.4297, allocations: 4 kB / 493.4 MB, free: 12.2 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.4301, allocations: 63.95 kB / 493.4 MB, free: 12.14 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4301, allocations: 3.984 kB / 493.4 MB, free: 12.13 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.189e-05/0.4302, allocations: 16 kB / 493.5 MB, free: 12.12 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.4302, allocations: 0 / 493.5 MB, free: 12.12 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4302, allocations: 0 / 493.5 MB, free: 12.12 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009607/0.4311, allocations: 0.6847 MB / 494.1 MB, free: 11.41 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.4313, allocations: 132.4 kB / 494.3 MB, free: 11.26 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.505e-05/0.4314, allocations: 16 kB / 494.3 MB, free: 11.24 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.4315, allocations: 19.98 kB / 494.3 MB, free: 11.22 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.363e-05/0.4316, allocations: 19.95 kB / 494.3 MB, free: 11.2 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.806e-05/0.4317, allocations: 19.98 kB / 494.3 MB, free: 11.18 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.000384/0.4321, allocations: 361.5 kB / 494.7 MB, free: 10.83 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4321, allocations: 0 / 494.7 MB, free: 10.83 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0004608/0.4325, allocations: 135.8 kB / 494.8 MB, free: 10.7 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.0009355/0.4335, allocations: 443 kB / 495.3 MB, free: 10.34 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.4342, allocations: 475.5 kB / 495.7 MB, free: 9.863 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4342, allocations: 0 / 495.7 MB, free: 9.863 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00028/0.4345, allocations: 251.3 kB / 496 MB, free: 9.605 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.4348, allocations: 62.67 kB / 496 MB, free: 9.547 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.436, allocations: 0.8263 MB / 496.9 MB, free: 8.695 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.4365, allocations: 0.8819 MB / 497.7 MB, free: 7.785 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.4367, allocations: 99.36 kB / 497.8 MB, free: 7.684 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.4368, allocations: 43.42 kB / 497.9 MB, free: 7.641 MB / 378.8 MB Notification: Performance of SimCode: time 2.7e-07/0.4368, allocations: 3.938 kB / 497.9 MB, free: 7.637 MB / 378.8 MB Notification: Performance of Templates: time 0.009327/0.4462, allocations: 4.741 MB / 0.4908 GB, free: 2.898 MB / 378.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)