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.001216/0.001216, allocations: 175.2 kB / 16.11 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.07725/0.07725, allocations: 10.76 MB / 27.62 MB, free: 1.809 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.442/1.442, allocations: 205.4 MB / 236.2 MB, free: 10.18 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.000764/0.0007643, allocations: 85.08 kB / 287 MB, free: 12.41 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004632/0.0004632, allocations: 15.98 kB / 347.6 MB, free: 15.64 MB / 298.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2927, allocations: 49.99 MB / 397.6 MB, free: 34.63 MB / 298.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.4, allocations: 83.13 MB / 480.7 MB, free: 15.38 MB / 362.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.4003, allocations: 79.95 kB / 480.8 MB, free: 15.3 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02998/0.4303, allocations: 10.33 MB / 491.2 MB, free: 4.934 MB / 362.8 MB Notification: Performance of FrontEnd: time 2.345e-06/0.4304, allocations: 0 / 491.2 MB, free: 4.934 MB / 362.8 MB Notification: Performance of Transformations before backend: time 6.372e-05/0.4305, allocations: 15.94 kB / 491.2 MB, free: 4.918 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.001829/0.4323, allocations: 0.8036 MB / 492 MB, free: 4.051 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.4323, allocations: 8.031 kB / 492 MB, free: 4.043 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001877/0.4325, allocations: 52.28 kB / 492 MB, free: 3.992 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008238/0.4334, allocations: 454.2 kB / 492.5 MB, free: 3.512 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.824e-05/0.4334, allocations: 20.94 kB / 492.5 MB, free: 3.492 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.385e-05/0.4335, allocations: 28.38 kB / 492.5 MB, free: 3.465 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006905/0.4342, allocations: 405.9 kB / 492.9 MB, free: 3.039 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.4343, allocations: 4.172 kB / 492.9 MB, free: 3.035 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/0.4343, allocations: 15.94 kB / 492.9 MB, free: 3.02 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.4343, allocations: 8 kB / 493 MB, free: 3.012 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005224/0.4348, allocations: 266 kB / 493.2 MB, free: 2.754 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002315/0.4372, allocations: 1.426 MB / 494.6 MB, free: 1.246 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005498/0.4377, allocations: 218.5 kB / 494.9 MB, free: 1.023 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.438, allocations: 141.4 kB / 495 MB, free: 0.8828 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.328e-05/0.438, allocations: 3.984 kB / 495 MB, free: 0.8789 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/0.4384, allocations: 224.1 kB / 495.2 MB, free: 0.6406 MB / 362.8 MB Notification: Performance of pre-optimization done (n=28): time 4.639e-06/0.4384, allocations: 0 / 495.2 MB, free: 0.6406 MB / 362.8 MB Notification: Performance of matching and sorting (n=28): time 0.0009848/0.4394, allocations: 0.5094 MB / 495.7 MB, free: 124 kB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.49e-05/0.4395, allocations: 107 kB / 495.8 MB, free: 15.99 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006632/0.4402, allocations: 497.6 kB / 496.3 MB, free: 15.49 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.4403, allocations: 33.7 kB / 496.3 MB, free: 15.45 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.4405, allocations: 244.2 kB / 496.6 MB, free: 15.21 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.486e-05/0.4406, allocations: 86.72 kB / 496.7 MB, free: 15.12 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.677e-05/0.4406, allocations: 12 kB / 496.7 MB, free: 15.11 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4408, allocations: 362.8 kB / 497 MB, free: 14.75 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.4411, allocations: 120.4 kB / 497.2 MB, free: 14.63 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.4414, allocations: 236.2 kB / 497.4 MB, free: 14.36 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.443, allocations: 0.7485 MB / 498.1 MB, free: 13.54 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.443, allocations: 8 kB / 498.1 MB, free: 13.54 MB / 378.8 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009068/0.4439, allocations: 0.5177 MB / 498.7 MB, free: 13 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.227e-05/0.444, allocations: 38.09 kB / 498.7 MB, free: 12.96 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.444, allocations: 8 kB / 498.7 MB, free: 12.95 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.444, allocations: 4 kB / 498.7 MB, free: 12.95 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003333/0.4444, allocations: 87.77 kB / 498.8 MB, free: 12.86 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.902e-05/0.4444, allocations: 7.984 kB / 498.8 MB, free: 12.86 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002824/0.4447, allocations: 47.58 kB / 498.8 MB, free: 12.81 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-05/0.4448, allocations: 20 kB / 498.9 MB, free: 12.79 MB / 378.8 MB Warning: Assuming fixed start value for the following 6 variables: process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004327/0.4452, allocations: 236.3 kB / 499.1 MB, free: 12.54 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.114e-05/0.4453, allocations: 47.44 kB / 499.1 MB, free: 12.5 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008898/0.4462, allocations: 483.6 kB / 499.6 MB, free: 12.01 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.4462, allocations: 7.938 kB / 499.6 MB, free: 12 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.4462, allocations: 0 / 499.6 MB, free: 12 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.4462, allocations: 3.984 kB / 499.6 MB, free: 12 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005095/0.4468, allocations: 425.1 kB / 0.4883 GB, free: 11.53 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4468, allocations: 3.938 kB / 0.4883 GB, free: 11.53 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.447, allocations: 55.91 kB / 0.4884 GB, free: 11.47 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.4471, allocations: 4 kB / 0.4884 GB, free: 11.47 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.4471, allocations: 15.98 kB / 0.4884 GB, free: 11.45 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.4471, allocations: 3.938 kB / 0.4884 GB, free: 11.45 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4471, allocations: 0 / 0.4884 GB, free: 11.45 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.4482, allocations: 0.6277 MB / 0.489 GB, free: 10.8 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.4483, allocations: 128.5 kB / 0.4891 GB, free: 10.65 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.752e-05/0.4484, allocations: 16 kB / 0.4892 GB, free: 10.64 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.4485, allocations: 19.92 kB / 0.4892 GB, free: 10.62 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.373e-05/0.4486, allocations: 23.97 kB / 0.4892 GB, free: 10.59 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.4487, allocations: 12 kB / 0.4892 GB, free: 10.58 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.0003752/0.4491, allocations: 335.1 kB / 0.4895 GB, free: 10.26 MB / 378.8 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4491, allocations: 0 / 0.4895 GB, free: 10.26 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0004711/0.4495, allocations: 115.8 kB / 0.4896 GB, free: 10.15 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) * Number of clocked states: 0 () * 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.001151/0.4507, allocations: 481.8 kB / 0.4901 GB, free: 9.699 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.000731/0.4514, allocations: 409 kB / 0.4905 GB, free: 9.289 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4515, allocations: 0 / 0.4905 GB, free: 9.289 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0003079/0.4518, allocations: 243.2 kB / 0.4907 GB, free: 9.039 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.4522, allocations: 61.92 kB / 0.4908 GB, free: 8.977 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.4536, allocations: 0.9385 MB / 0.4917 GB, free: 8.004 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.4541, allocations: 0.8422 MB / 0.4925 GB, free: 7.133 MB / 378.8 MB Notification: Performance of simCode: alias equations: time 0.0002232/0.4543, allocations: 75.22 kB / 0.4926 GB, free: 7.062 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.007e-05/0.4544, allocations: 39.42 kB / 0.4926 GB, free: 7.023 MB / 378.8 MB Notification: Performance of SimCode: time 2.6e-07/0.4544, allocations: 4 kB / 0.4926 GB, free: 7.02 MB / 378.8 MB Notification: Performance of Templates: time 0.009766/0.4642, allocations: 4.35 MB / 0.4969 GB, free: 2.668 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)