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.007367/0.007368, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001494/0.001494, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7255/0.7255, allocations: 132.2 MB / 422.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 62.67 kB / 0.5808 GB, free: 1.121 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1397, allocations: 80.2 MB / 0.6592 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Continuous.Examples.LimPIDWithReset): time 0.005143/0.1448, allocations: 4.098 MB / 0.6632 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003036/0.1479, allocations: 1.332 MB / 0.6645 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008832/0.1488, allocations: 19.94 kB / 0.6645 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0004616/0.1493, allocations: 126.7 kB / 0.6646 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0005886/0.15, allocations: 178.4 kB / 0.6648 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.1511, allocations: 424.9 kB / 0.6652 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00126/0.1523, allocations: 0.9593 MB / 0.6661 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006368/0.153, allocations: 462.1 kB / 0.6666 GB, free: 6.359 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003848/0.1534, allocations: 314.8 kB / 0.6669 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003038/0.1537, allocations: 342.3 kB / 0.6672 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.83e-05/0.1538, allocations: 92 kB / 0.6673 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.112e-05/0.1539, allocations: 88 kB / 0.6673 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.154, allocations: 183.4 kB / 0.6675 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000284/0.1543, allocations: 394 kB / 0.6679 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0008947/0.1552, allocations: 1.063 MB / 0.6689 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1552, allocations: 0 / 0.6689 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.343e-06/0.1552, allocations: 4 kB / 0.6689 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.483e-05/0.1553, allocations: 0 / 0.6689 GB, free: 3.906 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.0017/0.157, allocations: 1.069 MB / 0.67 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.157, allocations: 23.91 kB / 0.67 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001059/0.1571, allocations: 102.7 kB / 0.6701 GB, free: 2.645 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.1573, allocations: 87.91 kB / 0.6702 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008548/0.1581, allocations: 0.5534 MB / 0.6707 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.1582, allocations: 49.67 kB / 0.6708 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.769e-05/0.1583, allocations: 64.31 kB / 0.6708 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009681/0.1592, allocations: 0.5999 MB / 0.6714 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1593, allocations: 4 kB / 0.6714 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.1593, allocations: 24 kB / 0.6715 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.343e-05/0.1593, allocations: 16 kB / 0.6715 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008885/0.1602, allocations: 464.9 kB / 0.6719 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002398/0.1626, allocations: 1.989 MB / 0.6739 GB, free: 14.68 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008472/0.1635, allocations: 448.7 kB / 0.6743 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004026/0.1639, allocations: 238.1 kB / 0.6745 GB, free: 14 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.164, allocations: 4.438 kB / 0.6745 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004809/0.1644, allocations: 265.2 kB / 0.6748 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=49): time 1.973e-06/0.1645, allocations: 0 / 0.6748 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of matching and sorting (n=49): time 0.001158/0.1656, allocations: 0.5805 MB / 0.6753 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.1657, allocations: 59.84 kB / 0.6754 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004093/0.1661, allocations: 446 kB / 0.6758 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.1661, allocations: 37.7 kB / 0.6758 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1663, allocations: 325 kB / 0.6762 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/0.1664, allocations: 173.5 kB / 0.6763 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.1666, allocations: 94.19 kB / 0.6764 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1667, allocations: 358.8 kB / 0.6768 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.1671, allocations: 169 kB / 0.6769 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.1675, allocations: 257.8 kB / 0.6772 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007354/0.1682, allocations: 452 kB / 0.6776 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1682, allocations: 0 / 0.6776 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009349/0.1692, allocations: 0.5584 MB / 0.6781 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.946e-05/0.1692, allocations: 37.7 kB / 0.6782 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1692, allocations: 0 / 0.6782 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.1693, allocations: 7.938 kB / 0.6782 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.1697, allocations: 116.1 kB / 0.6783 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1697, allocations: 11.98 kB / 0.6783 GB, free: 9.965 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002954/0.17, allocations: 55.52 kB / 0.6784 GB, free: 9.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.1701, allocations: 16 kB / 0.6784 GB, free: 9.895 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.000239/0.1703, allocations: 210.5 kB / 0.6786 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.824e-05/0.1704, allocations: 63.19 kB / 0.6786 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001288/0.1705, allocations: 61.59 kB / 0.6787 GB, free: 9.555 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1706, allocations: 8 kB / 0.6787 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.1706, allocations: 4 kB / 0.6787 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.1706, allocations: 3.984 kB / 0.6787 GB, free: 9.539 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.1722, allocations: 1.17 MB / 0.6799 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1722, allocations: 3.938 kB / 0.6799 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004485/0.1727, allocations: 95.88 kB / 0.6799 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.1727, allocations: 8 kB / 0.68 GB, free: 8.211 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/0.1727, allocations: 12 kB / 0.68 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1727, allocations: 4 kB / 0.68 GB, free: 8.195 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1728, allocations: 0 / 0.68 GB, free: 8.195 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.174, allocations: 0.7574 MB / 0.6807 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001765/0.1742, allocations: 172.3 kB / 0.6809 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.671e-05/0.1743, allocations: 15.98 kB / 0.6809 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.1746, allocations: 19.98 kB / 0.6809 GB, free: 7.199 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.1747, allocations: 32.39 kB / 0.6809 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-05/0.1747, allocations: 19.98 kB / 0.681 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003329/0.1751, allocations: 310.8 kB / 0.6813 GB, free: 6.848 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.1751, allocations: 0 / 0.6813 GB, free: 6.848 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004365/0.1755, allocations: 147.4 kB / 0.6814 GB, free: 6.703 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.001497/0.177, allocations: 1.31 MB / 0.6827 GB, free: 5.359 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0008613/0.1779, allocations: 481 kB / 0.6831 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1779, allocations: 0 / 0.6831 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003892/0.1783, allocations: 230.8 kB / 0.6834 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007255/0.179, allocations: 158.5 kB / 0.6835 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006456/0.1855, allocations: 4.784 MB / 0.6882 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003722/0.1859, allocations: 0.8899 MB / 0.689 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002568/0.1862, allocations: 64.53 kB / 0.6891 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002677/0.1864, allocations: 219.4 kB / 0.6893 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.1864, allocations: 0 / 0.6893 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03055/0.217, allocations: 11.28 MB / 0.7003 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/7.96, allocations: 12.81 kB / 0.7003 GB, free: 3.309 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Controls_Continuous_Examples_LimPIDWithReset.fmu > IDEAS_IDEAS.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)