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.001615/0.001615, allocations: 109.8 kB / 16.41 MB, free: 6.492 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.001883/0.001883, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7424/0.7424, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 66.89 kB / 0.5679 GB, free: 28.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1211, allocations: 77.93 MB / 0.644 GB, free: 9.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Controls.Continuous.Examples.LimPIDWithReset): time 0.004691/0.1258, allocations: 4.097 MB / 0.648 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.1278, allocations: 1.317 MB / 0.6493 GB, free: 4.152 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.1281, allocations: 27.88 kB / 0.6493 GB, free: 4.125 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002967/0.1284, allocations: 130.7 kB / 0.6495 GB, free: 3.996 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003298/0.1288, allocations: 186.4 kB / 0.6496 GB, free: 3.812 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007618/0.1295, allocations: 420 kB / 0.65 GB, free: 3.406 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008075/0.1304, allocations: 0.9631 MB / 0.651 GB, free: 2.438 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005656/0.1309, allocations: 458.4 kB / 0.6514 GB, free: 1.965 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003025/0.1313, allocations: 330.7 kB / 0.6517 GB, free: 1.641 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003056/0.1316, allocations: 338.3 kB / 0.6521 GB, free: 1.309 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.826e-05/0.1317, allocations: 92 kB / 0.6521 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000101/0.1318, allocations: 92 kB / 0.6522 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.1319, allocations: 183.4 kB / 0.6524 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002948/0.1322, allocations: 390 kB / 0.6528 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008922/0.1331, allocations: 1.066 MB / 0.6538 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1331, allocations: 0 / 0.6538 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.1331, allocations: 0 / 0.6538 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.391e-05/0.1332, allocations: 0 / 0.6538 GB, free: 15.49 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.001719/0.1349, allocations: 1.1 MB / 0.6549 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1349, allocations: 8.625 kB / 0.6549 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001062/0.135, allocations: 106.7 kB / 0.655 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.1352, allocations: 92.34 kB / 0.6551 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008397/0.136, allocations: 0.5654 MB / 0.6556 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.1361, allocations: 45.69 kB / 0.6557 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.432e-05/0.1362, allocations: 60.36 kB / 0.6557 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.1372, allocations: 0.6077 MB / 0.6563 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.1372, allocations: 0 / 0.6563 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.1373, allocations: 28 kB / 0.6564 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.1373, allocations: 16 kB / 0.6564 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009816/0.1383, allocations: 457 kB / 0.6568 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00261/0.1409, allocations: 2.001 MB / 0.6588 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009014/0.1419, allocations: 445 kB / 0.6592 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004541/0.1423, allocations: 246.1 kB / 0.6594 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.1424, allocations: 4.438 kB / 0.6594 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.1429, allocations: 257.3 kB / 0.6597 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/0.1429, allocations: 0 / 0.6597 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=49): time 0.001263/0.1442, allocations: 0.5924 MB / 0.6603 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.895e-05/0.1442, allocations: 55.84 kB / 0.6603 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004533/0.1447, allocations: 446 kB / 0.6607 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.681e-05/0.1447, allocations: 33.7 kB / 0.6608 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/0.1449, allocations: 337.5 kB / 0.6611 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1451, allocations: 174.5 kB / 0.6613 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.1452, allocations: 94.25 kB / 0.6613 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1453, allocations: 362.8 kB / 0.6617 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003956/0.1457, allocations: 165 kB / 0.6618 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004366/0.1462, allocations: 253.8 kB / 0.6621 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/0.147, allocations: 448 kB / 0.6625 GB, free: 6.246 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.147, allocations: 4 kB / 0.6625 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001018/0.148, allocations: 0.5743 MB / 0.6631 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.1481, allocations: 29.7 kB / 0.6631 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.1481, allocations: 4 kB / 0.6631 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1481, allocations: 4 kB / 0.6631 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005008/0.1486, allocations: 112.1 kB / 0.6632 GB, free: 5.504 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.099e-05/0.1486, allocations: 19.88 kB / 0.6632 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000324/0.149, allocations: 59.59 kB / 0.6633 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.149, allocations: 20 kB / 0.6633 GB, free: 5.406 MB / 0.4981 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.000233/0.1493, allocations: 203.7 kB / 0.6635 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.192e-05/0.1493, allocations: 67.52 kB / 0.6636 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.1495, allocations: 65.59 kB / 0.6636 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1495, allocations: 8 kB / 0.6636 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1495, allocations: 0 / 0.6636 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1495, allocations: 3.984 kB / 0.6637 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.1512, allocations: 1.174 MB / 0.6648 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.1512, allocations: 0 / 0.6648 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004908/0.1517, allocations: 95.88 kB / 0.6649 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.728e-06/0.1517, allocations: 11.94 kB / 0.6649 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.153e-05/0.1517, allocations: 12 kB / 0.6649 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.1517, allocations: 0 / 0.6649 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1517, allocations: 0 / 0.6649 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001311/0.1531, allocations: 0.7655 MB / 0.6657 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.1532, allocations: 172.6 kB / 0.6658 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.21e-05/0.1533, allocations: 8 kB / 0.6658 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.1536, allocations: 27.97 kB / 0.6659 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.1537, allocations: 32.39 kB / 0.6659 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.884e-05/0.1538, allocations: 15.98 kB / 0.6659 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003377/0.1541, allocations: 306.9 kB / 0.6662 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1541, allocations: 0 / 0.6662 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004427/0.1546, allocations: 147.7 kB / 0.6663 GB, free: 2.215 MB / 0.4981 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.001608/0.1562, allocations: 1.325 MB / 0.6676 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008801/0.1571, allocations: 481 kB / 0.6681 GB, free: 388 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1571, allocations: 0 / 0.6681 GB, free: 388 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004133/0.1575, allocations: 218.9 kB / 0.6683 GB, free: 168 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000747/0.1583, allocations: 159.5 kB / 0.6685 GB, free: 16 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006696/0.165, allocations: 4.797 MB / 0.6731 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/0.1654, allocations: 0.8938 MB / 0.674 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002458/0.1656, allocations: 64.58 kB / 0.6741 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002981/0.1659, allocations: 223.4 kB / 0.6743 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of SimCode: time 3.41e-07/0.1659, allocations: 3.938 kB / 0.6743 GB, free: 9.867 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.1959, allocations: 11.31 MB / 0.6853 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.278/8.474, allocations: 15.81 kB / 0.6853 GB, free: 14.72 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)