Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.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.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer,fileNamePrefix="IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer",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.001659/0.001659, allocations: 111.3 kB / 16.41 MB, free: 6.496 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.001954/0.001954, 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7693/0.7693, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.56 kB / 0.5679 GB, free: 28.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1342, allocations: 77.93 MB / 0.644 GB, free: 9.562 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer): time 0.004122/0.1384, allocations: 3.115 MB / 0.6471 GB, free: 6.434 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.1401, allocations: 0.9661 MB / 0.648 GB, free: 5.461 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.1403, allocations: 11.94 kB / 0.648 GB, free: 5.449 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002424/0.1406, allocations: 75.19 kB / 0.6481 GB, free: 5.375 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.1409, allocations: 107.1 kB / 0.6482 GB, free: 5.27 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005628/0.1414, allocations: 231.7 kB / 0.6484 GB, free: 5.043 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004752/0.1419, allocations: 0.5543 MB / 0.649 GB, free: 4.484 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003644/0.1423, allocations: 247.8 kB / 0.6492 GB, free: 4.238 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002254/0.1425, allocations: 215.1 kB / 0.6494 GB, free: 4.027 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002116/0.1427, allocations: 206.9 kB / 0.6496 GB, free: 3.824 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.441e-05/0.1428, allocations: 55.94 kB / 0.6497 GB, free: 3.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.66e-05/0.1429, allocations: 52 kB / 0.6497 GB, free: 3.719 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.72e-05/0.143, allocations: 111.6 kB / 0.6498 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.1431, allocations: 234.7 kB / 0.65 GB, free: 3.379 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.1437, allocations: 0.5913 MB / 0.6506 GB, free: 2.785 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1437, allocations: 0 / 0.6506 GB, free: 2.785 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1437, allocations: 3.938 kB / 0.6506 GB, free: 2.781 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.1438, allocations: 0 / 0.6506 GB, free: 2.781 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001098/0.1449, allocations: 0.7812 MB / 0.6514 GB, free: 1.949 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.1449, allocations: 12.62 kB / 0.6514 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.572e-05/0.145, allocations: 74.72 kB / 0.6515 GB, free: 1.855 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.845e-05/0.1451, allocations: 64.55 kB / 0.6515 GB, free: 1.793 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006038/0.1457, allocations: 416.9 kB / 0.6519 GB, free: 1.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/0.1457, allocations: 33.36 kB / 0.652 GB, free: 1.316 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.767e-05/0.1458, allocations: 40.38 kB / 0.652 GB, free: 1.277 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006292/0.1464, allocations: 401.7 kB / 0.6524 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.1465, allocations: 0 / 0.6524 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.1465, allocations: 15.98 kB / 0.6524 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1465, allocations: 8 kB / 0.6524 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005344/0.1471, allocations: 263.8 kB / 0.6527 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.1487, allocations: 1.309 MB / 0.6539 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006614/0.1494, allocations: 311.1 kB / 0.6542 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.1496, allocations: 148.7 kB / 0.6544 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.1497, allocations: 4.547 kB / 0.6544 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003227/0.15, allocations: 177.4 kB / 0.6545 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=33): time 2.334e-06/0.15, allocations: 4 kB / 0.6545 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.0008027/0.1508, allocations: 378.8 kB / 0.6549 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.1509, allocations: 89.09 kB / 0.655 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000337/0.1512, allocations: 353.6 kB / 0.6553 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.1513, allocations: 37.7 kB / 0.6554 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.1514, allocations: 228.8 kB / 0.6556 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.217e-05/0.1515, allocations: 119 kB / 0.6557 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/0.1517, allocations: 66.08 kB / 0.6558 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.1518, allocations: 354.8 kB / 0.6561 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.152, allocations: 96.7 kB / 0.6562 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.1523, allocations: 176.3 kB / 0.6564 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004657/0.1528, allocations: 259.8 kB / 0.6566 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1528, allocations: 3.938 kB / 0.6566 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006161/0.1534, allocations: 354.6 kB / 0.6569 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1535, allocations: 8 kB / 0.657 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1535, allocations: 0 / 0.657 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.1535, allocations: 8.125 kB / 0.657 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.1538, allocations: 67.91 kB / 0.657 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1538, allocations: 4 kB / 0.657 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.154, allocations: 39.77 kB / 0.6571 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.154, allocations: 12 kB / 0.6571 GB, free: 11.83 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 (con.greaterEqualThreshold.y,con.hys.y,$PRE.con.hys.y,con.on,con.offTimer.entryTime,$PRE.con.offTimer.entryTime,con.onTimer.entryTime,$PRE.con.onTimer.entryTime,con.offHys.entryTime,$PRE.con.offHys.entryTime,$whenCondition1,$whenCondition2,$whenCondition3,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * 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.000176/0.1542, allocations: 177.6 kB / 0.6573 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/0.1543, allocations: 39.77 kB / 0.6573 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.067e-05/0.1544, allocations: 52.23 kB / 0.6573 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1544, allocations: 4 kB / 0.6573 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1544, allocations: 0 / 0.6573 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.1544, allocations: 0 / 0.6573 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.1554, allocations: 0.807 MB / 0.6581 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1555, allocations: 0 / 0.6581 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.1557, allocations: 47.91 kB / 0.6582 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.1557, allocations: 7.938 kB / 0.6582 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.995e-05/0.1558, allocations: 8 kB / 0.6582 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1558, allocations: 4 kB / 0.6582 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1558, allocations: 0 / 0.6582 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008/0.1566, allocations: 0.5248 MB / 0.6587 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.1567, allocations: 136.8 kB / 0.6588 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.031e-05/0.1568, allocations: 20.05 kB / 0.6589 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.157, allocations: 15.98 kB / 0.6589 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.1571, allocations: 23.97 kB / 0.6589 GB, free: 9.863 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.1571, allocations: 4 kB / 0.6589 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002283/0.1573, allocations: 247.1 kB / 0.6591 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1573, allocations: 0 / 0.6591 GB, free: 9.621 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003459/0.1577, allocations: 83.84 kB / 0.6592 GB, free: 9.539 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.greaterEqualThreshold.y) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00105/0.1587, allocations: 1.064 MB / 0.6603 GB, free: 8.449 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005225/0.1593, allocations: 256.2 kB / 0.6605 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1593, allocations: 4 kB / 0.6605 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.1595, allocations: 140.3 kB / 0.6606 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005289/0.1601, allocations: 86.56 kB / 0.6607 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004238/0.1643, allocations: 3.468 MB / 0.6641 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.1646, allocations: 0.8113 MB / 0.6649 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001668/0.1648, allocations: 47.27 kB / 0.6649 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.165, allocations: 139.4 kB / 0.6651 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.165, allocations: 0 / 0.6651 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.1893, allocations: 7.418 MB / 0.6723 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.902/8.091, allocations: 11.81 kB / 0.6723 GB, free: 12.09 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IBPSA_latest_IBPSA_Obsolete_Controls_Continuous_Examples_PIDHysteresisTimer.fmu > IBPSA_latest_IBPSA.Obsolete.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)