Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.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: "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001949/0.001949, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 195.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.322/2.322, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.1/0.1, allocations: 10.74 MB / 280.5 MB, free: 10.49 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.00255/0.00255, allocations: 71.89 kB / 340.7 MB, free: 23.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1355/0.1381, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO): time 0.005338/0.1435, allocations: 1.819 MB / 391.5 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.1455, allocations: 0.6476 MB / 392.1 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.1458, allocations: 11.94 kB / 392.1 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.146, allocations: 23.67 kB / 392.2 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.1461, allocations: 31.67 kB / 392.2 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005127/0.1467, allocations: 107.8 kB / 392.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.1472, allocations: 227.4 kB / 392.5 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002412/0.1474, allocations: 56.56 kB / 392.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.1476, allocations: 95.62 kB / 392.7 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002285/0.1479, allocations: 95.47 kB / 392.8 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.124e-05/0.148, allocations: 23.94 kB / 392.8 MB, free: 2.992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.456e-05/0.148, allocations: 20 kB / 392.8 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.179e-05/0.1481, allocations: 43.83 kB / 392.9 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001744/0.1483, allocations: 95.45 kB / 392.9 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.1487, allocations: 183.5 kB / 393.1 MB, free: 2.656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.1487, allocations: 0 / 393.1 MB, free: 2.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1487, allocations: 4 kB / 393.1 MB, free: 2.652 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.1488, allocations: 0 / 393.1 MB, free: 2.652 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001709/0.1505, allocations: 0.5589 MB / 393.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.885e-05/0.1506, allocations: 15.89 kB / 393.7 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.552e-05/0.1507, allocations: 46.73 kB / 393.7 MB, free: 1.969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.477e-05/0.1508, allocations: 24.66 kB / 393.8 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005227/0.1513, allocations: 283.2 kB / 394.1 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.1514, allocations: 97.66 kB / 394.1 MB, free: 1.516 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.509e-05/0.1515, allocations: 20.38 kB / 394.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007437/0.1523, allocations: 185.5 kB / 394.3 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.1523, allocations: 0 / 394.3 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.872e-05/0.1524, allocations: 4 kB / 394.4 MB, free: 1.305 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.1524, allocations: 7.984 kB / 394.4 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008703/0.1533, allocations: 143.8 kB / 394.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.1552, allocations: 0.5896 MB / 395.1 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008566/0.1561, allocations: 142.4 kB / 395.2 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.1566, allocations: 76.8 kB / 395.3 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.36e-05/0.1566, allocations: 4 kB / 395.3 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009237/0.1576, allocations: 139.3 kB / 395.4 MB, free: 140 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 3.938e-06/0.1576, allocations: 0 / 395.4 MB, free: 140 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001685/0.1593, allocations: 277.4 kB / 395.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.1594, allocations: 59.39 kB / 395.8 MB, free: 15.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004127/0.1599, allocations: 207.1 kB / 396 MB, free: 15.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.615e-05/0.1599, allocations: 29.7 kB / 396 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/0.1602, allocations: 148.2 kB / 396.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/0.1603, allocations: 35.55 kB / 396.2 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.1605, allocations: 41.7 kB / 396.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0003245/0.1608, allocations: 334.8 kB / 396.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004818/0.1613, allocations: 75.94 kB / 396.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.1618, allocations: 114.8 kB / 396.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009087/0.1628, allocations: 203.7 kB / 396.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.308e-06/0.1628, allocations: 4 kB / 396.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.001298/0.1641, allocations: 270.9 kB / 397.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.368e-05/0.1642, allocations: 33.7 kB / 397.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.1642, allocations: 0 / 397.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.843e-05/0.1643, allocations: 0 / 397.2 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.1655, allocations: 83.81 kB / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.1655, allocations: 0 / 397.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.1659, allocations: 35.88 kB / 397.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.1659, allocations: 8 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,TrackRef.count,$PRE.TrackRef.count,TrackRef.T_start,$PRE.TrackRef.T_start,TSsignal.pulseStart,$PRE.TSsignal.pulseStart,FOaw.ts,$whenCondition2,FO.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0002935/0.1662, allocations: 133.7 kB / 397.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.1663, allocations: 19.8 kB / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.697e-05/0.1664, allocations: 17.41 kB / 397.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.1664, allocations: 0 / 397.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.1665, allocations: 0 / 397.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/0.1665, allocations: 7.984 kB / 397.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005597/0.167, allocations: 277.3 kB / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1671, allocations: 0 / 397.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.1684, allocations: 67.94 kB / 397.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.1684, allocations: 4 kB / 397.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.1684, allocations: 4 kB / 397.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.929e-05/0.1685, allocations: 8 kB / 397.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1685, allocations: 0 / 397.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001618/0.1701, allocations: 320.5 kB / 398.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1703, allocations: 96.77 kB / 398.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.354e-05/0.1703, allocations: 0 / 398.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.1707, allocations: 24.02 kB / 398.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.1708, allocations: 19.97 kB / 398.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.913e-05/0.1709, allocations: 4 kB / 398.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002679/0.1712, allocations: 152.6 kB / 398.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1712, allocations: 0 / 398.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000475/0.1717, allocations: 36 kB / 398.5 MB, free: 12.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (FOtr.Y,FOaw.Y,FO.Y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,FOaw.ts,TSsignal.pulseStart,TrackRef.T_start,TrackRef.count) * Number of discrete states: 1 (TrackRef.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.002186/0.1739, allocations: 0.8501 MB / 399.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001168/0.1751, allocations: 231.2 kB / 399.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.1751, allocations: 0 / 399.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005158/0.1756, allocations: 92.05 kB / 399.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.1761, allocations: 29.47 kB / 399.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.1874, allocations: 2.232 MB / 402 MB, free: 9.273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00093/0.1884, allocations: 0.7358 MB / 402.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.1887, allocations: 17.55 kB / 402.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/0.189, allocations: 67.42 kB / 402.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of SimCode: time 1.452e-06/0.189, allocations: 0 / 402.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1483/0.3374, allocations: 4.056 MB / 406.8 MB, free: 4.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.17/16.51, allocations: 11.58 kB / 406.8 MB, free: 4.418 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingFO.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingFO.pipe 2>&1)