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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01087/0.01087, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002118/0.002118, allocations: 193.2 kB / 16.67 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05729/0.05729, allocations: 10.74 MB / 280.6 MB, free: 10.42 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001963, allocations: 72.75 kB / 390.8 MB, free: 5.035 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4378/0.4397, allocations: 49.02 MB / 439.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004918/0.4447, allocations: 2.353 MB / 442.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003361/0.4481, allocations: 1.322 MB / 443.5 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000359/0.4485, allocations: 14.75 kB / 443.5 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001165/0.4497, allocations: 211.8 kB / 443.8 MB, free: 2.688 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006121/0.4503, allocations: 159.1 kB / 443.9 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.4516, allocations: 350.1 kB / 444.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007983/0.4524, allocations: 0.5404 MB / 444.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.4526, allocations: 91.25 kB / 444.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.453, allocations: 202.9 kB / 445.1 MB, free: 2.074 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.4534, allocations: 222.8 kB / 445.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.526e-05/0.4535, allocations: 27.94 kB / 445.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003405/0.4538, allocations: 151.5 kB / 445.5 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.454, allocations: 126.4 kB / 445.6 MB, free: 1.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002291/0.4543, allocations: 194.1 kB / 445.8 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009501/0.4552, allocations: 0.4978 MB / 446.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.4552, allocations: 1.469 kB / 446.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.4552, allocations: 0.6094 kB / 446.3 MB, free: 1.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.4553, allocations: 0 / 446.3 MB, free: 1.539 MB / 318.1 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.001644/0.4569, allocations: 0.8526 MB / 447.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.057e-05/0.457, allocations: 14.52 kB / 447.2 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/0.4572, allocations: 61.97 kB / 447.2 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008284/0.4581, allocations: 438.5 kB / 447.6 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.194e-05/0.4581, allocations: 21.28 kB / 447.7 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001012/0.4582, allocations: 39.92 kB / 447.7 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008319/0.4591, allocations: 378.4 kB / 448.1 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.186e-05/0.4591, allocations: 5.312 kB / 448.1 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.531e-05/0.4591, allocations: 12.06 kB / 448.1 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.4592, allocations: 6.469 kB / 448.1 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006405/0.4598, allocations: 254.3 kB / 448.3 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002481/0.4623, allocations: 1.386 MB / 449.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005604/0.4629, allocations: 206.7 kB / 449.9 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002186/0.4631, allocations: 129.2 kB / 450.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.472e-05/0.4632, allocations: 3.562 kB / 450.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/0.4636, allocations: 216.5 kB / 450.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.4636, allocations: 0 / 450.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001056/0.4646, allocations: 485 kB / 450.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.4647, allocations: 120.6 kB / 450.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006771/0.4654, allocations: 486.1 kB / 451.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.857e-05/0.4655, allocations: 32.45 kB / 451.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000205/0.4657, allocations: 256 kB / 451.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.037e-05/0.4658, allocations: 87.66 kB / 451.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/0.4659, allocations: 77.27 kB / 451.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002208/0.4661, allocations: 360.5 kB / 452.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.4664, allocations: 114.2 kB / 452.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003652/0.4668, allocations: 229.2 kB / 452.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/0.4685, allocations: 0.7092 MB / 453.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4685, allocations: 1.25 kB / 453.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009247/0.4694, allocations: 0.4976 MB / 453.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/0.4695, allocations: 49.94 kB / 453.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.4695, allocations: 3.719 kB / 453.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.4696, allocations: 5.219 kB / 453.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.4699, allocations: 78.73 kB / 453.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.4699, allocations: 8.516 kB / 453.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.4701, allocations: 48.34 kB / 453.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.614e-05/0.4702, allocations: 14.03 kB / 453.9 MB, free: 12.07 MB / 334.1 MB Warning: Assuming fixed start value for the following 6 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.Y[3]:VARIABLE(fixed = true 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 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition2,TrackRef.nextEventScaled,TrackRef.nextEvent,$PRE.TrackRef.nextEvent,TrackRef.last,TrackRef.b,TrackRef.a,TSsignal.combiTimeTable.nextTimeEventScaled,$PRE.TSsignal.combiTimeTable.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent,R_track.ts,$whenCondition1,R.TS_in,R_track.ATreq_in,R.ATreq_in) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003485/0.4705, allocations: 246.7 kB / 454.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.4706, allocations: 53.77 kB / 454.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008692/0.4715, allocations: 431.5 kB / 454.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4715, allocations: 2.531 kB / 454.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.4715, allocations: 1.094 kB / 454.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.4715, allocations: 3.984 kB / 454.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005261/0.472, allocations: 408.7 kB / 455 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.4721, allocations: 11.86 kB / 455 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.4723, allocations: 44.88 kB / 455.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4723, allocations: 5.344 kB / 455.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.796e-05/0.4724, allocations: 12.94 kB / 455.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.4724, allocations: 1.312 kB / 455.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4724, allocations: 0 / 455.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.4735, allocations: 0.5925 MB / 455.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.4736, allocations: 130.2 kB / 455.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.555e-05/0.4737, allocations: 12.64 kB / 455.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001421/0.4739, allocations: 17.05 kB / 455.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.079e-05/0.4739, allocations: 16.36 kB / 455.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/0.474, allocations: 12.02 kB / 455.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004186/0.4744, allocations: 341.3 kB / 456.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4744, allocations: 0 / 456.2 MB, free: 10.53 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005947/0.475, allocations: 107.2 kB / 456.3 MB, free: 10.5 MB / 334.1 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.nextTimeEventScaled,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/0.4761, allocations: 459.1 kB / 456.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007373/0.4769, allocations: 403.1 kB / 457.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4769, allocations: 0 / 457.1 MB, free: 9.984 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.4773, allocations: 222.3 kB / 457.3 MB, free: 9.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.4777, allocations: 76.88 kB / 457.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.4791, allocations: 0.8249 MB / 458.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005383/0.4797, allocations: 0.8497 MB / 459.1 MB, free: 8.508 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000223/0.4799, allocations: 73.05 kB / 459.2 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.202e-05/0.48, allocations: 31.84 kB / 459.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of SimCode: time 1.9e-07/0.48, allocations: 0 / 459.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of Templates: time 0.01013/0.4901, allocations: 4.657 MB / 463.9 MB, free: 4.488 MB / 334.1 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)