Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_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.TestPI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking") translateModel(IndustrialControlSystems.Controllers.Examples.TestPI_tracking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 89.66 kB / 15.36 MB, free: 0.7383 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.01078/0.01078, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.753/1.753, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05622/0.05622, allocations: 10.75 MB / 281.5 MB, free: 10.45 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.0007209/0.0007208, allocations: 16.22 kB / 342.2 MB, free: 23.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1274, allocations: 50.01 MB / 392.2 MB, free: 5.414 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Examples.TestPI_tracking): time 0.00416/0.1316, allocations: 2.524 MB / 394.8 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003505/0.1351, allocations: 1.883 MB / 396.6 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004614/0.1356, allocations: 23.75 kB / 396.7 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.1367, allocations: 351 kB / 397 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.1377, allocations: 267 kB / 397.3 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.14, allocations: 0.5889 MB / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00195/0.142, allocations: 0.9357 MB / 398.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005203/0.1425, allocations: 132.7 kB / 398.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006579/0.1432, allocations: 334.5 kB / 399.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006755/0.1439, allocations: 378.4 kB / 399.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001627/0.1441, allocations: 24 kB / 399.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004846/0.1446, allocations: 223.8 kB / 399.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002775/0.1448, allocations: 191.2 kB / 400.1 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004643/0.1453, allocations: 331.5 kB / 400.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.1465, allocations: 0.8059 MB / 401.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1465, allocations: 0 / 401.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1466, allocations: 0 / 401.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.209e-05/0.1466, allocations: 0 / 401.2 MB, free: 12.42 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002172/0.1488, allocations: 1.102 MB / 402.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1488, allocations: 12.03 kB / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/0.1491, allocations: 95.81 kB / 402.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.1504, allocations: 0.5865 MB / 403 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.299e-05/0.1505, allocations: 33.38 kB / 403 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001707/0.1507, allocations: 56.12 kB / 403.1 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.1521, allocations: 0.6093 MB / 403.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.302e-05/0.1522, allocations: 0 / 403.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/0.1523, allocations: 20 kB / 403.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.1523, allocations: 15.94 kB / 403.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001026/0.1533, allocations: 451.6 kB / 404.2 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003722/0.1571, allocations: 2.141 MB / 406.3 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007553/0.1579, allocations: 354.9 kB / 406.6 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004005/0.1583, allocations: 225.6 kB / 406.9 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.1583, allocations: 8 kB / 406.9 MB, free: 6.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006845/0.159, allocations: 381.3 kB / 407.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=53): time 8.085e-06/0.1591, allocations: 3.984 kB / 407.2 MB, free: 6.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=53): time 0.001726/0.1608, allocations: 0.8692 MB / 408.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1609, allocations: 170.2 kB / 408.3 MB, free: 4.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/0.162, allocations: 0.77 MB / 409 MB, free: 4.211 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.858e-05/0.162, allocations: 41.64 kB / 409.1 MB, free: 4.164 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/0.1624, allocations: 368.7 kB / 409.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.1626, allocations: 165.6 kB / 409.6 MB, free: 3.633 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.1627, allocations: 73.67 kB / 409.7 MB, free: 3.555 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.1628, allocations: 334 kB / 410 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.1632, allocations: 213.4 kB / 410.2 MB, free: 3.016 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005216/0.1637, allocations: 389.2 kB / 410.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002758/0.1665, allocations: 1.321 MB / 411.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.817e-06/0.1665, allocations: 0 / 411.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00153/0.1681, allocations: 0.8719 MB / 412.8 MB, free: 240 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.073e-05/0.1682, allocations: 67.39 kB / 412.9 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.1682, allocations: 11.94 kB / 412.9 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.1682, allocations: 7.938 kB / 412.9 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007035/0.1689, allocations: 176.3 kB / 413 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.896e-05/0.169, allocations: 8 kB / 413.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004198/0.1694, allocations: 83.34 kB / 413.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/0.1695, allocations: 32 kB / 413.2 MB, free: 15.84 MB / 318.1 MB Warning: Assuming fixed start value for the following 9 variables: processBump.w:VARIABLE(fixed = true protected = true ) "proper part of the output" type: Real processBump.U[2]:VARIABLE(fixed = true protected = true ) type: Real [2] processBump.Y[3]:VARIABLE(fixed = true protected = true ) type: Real [3] 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: 20 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.TSsignal.combiTimeTable.nextTimeEvent,$whenCondition4,$PRE.TSsignalBump.combiTimeTable.nextTimeEvent,$whenCondition3,TSsignalBump.combiTimeTable.nextTimeEventScaled,$PRE.TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TrackRefBump.nextEventScaled,TrackRefBump.nextEvent,$PRE.TrackRefBump.nextEvent,TrackRefBump.last,TrackRefBump.b,TrackRefBump.a,R_Bump.ts,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,$whenCondition2,$whenCondition1,R.TS_in,R_Bump.ATreq_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 (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 2 * 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.0005275/0.17, allocations: 354.7 kB / 413.5 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.1701, allocations: 79.06 kB / 413.6 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.1715, allocations: 0.7869 MB / 414.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.1715, allocations: 11.92 kB / 414.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1715, allocations: 0 / 414.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.1715, allocations: 0 / 414.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006764/0.1722, allocations: 0.6146 MB / 415 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.1722, allocations: 0 / 415 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007031/0.1729, allocations: 131.9 kB / 415.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.173, allocations: 4 kB / 415.1 MB, free: 13.78 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.596e-05/0.173, allocations: 19.98 kB / 415.2 MB, free: 13.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.211e-06/0.173, allocations: 7.938 kB / 415.2 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.173, allocations: 3.938 kB / 415.2 MB, free: 13.75 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.1748, allocations: 1.083 MB / 416.3 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.175, allocations: 164 kB / 416.4 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.645e-05/0.1751, allocations: 16 kB / 416.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.1753, allocations: 39.91 kB / 416.5 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.1754, allocations: 36.39 kB / 416.5 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/0.1755, allocations: 23.98 kB / 416.5 MB, free: 12.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006344/0.1761, allocations: 0.5263 MB / 417.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1761, allocations: 0 / 417.1 MB, free: 11.81 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005632/0.1767, allocations: 179.7 kB / 417.2 MB, free: 11.64 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 12 (R.FBout,R_track.FBout,process.Y[3],process.U[2],process.w,processTrack.Y[3],processTrack.U[2],processTrack.w,R_Bump.FBout,processBump.Y[3],processBump.U[2],processBump.w) * Number of discrete variables: 20 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,R_track.ts,TSsignal.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEventScaled,TrackRef.a,TrackRef.b,TrackRef.last,TrackRef.nextEvent,TrackRef.nextEventScaled,R_Bump.ts,TrackRefBump.a,TrackRefBump.b,TrackRefBump.last,TrackRefBump.nextEvent,TrackRefBump.nextEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignalBump.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 16 (TrackRef.nextEvent,TrackRef.last,TrackRef.nextEventScaled,TrackRef.b,TrackRef.a,$whenCondition1,TrackRefBump.nextEvent,TrackRefBump.last,TrackRefBump.nextEventScaled,TrackRefBump.b,TrackRefBump.a,$whenCondition2,TSsignal.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEventScaled,TSsignalBump.combiTimeTable.nextTimeEvent,TSsignal.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 4 * 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.00109/0.1778, allocations: 0.4904 MB / 417.7 MB, free: 11.24 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.1789, allocations: 0.7442 MB / 418.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.179, allocations: 4.188 kB / 418.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000531/0.1795, allocations: 441.3 kB / 418.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.1801, allocations: 123.6 kB / 419 MB, free: 9.902 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.1824, allocations: 1.709 MB / 420.7 MB, free: 8.164 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000556/0.183, allocations: 0.9846 MB / 421.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003559/0.1834, allocations: 125.1 kB / 421.8 MB, free: 7.027 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001324/0.1835, allocations: 59.36 kB / 421.9 MB, free: 6.969 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1835, allocations: 0 / 421.9 MB, free: 6.969 MB / 318.1 MB Notification: Performance of Templates: time 0.2223/0.4059, allocations: 7.543 MB / 429.4 MB, free: 41.28 MB / 318.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.makefile Environment - environmentSimulation: (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.sim & ./IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Controllers.Examples.TestPI_tracking.pipe 2>&1) Environment - environmentSimulation: