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.008096/0.008096, allocations: 99.72 kB / 15.73 MB, free: 6.484 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.001505/0.001504, allocations: 189 kB / 16.68 MB, free: 6.367 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.762/1.762, allocations: 205.1 MB / 222.6 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.05781/0.05781, allocations: 10.73 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.001447/0.001447, allocations: 72.47 kB / 390.8 MB, free: 5.012 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4413/0.4428, allocations: 49.01 MB / 439.9 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestP_tracking): time 0.004755/0.4476, allocations: 2.353 MB / 442.2 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.45, allocations: 1.313 MB / 443.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002033/0.4502, allocations: 15.06 kB / 443.5 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008099/0.451, allocations: 217.1 kB / 443.8 MB, free: 2.68 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.0004166/0.4515, allocations: 158.5 kB / 443.9 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009122/0.4524, allocations: 359 kB / 444.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006889/0.4531, allocations: 0.5411 MB / 444.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002171/0.4533, allocations: 87.52 kB / 444.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003515/0.4537, allocations: 204.5 kB / 445.1 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003615/0.454, allocations: 218.4 kB / 445.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.032e-05/0.4541, allocations: 28.44 kB / 445.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003411/0.4545, allocations: 152.3 kB / 445.5 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.4547, allocations: 126.1 kB / 445.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.4549, allocations: 197.5 kB / 445.8 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008799/0.4558, allocations: 0.4983 MB / 446.3 MB, free: 1.527 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.4558, allocations: 5.406 kB / 446.3 MB, free: 1.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.419e-06/0.4558, allocations: 4.75 kB / 446.3 MB, free: 1.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.4558, allocations: 0 / 446.3 MB, free: 1.52 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.00142/0.4572, allocations: 0.8453 MB / 447.1 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.188e-05/0.4573, allocations: 13.14 kB / 447.2 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001242/0.4574, allocations: 58.38 kB / 447.2 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006082/0.458, allocations: 434.3 kB / 447.6 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.319e-05/0.4581, allocations: 20.72 kB / 447.7 MB, free: 464 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.615e-05/0.4582, allocations: 44.73 kB / 447.7 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006477/0.4588, allocations: 376.7 kB / 448.1 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.4589, allocations: 2.625 kB / 448.1 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.4589, allocations: 15.31 kB / 448.1 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.4589, allocations: 7.094 kB / 448.1 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000458/0.4594, allocations: 258.4 kB / 448.3 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.4613, allocations: 1.386 MB / 449.7 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000583/0.4619, allocations: 214 kB / 449.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.4621, allocations: 124.1 kB / 450.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.076e-05/0.4622, allocations: 4 kB / 450.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000375/0.4626, allocations: 221.8 kB / 450.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.703e-06/0.4626, allocations: 0 / 450.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009393/0.4635, allocations: 485.4 kB / 450.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.4636, allocations: 110.9 kB / 450.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006144/0.4642, allocations: 487.5 kB / 451.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.982e-05/0.4643, allocations: 32.89 kB / 451.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002393/0.4645, allocations: 258.1 kB / 451.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.4646, allocations: 92.23 kB / 451.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.4648, allocations: 77.83 kB / 451.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.4649, allocations: 360.2 kB / 452.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000246/0.4652, allocations: 114.5 kB / 452.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003582/0.4656, allocations: 233.6 kB / 452.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.4672, allocations: 0.705 MB / 453.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4672, allocations: 0.9375 kB / 453.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009844/0.4682, allocations: 0.4972 MB / 453.7 MB, free: 12.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.302e-05/0.4683, allocations: 46.88 kB / 453.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.4683, allocations: 3.438 kB / 453.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.552e-05/0.4683, allocations: 4.406 kB / 453.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.4686, allocations: 74.92 kB / 453.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.458e-05/0.4687, allocations: 5.719 kB / 453.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.4689, allocations: 48 kB / 453.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.4689, allocations: 13.53 kB / 453.9 MB, free: 12.06 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.0003215/0.4692, allocations: 247 kB / 454.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-05/0.4693, allocations: 54.55 kB / 454.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008716/0.4702, allocations: 438.2 kB / 454.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.4702, allocations: 7.5 kB / 454.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.4702, allocations: 0 / 454.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.4703, allocations: 0 / 454.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005204/0.4708, allocations: 409.2 kB / 455 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.4708, allocations: 0 / 455 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.4711, allocations: 52.97 kB / 455.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.4711, allocations: 5.031 kB / 455.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.4711, allocations: 9.438 kB / 455.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4711, allocations: 5.188 kB / 455.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.4711, allocations: 3.984 kB / 455.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.4722, allocations: 0.5874 MB / 455.7 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.4723, allocations: 138.5 kB / 455.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.683e-05/0.4724, allocations: 10.34 kB / 455.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.4726, allocations: 15.45 kB / 455.8 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.4727, allocations: 24.31 kB / 455.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-05/0.4727, allocations: 8.625 kB / 455.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004154/0.4731, allocations: 341.5 kB / 456.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4731, allocations: 0 / 456.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005087/0.4736, allocations: 103.1 kB / 456.3 MB, free: 10.48 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.00122/0.4749, allocations: 457.6 kB / 456.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000766/0.4757, allocations: 402.3 kB / 457.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4757, allocations: 3.938 kB / 457.1 MB, free: 9.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000377/0.476, allocations: 223 kB / 457.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.4765, allocations: 72.3 kB / 457.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.4781, allocations: 0.824 MB / 458.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.4786, allocations: 0.8461 MB / 459.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002166/0.4788, allocations: 69.83 kB / 459.2 MB, free: 8.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.963e-05/0.4789, allocations: 30.88 kB / 459.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of SimCode: time 6.61e-07/0.479, allocations: 1.125 kB / 459.2 MB, free: 8.457 MB / 334.1 MB Notification: Performance of Templates: time 0.01004/0.489, allocations: 4.663 MB / 463.9 MB, free: 4.473 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)