Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset",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.001117/0.001117, allocations: 112.5 kB / 15.73 MB, free: 68 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.001221/0.001221, allocations: 192.7 kB / 16.66 MB, free: 6.586 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.242/1.242, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6919/0.6919, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 66.2 kB / 0.5808 GB, free: 1.129 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1413, allocations: 80.21 MB / 0.6592 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.004759/0.1461, allocations: 4.095 MB / 0.6632 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002284/0.1484, allocations: 1.325 MB / 0.6644 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004153/0.1489, allocations: 23.94 kB / 0.6645 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003182/0.1492, allocations: 126.7 kB / 0.6646 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003381/0.1496, allocations: 182.4 kB / 0.6648 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007983/0.1504, allocations: 429.2 kB / 0.6652 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0008362/0.1512, allocations: 0.9593 MB / 0.6661 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005612/0.1518, allocations: 462.4 kB / 0.6666 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.1521, allocations: 326.8 kB / 0.6669 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002992/0.1524, allocations: 342.3 kB / 0.6672 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.1525, allocations: 95.94 kB / 0.6673 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.865e-05/0.1526, allocations: 92 kB / 0.6674 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001277/0.1528, allocations: 175.4 kB / 0.6675 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002919/0.1531, allocations: 398 kB / 0.6679 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009075/0.154, allocations: 1.066 MB / 0.669 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.154, allocations: 0 / 0.669 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.302e-06/0.154, allocations: 0 / 0.669 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.238e-05/0.154, allocations: 0 / 0.669 GB, free: 3.91 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001667/0.1557, allocations: 1.104 MB / 0.67 GB, free: 2.746 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1557, allocations: 11.97 kB / 0.67 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1559, allocations: 106.7 kB / 0.6701 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.156, allocations: 88.42 kB / 0.6702 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008309/0.1568, allocations: 0.5654 MB / 0.6708 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.1569, allocations: 45.69 kB / 0.6708 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.284e-05/0.157, allocations: 60.38 kB / 0.6709 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009898/0.1579, allocations: 0.5999 MB / 0.6715 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.205e-05/0.158, allocations: 4 kB / 0.6715 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.158, allocations: 31.94 kB / 0.6715 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.1581, allocations: 12 kB / 0.6715 GB, free: 1.16 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008975/0.159, allocations: 457 kB / 0.672 GB, free: 0.7148 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002488/0.1615, allocations: 1.997 MB / 0.6739 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008944/0.1624, allocations: 452.7 kB / 0.6743 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000418/0.1628, allocations: 234.1 kB / 0.6746 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.1628, allocations: 4.438 kB / 0.6746 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005025/0.1633, allocations: 273.2 kB / 0.6748 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.294e-06/0.1634, allocations: 4 kB / 0.6748 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001203/0.1646, allocations: 0.5769 MB / 0.6754 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.1646, allocations: 59.84 kB / 0.6754 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004357/0.1651, allocations: 442 kB / 0.6759 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.1651, allocations: 33.7 kB / 0.6759 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.1653, allocations: 333.6 kB / 0.6762 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1654, allocations: 178.5 kB / 0.6764 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.1656, allocations: 94.23 kB / 0.6765 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1657, allocations: 362.8 kB / 0.6768 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003704/0.1661, allocations: 169 kB / 0.677 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003978/0.1665, allocations: 249.8 kB / 0.6772 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007573/0.1673, allocations: 452 kB / 0.6777 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1673, allocations: 0 / 0.6777 GB, free: 10.66 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009576/0.1682, allocations: 0.5666 MB / 0.6782 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.918e-05/0.1683, allocations: 39.2 kB / 0.6782 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1683, allocations: 3.938 kB / 0.6782 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.1683, allocations: 7.938 kB / 0.6783 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004618/0.1688, allocations: 120.1 kB / 0.6784 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.1688, allocations: 4 kB / 0.6784 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002935/0.1691, allocations: 59.64 kB / 0.6784 GB, free: 9.855 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.461e-05/0.1692, allocations: 16 kB / 0.6784 GB, free: 9.84 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002353/0.1694, allocations: 207 kB / 0.6786 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.1695, allocations: 67.56 kB / 0.6787 GB, free: 9.562 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.1696, allocations: 65.58 kB / 0.6788 GB, free: 9.496 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1696, allocations: 4 kB / 0.6788 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1696, allocations: 0 / 0.6788 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.1696, allocations: 7.984 kB / 0.6788 GB, free: 9.484 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.1712, allocations: 1.182 MB / 0.6799 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1712, allocations: 0 / 0.6799 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004394/0.1717, allocations: 95.89 kB / 0.68 GB, free: 8.156 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.1717, allocations: 0 / 0.68 GB, free: 8.156 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/0.1717, allocations: 15.98 kB / 0.68 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.779e-06/0.1718, allocations: 4 kB / 0.68 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1718, allocations: 0 / 0.68 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001237/0.173, allocations: 0.7616 MB / 0.6808 GB, free: 7.359 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.1732, allocations: 176.6 kB / 0.681 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.167e-05/0.1732, allocations: 12 kB / 0.681 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.1735, allocations: 23.91 kB / 0.681 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.352e-05/0.1736, allocations: 36.39 kB / 0.681 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/0.1736, allocations: 16 kB / 0.681 GB, free: 7.082 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003087/0.174, allocations: 310.9 kB / 0.6813 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.174, allocations: 4 kB / 0.6813 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004014/0.1744, allocations: 135.7 kB / 0.6815 GB, free: 6.645 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.001492/0.1759, allocations: 1.322 MB / 0.6828 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008606/0.1767, allocations: 481 kB / 0.6832 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1768, allocations: 0.5 kB / 0.6832 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.1772, allocations: 218.4 kB / 0.6834 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007079/0.1779, allocations: 156.4 kB / 0.6836 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006479/0.1844, allocations: 4.814 MB / 0.6883 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.1848, allocations: 0.8899 MB / 0.6892 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002502/0.1851, allocations: 64.52 kB / 0.6892 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002744/0.1853, allocations: 219.4 kB / 0.6894 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of SimCode: time 6.11e-07/0.1853, allocations: 0 / 0.6894 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02985/0.2152, allocations: 11.28 MB / 0.7004 GB, free: 3.219 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.005/8.22, allocations: 10.92 kB / 0.7005 GB, free: 3.211 MB / 0.5294 GB (rm -f IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)