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.005676/0.005676, allocations: 99.52 kB / 15.73 MB, free: 6.043 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.001312/0.001312, allocations: 200.8 kB / 16.68 MB, free: 5.965 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7802/0.7802, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 62.53 kB / 0.5808 GB, free: 1.129 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1485, 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.005342/0.1539, allocations: 4.093 MB / 0.6632 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002405/0.1564, allocations: 1.325 MB / 0.6645 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004203/0.1568, allocations: 31.88 kB / 0.6645 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003451/0.1572, allocations: 126.7 kB / 0.6646 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003742/0.1576, allocations: 178.4 kB / 0.6648 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000871/0.1585, allocations: 421.5 kB / 0.6652 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009933/0.1595, allocations: 0.9671 MB / 0.6661 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000626/0.1601, allocations: 454.4 kB / 0.6666 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.1605, allocations: 326.8 kB / 0.6669 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003678/0.1609, allocations: 338.3 kB / 0.6672 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.161, allocations: 88 kB / 0.6673 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.1611, allocations: 96 kB / 0.6674 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.1613, allocations: 179.4 kB / 0.6675 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003392/0.1616, allocations: 394 kB / 0.6679 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.1626, allocations: 1.066 MB / 0.669 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1627, allocations: 0 / 0.669 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.764e-06/0.1627, allocations: 0 / 0.669 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.1627, allocations: 0 / 0.669 GB, free: 3.926 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.001824/0.1645, allocations: 1.1 MB / 0.67 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1646, allocations: 8.031 kB / 0.67 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.1647, allocations: 110.6 kB / 0.6701 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.1648, allocations: 88.42 kB / 0.6702 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008824/0.1657, allocations: 0.5732 MB / 0.6708 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.531e-05/0.1658, allocations: 45.69 kB / 0.6708 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.428e-05/0.1659, allocations: 56.38 kB / 0.6709 GB, free: 1.848 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00105/0.1669, allocations: 0.5999 MB / 0.6715 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.167, allocations: 7.938 kB / 0.6715 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.203e-05/0.167, allocations: 28 kB / 0.6715 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.167, allocations: 12 kB / 0.6715 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00097/0.168, allocations: 453 kB / 0.6719 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002744/0.1708, allocations: 1.997 MB / 0.6739 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009393/0.1717, allocations: 448.7 kB / 0.6743 GB, free: 14.22 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004441/0.1722, allocations: 238.1 kB / 0.6746 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.1722, allocations: 4.438 kB / 0.6746 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005406/0.1728, allocations: 273.2 kB / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 2.665e-06/0.1728, allocations: 4 kB / 0.6748 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001284/0.1741, allocations: 0.5808 MB / 0.6754 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.1741, allocations: 59.84 kB / 0.6754 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000496/0.1746, allocations: 446 kB / 0.6759 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.812e-05/0.1747, allocations: 33.7 kB / 0.6759 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002456/0.1749, allocations: 329.6 kB / 0.6762 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.1751, allocations: 178.5 kB / 0.6764 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000142/0.1752, allocations: 90.25 kB / 0.6765 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1754, allocations: 366.7 kB / 0.6768 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004017/0.1758, allocations: 173 kB / 0.677 GB, free: 11.43 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.1763, allocations: 249.8 kB / 0.6772 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008328/0.1771, allocations: 452 kB / 0.6777 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1771, allocations: 0 / 0.6777 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001051/0.1782, allocations: 0.5665 MB / 0.6782 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/0.1782, allocations: 29.7 kB / 0.6782 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1782, allocations: 4 kB / 0.6782 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.1783, allocations: 4 kB / 0.6782 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004738/0.1787, allocations: 124 kB / 0.6784 GB, free: 9.941 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.1788, allocations: 7.984 kB / 0.6784 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003138/0.1791, allocations: 51.66 kB / 0.6784 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.1791, allocations: 20 kB / 0.6784 GB, free: 9.863 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.0002629/0.1794, allocations: 211 kB / 0.6786 GB, free: 9.648 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.57e-05/0.1795, allocations: 63.56 kB / 0.6787 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001339/0.1796, allocations: 65.59 kB / 0.6788 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.1796, allocations: 4 kB / 0.6788 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1796, allocations: 0 / 0.6788 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.1797, allocations: 3.984 kB / 0.6788 GB, free: 9.512 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001736/0.1814, allocations: 1.182 MB / 0.6799 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.1814, allocations: 4 kB / 0.6799 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004491/0.1819, allocations: 95.88 kB / 0.68 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1819, allocations: 4 kB / 0.68 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/0.1819, allocations: 8 kB / 0.68 GB, free: 8.168 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.1819, allocations: 7.984 kB / 0.68 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1819, allocations: 0 / 0.68 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.1833, allocations: 0.7655 MB / 0.6808 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002129/0.1835, allocations: 180.6 kB / 0.681 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.201e-05/0.1836, allocations: 11.98 kB / 0.681 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.1839, allocations: 19.98 kB / 0.681 GB, free: 7.152 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.641e-05/0.184, allocations: 36.39 kB / 0.681 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.886e-05/0.184, allocations: 15.98 kB / 0.681 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003592/0.1844, allocations: 306.9 kB / 0.6813 GB, free: 6.805 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.61e-07/0.1844, allocations: 4 kB / 0.6813 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004542/0.1848, allocations: 139.7 kB / 0.6815 GB, free: 6.664 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.001736/0.1866, allocations: 1.322 MB / 0.6828 GB, free: 5.309 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009842/0.1876, allocations: 481 kB / 0.6832 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.1876, allocations: 0.5 kB / 0.6832 GB, free: 4.832 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004376/0.188, allocations: 222.3 kB / 0.6834 GB, free: 4.613 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007536/0.1888, allocations: 157.2 kB / 0.6836 GB, free: 4.473 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007414/0.1962, allocations: 4.81 MB / 0.6883 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.1968, allocations: 0.8899 MB / 0.6892 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002859/0.1971, allocations: 64.58 kB / 0.6892 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.1974, allocations: 223.3 kB / 0.6894 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of SimCode: time 6.42e-07/0.1974, allocations: 0 / 0.6894 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03706/0.2344, allocations: 11.29 MB / 0.7005 GB, free: 3.23 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.288/8.522, allocations: 14.5 kB / 0.7005 GB, free: 3.223 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)