Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_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.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001323/0.001323, 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.08115/0.08115, allocations: 10.66 MB / 23.92 MB, free: 1.609 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.835/1.835, allocations: 205.2 MB / 232.1 MB, free: 12.83 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.0008607/0.0008608, allocations: 93.2 kB / 282.6 MB, free: 13.59 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.004e-05, allocations: 4 kB / 340.5 MB, free: 3.621 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2836, allocations: 49.98 MB / 390.5 MB, free: 35.75 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1072/0.3909, allocations: 83.34 MB / 473.8 MB, free: 296 kB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.3912, allocations: 79.95 kB / 473.9 MB, free: 216 kB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02953/0.4208, allocations: 10.48 MB / 484.4 MB, free: 5.691 MB / 362.8 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4208, allocations: 0 / 484.4 MB, free: 5.691 MB / 362.8 MB Notification: Performance of Transformations before backend: time 4.39e-05/0.4209, allocations: 15.94 kB / 484.4 MB, free: 5.676 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.001336/0.4222, allocations: 0.7527 MB / 485.1 MB, free: 4.863 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/0.4223, allocations: 12.03 kB / 485.1 MB, free: 4.852 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.4224, allocations: 63.3 kB / 485.2 MB, free: 4.789 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009576/0.4234, allocations: 441.3 kB / 485.6 MB, free: 4.316 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.4235, allocations: 79.97 kB / 485.7 MB, free: 4.227 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.365e-05/0.4236, allocations: 28 kB / 485.7 MB, free: 4.199 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006591/0.4243, allocations: 410.2 kB / 486.1 MB, free: 3.766 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.4243, allocations: 0 / 486.1 MB, free: 3.766 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.4244, allocations: 15.95 kB / 486.2 MB, free: 3.75 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.4244, allocations: 8 kB / 486.2 MB, free: 3.742 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004249/0.4248, allocations: 258.1 kB / 486.4 MB, free: 3.488 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.4273, allocations: 1.509 MB / 487.9 MB, free: 1.895 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004303/0.4277, allocations: 194.9 kB / 488.1 MB, free: 1.695 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.4279, allocations: 129.1 kB / 488.2 MB, free: 1.566 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 4.103e-05/0.428, allocations: 8.172 kB / 488.3 MB, free: 1.559 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003533/0.4283, allocations: 212.4 kB / 488.5 MB, free: 1.332 MB / 362.8 MB Notification: Performance of pre-optimization done (n=27): time 2.375e-06/0.4283, allocations: 0 / 488.5 MB, free: 1.332 MB / 362.8 MB Notification: Performance of matching and sorting (n=27): time 0.0006888/0.429, allocations: 398.9 kB / 488.9 MB, free: 0.9336 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.701e-05/0.4291, allocations: 115 kB / 489 MB, free: 0.7969 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005171/0.4297, allocations: 435 kB / 489.4 MB, free: 380 kB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.4297, allocations: 29.7 kB / 489.4 MB, free: 344 kB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.4299, allocations: 248 kB / 489.7 MB, free: 92 kB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.58e-05/0.43, allocations: 82.81 kB / 489.7 MB, free: 8 kB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.873e-05/0.43, allocations: 8 kB / 489.7 MB, free: 0 / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.4302, allocations: 362.7 kB / 490.1 MB, free: 15.64 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.4304, allocations: 116.7 kB / 490.2 MB, free: 15.52 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/0.4307, allocations: 236.9 kB / 490.4 MB, free: 15.24 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002718/0.431, allocations: 185.7 kB / 490.6 MB, free: 15.05 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.431, allocations: 4 kB / 490.6 MB, free: 15.05 MB / 378.8 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007864/0.4318, allocations: 0.506 MB / 491.1 MB, free: 14.53 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.858e-05/0.4319, allocations: 38.11 kB / 491.2 MB, free: 14.49 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.4319, allocations: 4 kB / 491.2 MB, free: 14.48 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4319, allocations: 8 kB / 491.2 MB, free: 14.48 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.4325, allocations: 95.88 kB / 491.3 MB, free: 14.38 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.4325, allocations: 11.94 kB / 491.3 MB, free: 14.37 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.4328, allocations: 47.58 kB / 491.3 MB, free: 14.32 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/0.4328, allocations: 16 kB / 491.4 MB, free: 14.31 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 (45): * Single equations (assignments): 44 * 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.0001958/0.433, allocations: 183.4 kB / 491.5 MB, free: 14.12 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.173e-05/0.4331, allocations: 51.38 kB / 491.6 MB, free: 14.07 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007493/0.4339, allocations: 450.8 kB / 492 MB, free: 13.61 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-06/0.4339, allocations: 3.938 kB / 492 MB, free: 13.61 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.4339, allocations: 7.984 kB / 492 MB, free: 13.6 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.4339, allocations: 4 kB / 492 MB, free: 13.6 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004928/0.4344, allocations: 441 kB / 492.5 MB, free: 13.12 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4344, allocations: 0 / 492.5 MB, free: 13.12 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006016/0.435, allocations: 67.95 kB / 492.5 MB, free: 13.05 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.435, allocations: 0 / 492.5 MB, free: 13.05 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.737e-05/0.4351, allocations: 12 kB / 492.5 MB, free: 13.04 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.4351, allocations: 0 / 492.5 MB, free: 13.04 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4351, allocations: 3.938 kB / 492.6 MB, free: 13.04 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009191/0.436, allocations: 0.6196 MB / 493.2 MB, free: 12.39 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001286/0.4362, allocations: 128.5 kB / 493.3 MB, free: 12.25 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.587e-05/0.4362, allocations: 12 kB / 493.3 MB, free: 12.23 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.4364, allocations: 19.98 kB / 493.3 MB, free: 12.21 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.17e-05/0.4365, allocations: 19.97 kB / 493.3 MB, free: 12.2 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.4365, allocations: 15.98 kB / 493.4 MB, free: 12.18 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0003721/0.4369, allocations: 337.2 kB / 493.7 MB, free: 11.86 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.565e-06/0.4369, allocations: 0 / 493.7 MB, free: 11.86 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0004512/0.4374, allocations: 119.7 kB / 493.8 MB, free: 11.74 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (R.Iout,R_track.Iout,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 (25): * Single equations (assignments): 22 * 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.001031/0.4384, allocations: 427.6 kB / 494.2 MB, free: 11.39 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.000631/0.4391, allocations: 408.1 kB / 494.6 MB, free: 10.98 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4391, allocations: 4.062 kB / 494.6 MB, free: 10.98 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.4393, allocations: 219.7 kB / 494.8 MB, free: 10.75 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003629/0.4397, allocations: 64.25 kB / 494.9 MB, free: 10.69 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.4409, allocations: 0.6908 MB / 495.6 MB, free: 9.973 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004592/0.4413, allocations: 0.8577 MB / 496.5 MB, free: 9.09 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.4416, allocations: 75.23 kB / 496.5 MB, free: 9.012 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.649e-05/0.4417, allocations: 31.44 kB / 496.6 MB, free: 8.98 MB / 378.8 MB Notification: Performance of SimCode: time 3.8e-07/0.4417, allocations: 0 / 496.6 MB, free: 8.98 MB / 378.8 MB Notification: Performance of Templates: time 0.01042/0.4521, allocations: 4.39 MB / 0.4892 GB, free: 4.598 MB / 378.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestI_tracking.pipe 2>&1)