Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="IBPSA_latest_IBPSA_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.001886/0.001886, allocations: 106.2 kB / 16.4 MB, free: 6.5 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.002101/0.002101, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8012/0.8012, allocations: 126.7 MB / 417.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 67.64 kB / 0.5735 GB, free: 27.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1253, allocations: 78.87 MB / 0.6505 GB, free: 3.629 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.005499/0.1309, allocations: 4.081 MB / 0.6545 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1334, allocations: 1.332 MB / 0.6558 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004992/0.1339, allocations: 19.94 kB / 0.6558 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003838/0.1343, allocations: 130.7 kB / 0.6559 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004535/0.1348, allocations: 174.4 kB / 0.6561 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009291/0.1357, allocations: 421.5 kB / 0.6565 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001106/0.1368, allocations: 0.963 MB / 0.6575 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006902/0.1375, allocations: 466.3 kB / 0.6579 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003952/0.1379, allocations: 322.8 kB / 0.6582 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004207/0.1384, allocations: 338.3 kB / 0.6585 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.1385, allocations: 88 kB / 0.6586 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001406/0.1387, allocations: 92 kB / 0.6587 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.1388, allocations: 175.5 kB / 0.6589 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004042/0.1392, allocations: 401.9 kB / 0.6593 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.1404, allocations: 1.062 MB / 0.6603 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1404, allocations: 0 / 0.6603 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1404, allocations: 0 / 0.6603 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.707e-05/0.1404, allocations: 3.938 kB / 0.6603 GB, free: 9.551 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.00197/0.1424, allocations: 1.104 MB / 0.6614 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1424, allocations: 8.031 kB / 0.6614 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001244/0.1426, allocations: 106.7 kB / 0.6615 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.1427, allocations: 84.42 kB / 0.6616 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009057/0.1436, allocations: 0.5693 MB / 0.6621 GB, free: 7.574 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.057e-05/0.1437, allocations: 49.62 kB / 0.6622 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.087e-05/0.1438, allocations: 56.38 kB / 0.6622 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1449, allocations: 0.6038 MB / 0.6628 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1449, allocations: 0 / 0.6628 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.638e-05/0.145, allocations: 35.92 kB / 0.6628 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.145, allocations: 12 kB / 0.6629 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.1461, allocations: 457 kB / 0.6633 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002943/0.149, allocations: 2.001 MB / 0.6652 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009863/0.15, allocations: 451.1 kB / 0.6657 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004761/0.1505, allocations: 238.1 kB / 0.6659 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.1505, allocations: 4.438 kB / 0.6659 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000556/0.1511, allocations: 273.2 kB / 0.6662 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.054e-06/0.1511, allocations: 0 / 0.6662 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001362/0.1525, allocations: 0.5808 MB / 0.6667 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.1525, allocations: 59.84 kB / 0.6668 GB, free: 2.652 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005151/0.1531, allocations: 450 kB / 0.6672 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.1531, allocations: 33.7 kB / 0.6673 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002524/0.1534, allocations: 325.6 kB / 0.6676 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000151/0.1535, allocations: 178.5 kB / 0.6677 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001526/0.1537, allocations: 94.25 kB / 0.6678 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000173/0.1539, allocations: 362.8 kB / 0.6682 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004177/0.1543, allocations: 173 kB / 0.6683 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.1548, allocations: 245.8 kB / 0.6686 GB, free: 0.7695 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000886/0.1557, allocations: 456 kB / 0.669 GB, free: 296 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.1557, allocations: 4 kB / 0.669 GB, free: 292 kB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001113/0.1568, allocations: 0.5667 MB / 0.6696 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.416e-05/0.1568, allocations: 29.7 kB / 0.6696 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.525e-06/0.1569, allocations: 4 kB / 0.6696 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.1569, allocations: 4 kB / 0.6696 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.1574, allocations: 111.8 kB / 0.6697 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/0.1574, allocations: 15.97 kB / 0.6697 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.1577, allocations: 51.66 kB / 0.6698 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/0.1578, allocations: 23.94 kB / 0.6698 GB, free: 15.46 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.0002561/0.158, allocations: 214.3 kB / 0.67 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.856e-05/0.1581, allocations: 67.5 kB / 0.6701 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001317/0.1583, allocations: 61.59 kB / 0.6701 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1583, allocations: 4 kB / 0.6701 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1583, allocations: 0 / 0.6701 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.1583, allocations: 3.984 kB / 0.6701 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/0.1601, allocations: 1.186 MB / 0.6713 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.1602, allocations: 0 / 0.6713 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004948/0.1607, allocations: 95.88 kB / 0.6714 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.1607, allocations: 4 kB / 0.6714 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.1607, allocations: 11.98 kB / 0.6714 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1607, allocations: 0 / 0.6714 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1607, allocations: 0 / 0.6714 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.1622, allocations: 0.7655 MB / 0.6721 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001987/0.1624, allocations: 176.6 kB / 0.6723 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.398e-05/0.1625, allocations: 11.98 kB / 0.6723 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.1628, allocations: 27.92 kB / 0.6723 GB, free: 12.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.419e-05/0.1629, allocations: 36.39 kB / 0.6724 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.1629, allocations: 15.98 kB / 0.6724 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003716/0.1633, allocations: 306.9 kB / 0.6727 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1633, allocations: 0 / 0.6727 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004481/0.1638, allocations: 139.7 kB / 0.6728 GB, free: 12.27 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.001762/0.1655, allocations: 1.325 MB / 0.6741 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0009706/0.1665, allocations: 485.3 kB / 0.6746 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1665, allocations: 0 / 0.6746 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0004544/0.167, allocations: 218.3 kB / 0.6748 GB, free: 10.21 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007436/0.1678, allocations: 153.5 kB / 0.6749 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007414/0.1752, allocations: 4.798 MB / 0.6796 GB, free: 5.121 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005295/0.1757, allocations: 0.8974 MB / 0.6805 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002489/0.176, allocations: 64.59 kB / 0.6806 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.1763, allocations: 219.4 kB / 0.6808 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1763, allocations: 0 / 0.6808 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.2119, allocations: 11.31 MB / 0.6918 GB, free: 8.781 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.246/9.458, allocations: 14.53 kB / 0.6918 GB, free: 8.77 MB / 0.5294 GB (rm -f IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Controls_Continuous_Examples_LimPIDWithReset.fmu > IBPSA_latest_IBPSA.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)