Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPID,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPID",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.02654/0.02654, allocations: 102.2 kB / 15.73 MB, free: 6.066 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.001507/0.001507, allocations: 190.4 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.523/1.523, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.9787/0.9787, allocations: 132.2 MB / 422.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 63.11 kB / 0.5808 GB, free: 24.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1311, allocations: 80.21 MB / 0.6592 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPID): time 0.00437/0.1355, allocations: 3.717 MB / 0.6628 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002395/0.1379, allocations: 1.325 MB / 0.6641 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004781/0.1385, allocations: 23.88 kB / 0.6641 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003321/0.1388, allocations: 126.6 kB / 0.6642 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005533/0.1394, allocations: 190.5 kB / 0.6644 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.1405, allocations: 0.5718 MB / 0.665 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009753/0.1415, allocations: 0.972 MB / 0.6659 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004829/0.142, allocations: 345.9 kB / 0.6662 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004357/0.1424, allocations: 378.4 kB / 0.6666 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003273/0.1428, allocations: 346.1 kB / 0.6669 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.1429, allocations: 83.94 kB / 0.667 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.4e-05/0.143, allocations: 76 kB / 0.6671 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.1431, allocations: 187.2 kB / 0.6673 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002867/0.1434, allocations: 377.7 kB / 0.6676 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008366/0.1443, allocations: 0.8982 MB / 0.6685 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1443, allocations: 4 kB / 0.6685 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.573e-06/0.1443, allocations: 0 / 0.6685 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.1443, allocations: 0 / 0.6685 GB, free: 1.184 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002205/0.1465, allocations: 1.21 MB / 0.6697 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.1466, allocations: 12.03 kB / 0.6697 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.91e-05/0.1467, allocations: 94.7 kB / 0.6698 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.1468, allocations: 100.3 kB / 0.6699 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009815/0.1478, allocations: 0.6189 MB / 0.6705 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1479, allocations: 92.97 kB / 0.6706 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.402e-05/0.148, allocations: 55.94 kB / 0.6706 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.149, allocations: 0.604 MB / 0.6712 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1491, allocations: 4 kB / 0.6712 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.952e-05/0.1491, allocations: 20 kB / 0.6712 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1491, allocations: 12 kB / 0.6713 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008835/0.15, allocations: 423.6 kB / 0.6717 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002534/0.1526, allocations: 2.11 MB / 0.6737 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.1537, allocations: 0.4934 MB / 0.6742 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004267/0.1541, allocations: 221.2 kB / 0.6744 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.326e-05/0.1542, allocations: 4 kB / 0.6744 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005981/0.1548, allocations: 285.9 kB / 0.6747 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=45): time 2.535e-06/0.1548, allocations: 4 kB / 0.6747 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of matching and sorting (n=45): time 0.001379/0.1562, allocations: 0.6068 MB / 0.6753 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.071e-05/0.1563, allocations: 92.78 kB / 0.6754 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006459/0.1569, allocations: 0.6216 MB / 0.676 GB, free: 9.219 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.993e-05/0.157, allocations: 37.7 kB / 0.676 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.1572, allocations: 353.2 kB / 0.6763 GB, free: 8.828 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.1573, allocations: 166.6 kB / 0.6765 GB, free: 8.664 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.1575, allocations: 94.2 kB / 0.6766 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.1576, allocations: 329.9 kB / 0.6769 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004164/0.158, allocations: 191 kB / 0.6771 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004551/0.1585, allocations: 280.2 kB / 0.6774 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008495/0.1593, allocations: 473.9 kB / 0.6778 GB, free: 7.23 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1593, allocations: 4 kB / 0.6778 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00113/0.1605, allocations: 0.5989 MB / 0.6784 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.662e-05/0.1605, allocations: 41.62 kB / 0.6784 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1605, allocations: 0 / 0.6784 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.1606, allocations: 4 kB / 0.6784 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004515/0.161, allocations: 111.8 kB / 0.6786 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.161, allocations: 4 kB / 0.6786 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000379/0.1614, allocations: 63.59 kB / 0.6786 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.1615, allocations: 20 kB / 0.6786 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005126/0.162, allocations: 310.1 kB / 0.6789 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004179/0.1624, allocations: 272.2 kB / 0.6792 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007507/0.1632, allocations: 457.8 kB / 0.6796 GB, free: 5.277 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.334e-06/0.1632, allocations: 0 / 0.6796 GB, free: 5.277 MB / 0.5137 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001017/0.1642, allocations: 0.5791 MB / 0.6802 GB, free: 4.684 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.1642, allocations: 35.73 kB / 0.6802 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1643, allocations: 4 kB / 0.6802 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.732e-06/0.1643, allocations: 4.312 kB / 0.6802 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000418/0.1647, allocations: 103.9 kB / 0.6803 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.1647, allocations: 7.938 kB / 0.6803 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003579/0.1651, allocations: 51.72 kB / 0.6804 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.995e-05/0.1651, allocations: 19.94 kB / 0.6804 GB, free: 4.457 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001792/0.1653, allocations: 226.4 kB / 0.6806 GB, free: 4.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001079/0.1654, allocations: 71.53 kB / 0.6807 GB, free: 4.16 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001622/0.1656, allocations: 87.2 kB / 0.6808 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.1656, allocations: 4 kB / 0.6808 GB, free: 4.066 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.1656, allocations: 0 / 0.6808 GB, free: 4.066 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.331e-06/0.1656, allocations: 3.984 kB / 0.6808 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006041/0.1662, allocations: 0.6219 MB / 0.6814 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1662, allocations: 4 kB / 0.6814 GB, free: 3.387 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.1667, allocations: 79.88 kB / 0.6815 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1667, allocations: 0 / 0.6815 GB, free: 3.309 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.073e-05/0.1667, allocations: 12 kB / 0.6815 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.1667, allocations: 8 kB / 0.6815 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1667, allocations: 0 / 0.6815 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.1681, allocations: 0.7331 MB / 0.6822 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002198/0.1684, allocations: 196.5 kB / 0.6824 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.219e-05/0.1684, allocations: 12 kB / 0.6824 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003843/0.1688, allocations: 39.95 kB / 0.6824 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.159e-05/0.1689, allocations: 31.89 kB / 0.6825 GB, free: 2.242 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.428e-05/0.169, allocations: 19.98 kB / 0.6825 GB, free: 2.223 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004537/0.1694, allocations: 431.1 kB / 0.6829 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.1694, allocations: 0 / 0.6829 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005652/0.17, allocations: 215.5 kB / 0.6831 GB, free: 1.598 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * 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.00165/0.1716, allocations: 1.285 MB / 0.6844 GB, free: 292 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00151/0.1732, allocations: 0.7883 MB / 0.6851 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.1732, allocations: 1.188 kB / 0.6851 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004265/0.1736, allocations: 215.5 kB / 0.6853 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008737/0.1745, allocations: 196 kB / 0.6855 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007169/0.1817, allocations: 5.384 MB / 0.6908 GB, free: 9.535 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003991/0.1821, allocations: 0.9218 MB / 0.6917 GB, free: 8.586 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003905/0.1825, allocations: 93.12 kB / 0.6918 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.1829, allocations: 259.3 kB / 0.692 GB, free: 8.242 MB / 0.5294 GB Notification: Performance of SimCode: time 2.044e-06/0.1829, allocations: 0 / 0.692 GB, free: 8.242 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06108/0.2439, allocations: 14.03 MB / 0.7057 GB, free: 10.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.426/8.67, allocations: 10.94 kB / 0.7057 GB, free: 10.39 MB / 0.545 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Controls_Continuous_Examples_LimPID.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPID.pipe 2>&1)