Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.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.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",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.007793/0.007793, allocations: 99.98 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.001995/0.001995, allocations: 202.1 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7811/0.7811, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 62.91 kB / 0.5808 GB, free: 1.148 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1593, allocations: 80.22 MB / 0.6592 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.002432/0.1618, allocations: 1.391 MB / 0.6605 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009335/0.1628, allocations: 0.506 MB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.702e-05/0.1628, allocations: 0 / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.85e-05/0.1629, allocations: 3.938 kB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.199e-05/0.163, allocations: 7.938 kB / 0.661 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007189/0.1637, allocations: 246.8 kB / 0.6613 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000219/0.1639, allocations: 139.8 kB / 0.6614 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.981e-05/0.164, allocations: 7.984 kB / 0.6614 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.526e-05/0.164, allocations: 51.91 kB / 0.6615 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.657e-05/0.1641, allocations: 51.77 kB / 0.6615 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.099e-05/0.1642, allocations: 8 kB / 0.6615 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000277/0.1645, allocations: 171.8 kB / 0.6617 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.23e-05/0.1645, allocations: 39.89 kB / 0.6617 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.881e-05/0.1646, allocations: 47.8 kB / 0.6618 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.165, allocations: 235.5 kB / 0.662 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.165, allocations: 0 / 0.662 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.884e-06/0.165, allocations: 0 / 0.662 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.202e-06/0.165, allocations: 4 kB / 0.662 GB, free: 11.13 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006605/0.1657, allocations: 450.7 kB / 0.6624 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.1657, allocations: 8.031 kB / 0.6624 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.1658, allocations: 42.73 kB / 0.6625 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.1658, allocations: 16.84 kB / 0.6625 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.1661, allocations: 204.1 kB / 0.6627 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.1661, allocations: 8.375 kB / 0.6627 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.745e-05/0.1662, allocations: 8.375 kB / 0.6627 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.1663, allocations: 95.88 kB / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.1664, allocations: 3.938 kB / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.1664, allocations: 0 / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1664, allocations: 4 kB / 0.6628 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.11e-05/0.1665, allocations: 35.92 kB / 0.6628 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002673/0.1667, allocations: 230.5 kB / 0.663 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001348/0.1669, allocations: 77.25 kB / 0.6631 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.257e-05/0.167, allocations: 61.73 kB / 0.6632 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.167, allocations: 7.984 kB / 0.6632 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.1672, allocations: 109 kB / 0.6633 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.113e-06/0.1673, allocations: 0 / 0.6633 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0003764/0.1676, allocations: 197.4 kB / 0.6635 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.1677, allocations: 81.11 kB / 0.6636 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.1679, allocations: 148 kB / 0.6637 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.1679, allocations: 37.7 kB / 0.6637 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.277e-05/0.168, allocations: 100.5 kB / 0.6638 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.609e-05/0.168, allocations: 47.67 kB / 0.6639 GB, free: 8.945 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.209e-05/0.1681, allocations: 45.7 kB / 0.6639 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.1683, allocations: 326.8 kB / 0.6642 GB, free: 8.566 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.897e-05/0.1684, allocations: 39.98 kB / 0.6643 GB, free: 8.527 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002391/0.1686, allocations: 208 kB / 0.6645 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.1688, allocations: 93.09 kB / 0.6646 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1688, allocations: 0 / 0.6646 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002407/0.169, allocations: 169.8 kB / 0.6647 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.169, allocations: 5.562 kB / 0.6647 GB, free: 8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/0.1691, allocations: 4 kB / 0.6647 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1691, allocations: 0 / 0.6647 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.7e-05/0.1692, allocations: 11.94 kB / 0.6647 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1692, allocations: 0 / 0.6647 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002802/0.1695, allocations: 71.89 kB / 0.6648 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1695, allocations: 4.156 kB / 0.6648 GB, free: 7.91 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (occSchWee.tNext,$PRE.occSchWee.tNext,occSchWee.tNonOcc,$PRE.occSchWee.tNonOcc,occSchWee.tOcc,$PRE.occSchWee.tOcc,occSchWee.occupied,$PRE.occSchWee.occupied,$whenCondition2,occSchDay.tNext,$PRE.occSchDay.tNext,occSchDay.tNonOcc,$PRE.occSchDay.tNonOcc,occSchDay.tOcc,$PRE.occSchDay.tOcc,occSchDay.occupied,$PRE.occSchDay.occupied,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001393/0.1696, allocations: 137.8 kB / 0.6649 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.1697, allocations: 19.83 kB / 0.665 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.1697, allocations: 12.72 kB / 0.665 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1697, allocations: 3.938 kB / 0.665 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.1697, allocations: 0 / 0.665 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1697, allocations: 4 kB / 0.665 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.1699, allocations: 197.5 kB / 0.6652 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1699, allocations: 0 / 0.6652 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.652e-05/0.17, allocations: 11.94 kB / 0.6652 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.17, allocations: 0 / 0.6652 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.17, allocations: 8 kB / 0.6652 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.17, allocations: 3.938 kB / 0.6652 GB, free: 7.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.17, allocations: 7.984 kB / 0.6652 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.1703, allocations: 180.3 kB / 0.6654 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.201e-05/0.1704, allocations: 93.05 kB / 0.6655 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.1704, allocations: 4 kB / 0.6655 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.664e-05/0.1704, allocations: 0 / 0.6655 GB, free: 7.137 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.184e-05/0.1705, allocations: 11.98 kB / 0.6655 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1705, allocations: 8 kB / 0.6655 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.878e-05/0.1706, allocations: 117.8 kB / 0.6656 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1706, allocations: 3.938 kB / 0.6656 GB, free: 7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003028/0.1709, allocations: 71.81 kB / 0.6657 GB, free: 6.93 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,occSchWee.occupied,occSchWee.tOcc,occSchWee.tNonOcc,occSchWee.tNext,$whenCondition1,occSchDay.occupied,occSchDay.tOcc,occSchDay.tNonOcc,occSchDay.tNext) * Number of discrete states: 2 (occSchDay.tNext,occSchWee.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0007534/0.1717, allocations: 0.7828 MB / 0.6664 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002834/0.172, allocations: 167.3 kB / 0.6666 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.172, allocations: 0 / 0.6666 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.42e-05/0.1721, allocations: 43.92 kB / 0.6666 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.1722, allocations: 7.984 kB / 0.6666 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.1742, allocations: 1.725 MB / 0.6683 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.1745, allocations: 0.7041 MB / 0.669 GB, free: 3.344 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.469e-05/0.1746, allocations: 12.92 kB / 0.669 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/0.1746, allocations: 27.44 kB / 0.6691 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1747, allocations: 0 / 0.6691 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02851/0.2032, allocations: 3.954 MB / 0.6729 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.133/8.336, allocations: 11.92 kB / 0.6729 GB, free: 15.48 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 518.4 IDEAS_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)