Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_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.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPD_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008934/0.0008934, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00658/0.00658, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.676/1.676, allocations: 205.4 MB / 222.4 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06725/0.06725, allocations: 10.74 MB / 281.5 MB, free: 10.43 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.0004666/0.0004666, allocations: 16.22 kB / 342.2 MB, free: 23.49 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1321, allocations: 50.01 MB / 392.2 MB, free: 5.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPD_tracking): time 0.00402/0.1362, allocations: 2.045 MB / 394.3 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.1395, allocations: 1.427 MB / 395.7 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002466/0.1398, allocations: 15.88 kB / 395.7 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008581/0.1407, allocations: 203.3 kB / 395.9 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004356/0.1411, allocations: 139.5 kB / 396.1 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.1424, allocations: 347.5 kB / 396.4 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008484/0.1432, allocations: 0.5701 MB / 397 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.1435, allocations: 69.06 kB / 397 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003496/0.1438, allocations: 203.1 kB / 397.2 MB, free: 388 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004158/0.1443, allocations: 223 kB / 397.5 MB, free: 164 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.611e-05/0.1444, allocations: 12 kB / 397.5 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003676/0.1447, allocations: 131.9 kB / 397.6 MB, free: 20 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.145, allocations: 127.5 kB / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.1453, allocations: 224.2 kB / 397.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000795/0.1461, allocations: 0.5023 MB / 398.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.939e-06/0.1461, allocations: 4 kB / 398.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1461, allocations: 3.938 kB / 398.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1462, allocations: 0 / 398.5 MB, free: 15.16 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001988/0.1482, allocations: 0.7946 MB / 399.2 MB, free: 14.3 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.601e-05/0.1482, allocations: 12.03 kB / 399.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001698/0.1484, allocations: 64.19 kB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009257/0.1494, allocations: 450.2 kB / 399.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.106e-05/0.1495, allocations: 29.02 kB / 399.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.1496, allocations: 40.12 kB / 399.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.1506, allocations: 428.4 kB / 400.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.497e-05/0.1507, allocations: 15.84 kB / 400.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.605e-05/0.1507, allocations: 16 kB / 400.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.1508, allocations: 8 kB / 400.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008353/0.1516, allocations: 314.3 kB / 400.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003257/0.1549, allocations: 1.56 MB / 402.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000633/0.1555, allocations: 239 kB / 402.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/0.1559, allocations: 157 kB / 402.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.156, allocations: 240 / 402.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005674/0.1566, allocations: 259 kB / 402.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.645e-06/0.1566, allocations: 0 / 402.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=33): time 0.001571/0.1582, allocations: 0.5521 MB / 403.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.1583, allocations: 114.8 kB / 403.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009224/0.1592, allocations: 0.5252 MB / 404 MB, free: 9.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.917e-05/0.1593, allocations: 33.7 kB / 404 MB, free: 9.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.1596, allocations: 260 kB / 404.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.1597, allocations: 114.4 kB / 404.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.1599, allocations: 65.61 kB / 404.4 MB, free: 8.875 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002675/0.1602, allocations: 370.8 kB / 404.8 MB, free: 8.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.1606, allocations: 144.8 kB / 404.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.1612, allocations: 286.2 kB / 405.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002816/0.164, allocations: 0.9061 MB / 406.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.164, allocations: 4 kB / 406.1 MB, free: 7.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001336/0.1654, allocations: 0.6204 MB / 406.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.433e-05/0.1654, allocations: 34.23 kB / 406.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.1655, allocations: 8 kB / 406.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.724e-05/0.1655, allocations: 11.94 kB / 406.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/0.1661, allocations: 111.8 kB / 406.9 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/0.1661, allocations: 4 kB / 406.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.1665, allocations: 63.42 kB / 407 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-05/0.1666, allocations: 23.94 kB / 407 MB, free: 6.137 MB / 302.1 MB Warning: Assuming fixed start value for the following 10 variables: processTrack.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processTrack.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] processTrack.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] processTrack.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] process.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real process.U[3]:VARIABLE(fixed = true protected = true ) type: Real [3] process.U[2]:VARIABLE(fixed = true protected = true ) type: Real [3] process.Y[4]:VARIABLE(fixed = true protected = true ) type: Real [4] process.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [4] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (59): * Single equations (assignments): 58 * 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.0005576/0.1671, allocations: 257.3 kB / 407.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.653e-05/0.1672, allocations: 55.34 kB / 407.3 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.1684, allocations: 0.4924 MB / 407.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.1685, allocations: 4 kB / 407.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.1685, allocations: 0 / 407.8 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1685, allocations: 3.984 kB / 407.8 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006359/0.1691, allocations: 457 kB / 408.3 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.1691, allocations: 3.938 kB / 408.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005719/0.1697, allocations: 75.89 kB / 408.3 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1697, allocations: 0 / 408.3 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.1698, allocations: 19.92 kB / 408.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.1698, allocations: 0 / 408.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1698, allocations: 0 / 408.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.1712, allocations: 0.6712 MB / 409 MB, free: 4.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.1714, allocations: 136.3 kB / 409.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.486e-05/0.1715, allocations: 19.92 kB / 409.2 MB, free: 3.832 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.1717, allocations: 19.98 kB / 409.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-05/0.1718, allocations: 19.97 kB / 409.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.1719, allocations: 12 kB / 409.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000545/0.1724, allocations: 366.8 kB / 409.6 MB, free: 3.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1724, allocations: 7.938 kB / 409.6 MB, free: 3.418 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000676/0.1731, allocations: 115.9 kB / 409.7 MB, free: 3.305 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.Fin,R_track.Fin,process.Y[3],process.Y[4],process.U[2],process.U[3],process.w,processTrack.Y[3],processTrack.Y[4],processTrack.U[2],processTrack.U[3],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 (30): * Single equations (assignments): 27 * 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.00149/0.1746, allocations: 454.5 kB / 410.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.1758, allocations: 499.2 kB / 410.6 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1758, allocations: 0 / 410.6 MB, free: 2.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000481/0.1763, allocations: 259.7 kB / 410.9 MB, free: 2.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.1769, allocations: 81.84 kB / 411 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002185/0.1791, allocations: 1.188 MB / 412.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005984/0.1798, allocations: 0.8664 MB / 413 MB, free: 0 / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004398/0.1802, allocations: 100.1 kB / 413.1 MB, free: 15.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.1804, allocations: 35.44 kB / 413.2 MB, free: 15.87 MB / 318.1 MB Notification: Performance of SimCode: time 1.373e-06/0.1804, allocations: 0 / 413.2 MB, free: 15.87 MB / 318.1 MB Notification: Performance of Templates: time 0.01449/0.1949, allocations: 4.77 MB / 417.9 MB, free: 11.09 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPD_tracking.pipe 2>&1) Environment - environmentSimulation: