Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.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.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP",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.002049/0.002049, 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.002474/0.002473, allocations: 198.5 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 3.313/3.313, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.09928/0.09928, allocations: 10.75 MB / 280.5 MB, free: 10.5 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.003386/0.003387, allocations: 63.91 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1442, allocations: 49.01 MB / 389.7 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP): time 0.005848/0.1502, allocations: 1.714 MB / 391.4 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001682/0.1519, allocations: 0.5969 MB / 392 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.1521, allocations: 7.938 kB / 392 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.1523, allocations: 19.8 kB / 392 MB, free: 3.777 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.1525, allocations: 27.72 kB / 392 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.1529, allocations: 63.86 kB / 392.1 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003593/0.1532, allocations: 179.5 kB / 392.3 MB, free: 3.512 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.1534, allocations: 37.73 kB / 392.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002003/0.1536, allocations: 67.7 kB / 392.4 MB, free: 3.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1538, allocations: 79.61 kB / 392.5 MB, free: 3.332 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.843e-05/0.1539, allocations: 12 kB / 392.5 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.041e-05/0.1539, allocations: 16 kB / 392.5 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.154, allocations: 27.91 kB / 392.5 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.1541, allocations: 75.52 kB / 392.6 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.1544, allocations: 131.5 kB / 392.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1545, allocations: 0 / 392.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.1545, allocations: 0 / 392.7 MB, free: 3.074 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.1545, allocations: 0 / 392.7 MB, free: 3.074 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001467/0.156, allocations: 0.512 MB / 393.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.367e-05/0.1561, allocations: 15.89 kB / 393.2 MB, free: 2.492 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.001e-05/0.1562, allocations: 42.73 kB / 393.3 MB, free: 2.441 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.1563, allocations: 24.66 kB / 393.3 MB, free: 2.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006194/0.1569, allocations: 235.9 kB / 393.5 MB, free: 2.148 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.1571, allocations: 63.97 kB / 393.6 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.207e-05/0.1571, allocations: 4.375 kB / 393.6 MB, free: 2.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006529/0.1578, allocations: 153 kB / 393.7 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1578, allocations: 0 / 393.7 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.1579, allocations: 4 kB / 393.8 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.1579, allocations: 4 kB / 393.8 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007267/0.1586, allocations: 115.9 kB / 393.9 MB, free: 1.797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.1599, allocations: 432.4 kB / 394.3 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008416/0.1608, allocations: 118.5 kB / 394.4 MB, free: 1.199 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004363/0.1612, allocations: 64.8 kB / 394.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.1613, allocations: 0 / 394.5 MB, free: 1.133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007664/0.1621, allocations: 139.1 kB / 394.6 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 3.777e-06/0.1621, allocations: 0 / 394.6 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.001585/0.1637, allocations: 233.3 kB / 394.8 MB, free: 0.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.065e-05/0.1638, allocations: 55.41 kB / 394.9 MB, free: 0.6836 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Blocks/Sources.mo:517:5-517:73:writable] Warning: Parameter Input.freqHz has no value, and is fixed during initialization (fixed=true), using available start value (start=1.0) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.1641, allocations: 194 kB / 395.1 MB, free: 500 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.844e-05/0.1642, allocations: 25.7 kB / 395.1 MB, free: 468 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1644, allocations: 120.6 kB / 395.2 MB, free: 344 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.1644, allocations: 27.64 kB / 395.2 MB, free: 316 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.1646, allocations: 33.7 kB / 395.3 MB, free: 276 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1648, allocations: 330.8 kB / 395.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004925/0.1653, allocations: 63.88 kB / 395.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.1659, allocations: 99.16 kB / 395.8 MB, free: 15.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009356/0.1668, allocations: 180.8 kB / 395.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.1669, allocations: 0 / 395.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.001168/0.168, allocations: 227 kB / 396.2 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-05/0.1681, allocations: 45.62 kB / 396.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1682, allocations: 0 / 396.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.1682, allocations: 0 / 396.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003498/0.1686, allocations: 32.06 kB / 396.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.1686, allocations: 0 / 396.2 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/0.169, allocations: 31.81 kB / 396.3 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.199e-05/0.1691, allocations: 8 kB / 396.3 MB, free: 15.22 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,Ptr.ts,$whenCondition2,P.TS_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * 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.0002569/0.1694, allocations: 129.8 kB / 396.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.1694, allocations: 15.84 kB / 396.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.127e-05/0.1695, allocations: 13.41 kB / 396.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1696, allocations: 4 kB / 396.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.1696, allocations: 0 / 396.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1696, allocations: 0 / 396.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004271/0.17, allocations: 229.6 kB / 396.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.634e-06/0.1701, allocations: 0 / 396.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002721/0.1703, allocations: 27.91 kB / 396.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.1704, allocations: 3.938 kB / 396.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.048e-05/0.1704, allocations: 7.984 kB / 396.7 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.187e-06/0.1704, allocations: 8 kB / 396.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1705, allocations: 0 / 396.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.1715, allocations: 200.9 kB / 396.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.1717, allocations: 88.92 kB / 397 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.249e-05/0.1717, allocations: 7.922 kB / 397 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.1721, allocations: 31.95 kB / 397 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.1722, allocations: 19.97 kB / 397 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.1722, allocations: 7.938 kB / 397.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002027/0.1724, allocations: 128.1 kB / 397.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1725, allocations: 0 / 397.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004591/0.1729, allocations: 35.84 kB / 397.2 MB, free: 14.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,Ptr.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 (10): * Single equations (assignments): 7 * 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.001593/0.1745, allocations: 0.7411 MB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00116/0.1757, allocations: 207.3 kB / 398.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.1757, allocations: 4 kB / 398.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004982/0.1763, allocations: 71.88 kB / 398.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.1767, allocations: 23.97 kB / 398.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005253/0.182, allocations: 1.919 MB / 400.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004549/0.1825, allocations: 0.7162 MB / 400.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001431/0.1827, allocations: 9.094 kB / 400.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.1828, allocations: 47.41 kB / 400.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1829, allocations: 4 kB / 400.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/0.2191, allocations: 3.408 MB / 404.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.39, allocations: 15.86 kB / 404.4 MB, free: 6.906 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IndustrialControlSystems_IndustrialControlSystems_Controllers_Blocks_Examples_TestTrackingP.fmu > IndustrialControlSystems_IndustrialControlSystems.Controllers.Blocks.Examples.TestTrackingP.pipe 2>&1)