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.001026/0.001026, allocations: 168.8 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05906/0.05906, allocations: 10.65 MB / 18.73 MB, free: 1.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.45/1.45, allocations: 205.3 MB / 226.9 MB, free: 7.984 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008806/0.0008804, allocations: 86.42 kB / 277.3 MB, free: 5.516 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 1.472e-05/1.488e-05, allocations: 4 kB / 333.5 MB, free: 28.5 MB / 250.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0859/0.08593, allocations: 50 MB / 383.5 MB, free: 10.46 MB / 282.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3373/0.4233, allocations: 82.97 MB / 466.5 MB, free: 1.934 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.4236, allocations: 80.14 kB / 466.6 MB, free: 1.891 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.02888/0.4525, allocations: 10.42 MB / 477 MB, free: 9.191 MB / 346.8 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4525, allocations: 0 / 477 MB, free: 9.191 MB / 346.8 MB Notification: Performance of Transformations before backend: time 4.323e-05/0.4526, allocations: 12 kB / 477 MB, free: 9.18 MB / 346.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.001303/0.4539, allocations: 0.7533 MB / 477.8 MB, free: 8.402 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.454, allocations: 12.03 kB / 477.8 MB, free: 8.391 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.4541, allocations: 59.3 kB / 477.8 MB, free: 8.332 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008676/0.455, allocations: 442.6 kB / 478.3 MB, free: 7.902 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.1e-05/0.4551, allocations: 67.97 kB / 478.3 MB, free: 7.824 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.448e-05/0.4551, allocations: 20 kB / 478.3 MB, free: 7.805 MB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004283/0.4556, allocations: 241.6 kB / 478.6 MB, free: 7.641 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.4561, allocations: 356.4 kB / 478.9 MB, free: 7.336 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.4562, allocations: 7.938 kB / 478.9 MB, free: 7.328 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.364e-05/0.4562, allocations: 3.953 kB / 478.9 MB, free: 7.324 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.4562, allocations: 8 kB / 479 MB, free: 7.316 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.4584, allocations: 1.441 MB / 480.4 MB, free: 6.027 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004251/0.4588, allocations: 181.2 kB / 480.6 MB, free: 5.895 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.459, allocations: 115.6 kB / 480.7 MB, free: 5.816 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.998e-05/0.4591, allocations: 12.14 kB / 480.7 MB, free: 5.805 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003531/0.4594, allocations: 215.9 kB / 480.9 MB, free: 5.613 MB / 346.8 MB Notification: Performance of pre-optimization done (n=27): time 2.104e-06/0.4594, allocations: 0 / 480.9 MB, free: 5.613 MB / 346.8 MB Notification: Performance of matching and sorting (n=27): time 0.0007299/0.4602, allocations: 346 kB / 481.2 MB, free: 5.336 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.326e-05/0.4603, allocations: 110.9 kB / 481.4 MB, free: 5.203 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.4608, allocations: 386.5 kB / 481.7 MB, free: 4.898 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/0.4608, allocations: 29.64 kB / 481.8 MB, free: 4.863 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.461, allocations: 249.8 kB / 482 MB, free: 4.688 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.602e-05/0.4611, allocations: 88.12 kB / 482.1 MB, free: 4.613 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.4612, allocations: 0 / 482.1 MB, free: 4.613 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4614, allocations: 363.7 kB / 482.4 MB, free: 4.27 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.4616, allocations: 110.2 kB / 482.6 MB, free: 4.195 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.4618, allocations: 221 kB / 482.8 MB, free: 3.973 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.4621, allocations: 149 kB / 482.9 MB, free: 3.863 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.4622, allocations: 0 / 482.9 MB, free: 3.863 MB / 346.8 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0007647/0.4629, allocations: 452 kB / 483.4 MB, free: 3.5 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.463, allocations: 45.84 kB / 483.4 MB, free: 3.453 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.463, allocations: 4 kB / 483.4 MB, free: 3.449 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.076e-05/0.463, allocations: 8 kB / 483.4 MB, free: 3.441 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007184/0.4638, allocations: 91.83 kB / 483.5 MB, free: 3.352 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.4638, allocations: 4 kB / 483.5 MB, free: 3.348 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000241/0.464, allocations: 35.67 kB / 483.5 MB, free: 3.312 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.139e-05/0.4641, allocations: 22.8 kB / 483.6 MB, free: 3.293 MB / 346.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.0002339/0.4643, allocations: 169.5 kB / 483.7 MB, free: 3.117 MB / 346.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.7e-05/0.4644, allocations: 51.39 kB / 483.8 MB, free: 3.066 MB / 346.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007968/0.4652, allocations: 393.4 kB / 484.2 MB, free: 2.766 MB / 346.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.4653, allocations: 4 kB / 484.2 MB, free: 2.762 MB / 346.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.4653, allocations: 4 kB / 484.2 MB, free: 2.758 MB / 346.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4653, allocations: 0 / 484.2 MB, free: 2.758 MB / 346.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004925/0.4658, allocations: 395.2 kB / 484.6 MB, free: 2.41 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4658, allocations: 0 / 484.6 MB, free: 2.41 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007124/0.4665, allocations: 67.89 kB / 484.6 MB, free: 2.344 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.4665, allocations: 7.953 kB / 484.6 MB, free: 2.336 MB / 346.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.394e-05/0.4666, allocations: 11.36 kB / 484.6 MB, free: 2.328 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4666, allocations: 0 / 484.6 MB, free: 2.328 MB / 346.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.4666, allocations: 4 kB / 484.6 MB, free: 2.324 MB / 346.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008057/0.4674, allocations: 0.5497 MB / 485.2 MB, free: 1.887 MB / 346.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.4675, allocations: 124.4 kB / 485.3 MB, free: 1.75 MB / 346.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.68e-05/0.4676, allocations: 11.94 kB / 485.3 MB, free: 1.738 MB / 346.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.4678, allocations: 15.98 kB / 485.3 MB, free: 1.723 MB / 346.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.764e-05/0.4678, allocations: 19.67 kB / 485.4 MB, free: 1.707 MB / 346.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.4679, allocations: 19.42 kB / 485.4 MB, free: 1.691 MB / 346.8 MB Notification: Performance of sorting global known variables: time 0.0002859/0.4682, allocations: 292.8 kB / 485.7 MB, free: 1.469 MB / 346.8 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4682, allocations: 0 / 485.7 MB, free: 1.469 MB / 346.8 MB Notification: Performance of remove unused functions: time 0.0004369/0.4686, allocations: 110.5 kB / 485.8 MB, free: 1.363 MB / 346.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.0008863/0.4695, allocations: 409.5 kB / 486.2 MB, free: 0.9688 MB / 346.8 MB Notification: Performance of simCode: created initialization part: time 0.0005336/0.4701, allocations: 379 kB / 486.5 MB, free: 0.6836 MB / 346.8 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4701, allocations: 0 / 486.5 MB, free: 0.6836 MB / 346.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.4703, allocations: 216.7 kB / 486.8 MB, free: 0.5156 MB / 346.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/0.4707, allocations: 65.84 kB / 486.8 MB, free: 484 kB / 346.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.4717, allocations: 0.6667 MB / 487.5 MB, free: 15.84 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004451/0.4722, allocations: 0.8595 MB / 488.3 MB, free: 14.97 MB / 362.8 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.4724, allocations: 71.22 kB / 488.4 MB, free: 14.9 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.254e-05/0.4725, allocations: 35.38 kB / 488.5 MB, free: 14.87 MB / 362.8 MB Notification: Performance of SimCode: time 2.51e-07/0.4725, allocations: 0 / 488.5 MB, free: 14.87 MB / 362.8 MB Notification: Performance of Templates: time 0.008914/0.4814, allocations: 4.035 MB / 492.5 MB, free: 10.85 MB / 362.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)