Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="BuildingSystems_BuildingSystems_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.008097/0.008097, allocations: 96.34 kB / 15.73 MB, free: 6.055 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.002156/0.002156, allocations: 202.7 kB / 16.68 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002586/0.002586, allocations: 282.8 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 169.3 MB / 0.4983 GB, free: 13.84 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002798/0.002798, allocations: 95.84 kB / 0.6809 GB, free: 44 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1581, allocations: 86.98 MB / 0.7659 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002649/0.1608, allocations: 1.406 MB / 0.7672 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000952/0.1618, allocations: 0.4905 MB / 0.7677 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.814e-05/0.1618, allocations: 4 kB / 0.7677 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 6.699e-05/0.1619, allocations: 3.938 kB / 0.7677 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.132e-05/0.162, allocations: 15.91 kB / 0.7677 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007798/0.1628, allocations: 238.2 kB / 0.768 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.163, allocations: 147.7 kB / 0.7681 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.1631, allocations: 4 kB / 0.7681 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.887e-05/0.1632, allocations: 55.89 kB / 0.7682 GB, free: 6.625 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.291e-05/0.1633, allocations: 47.83 kB / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.1633, allocations: 8 kB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002988/0.1636, allocations: 167.8 kB / 0.7684 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 7.705e-05/0.1637, allocations: 43.89 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.62e-05/0.1638, allocations: 55.78 kB / 0.7685 GB, free: 6.309 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003593/0.1642, allocations: 235.5 kB / 0.7687 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.1642, allocations: 0 / 0.7687 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.252e-06/0.1642, allocations: 0 / 0.7687 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.718e-06/0.1642, allocations: 0 / 0.7687 GB, free: 6.078 MB / 0.5606 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.000621/0.1648, allocations: 454.7 kB / 0.7691 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1649, allocations: 8.031 kB / 0.7691 GB, free: 5.574 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.289e-05/0.1649, allocations: 38.75 kB / 0.7692 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.165, allocations: 20.78 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.1652, allocations: 212.2 kB / 0.7694 GB, free: 5.262 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.1652, allocations: 4.375 kB / 0.7694 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.179e-05/0.1653, allocations: 12.38 kB / 0.7694 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.1655, allocations: 79.95 kB / 0.7695 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1655, allocations: 7.938 kB / 0.7695 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/0.1655, allocations: 0 / 0.7695 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1655, allocations: 4 kB / 0.7695 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.384e-05/0.1656, allocations: 39.91 kB / 0.7695 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002673/0.1659, allocations: 222.6 kB / 0.7698 GB, free: 4.836 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.166, allocations: 85.17 kB / 0.7698 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.837e-05/0.1661, allocations: 53.81 kB / 0.7699 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.1661, allocations: 8 kB / 0.7699 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002097/0.1663, allocations: 105 kB / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=14): time 3.216e-06/0.1664, allocations: 3.984 kB / 0.77 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=14): time 0.0003739/0.1667, allocations: 193.4 kB / 0.7702 GB, free: 4.348 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.645e-05/0.1668, allocations: 93.09 kB / 0.7703 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001443/0.167, allocations: 148 kB / 0.7704 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.167, allocations: 37.64 kB / 0.7705 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.288e-05/0.1671, allocations: 96.52 kB / 0.7705 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.423e-05/0.1672, allocations: 43.69 kB / 0.7706 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/0.1673, allocations: 53.58 kB / 0.7706 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000162/0.1674, allocations: 326.8 kB / 0.771 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.452e-05/0.1675, allocations: 43.97 kB / 0.771 GB, free: 3.469 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.1678, allocations: 197.6 kB / 0.7712 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.1679, allocations: 101.6 kB / 0.7713 GB, free: 3.117 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.323e-06/0.1679, allocations: 4 kB / 0.7713 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002614/0.1682, allocations: 161.4 kB / 0.7714 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.1682, allocations: 4 kB / 0.7714 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.931e-05/0.1683, allocations: 4 kB / 0.7714 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.1683, allocations: 0 / 0.7714 GB, free: 2.941 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.546e-05/0.1683, allocations: 19.92 kB / 0.7715 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.1684, allocations: 0 / 0.7715 GB, free: 2.922 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.1687, allocations: 67.86 kB / 0.7715 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.1687, allocations: 8 kB / 0.7715 GB, free: 2.848 MB / 0.5606 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.0001278/0.1688, allocations: 138.4 kB / 0.7717 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.1689, allocations: 15.89 kB / 0.7717 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.847e-05/0.1689, allocations: 16.66 kB / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.351e-06/0.1689, allocations: 0 / 0.7717 GB, free: 2.672 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.1689, allocations: 7.938 kB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1689, allocations: 3.984 kB / 0.7717 GB, free: 2.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/0.1691, allocations: 189.5 kB / 0.7719 GB, free: 2.426 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.1691, allocations: 4 kB / 0.7719 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.614e-05/0.1692, allocations: 8 kB / 0.7719 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1692, allocations: 0 / 0.7719 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.1692, allocations: 7.984 kB / 0.7719 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1692, allocations: 8 kB / 0.7719 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1692, allocations: 0 / 0.7719 GB, free: 2.398 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002578/0.1695, allocations: 177 kB / 0.7721 GB, free: 2.207 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.502e-05/0.1696, allocations: 89.02 kB / 0.7722 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.1696, allocations: 7.938 kB / 0.7722 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.882e-05/0.1696, allocations: 0 / 0.7722 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.568e-05/0.1697, allocations: 11.98 kB / 0.7722 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.1697, allocations: 8 kB / 0.7722 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.815e-05/0.1698, allocations: 113.1 kB / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1698, allocations: 0 / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003134/0.1701, allocations: 79.8 kB / 0.7724 GB, free: 1.887 MB / 0.5606 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.0007442/0.1709, allocations: 0.7848 MB / 0.7731 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000287/0.1712, allocations: 160.1 kB / 0.7733 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1712, allocations: 0 / 0.7733 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 7.64e-05/0.1712, allocations: 43.92 kB / 0.7733 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000161/0.1714, allocations: 11.94 kB / 0.7734 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2774/0.4488, allocations: 1.699 MB / 0.775 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.449, allocations: 0.7071 MB / 0.7757 GB, free: 13.12 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.698e-05/0.4491, allocations: 9.578 kB / 0.7757 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.774e-05/0.4491, allocations: 28.31 kB / 0.7757 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of SimCode: time 7.01e-07/0.4491, allocations: 0 / 0.7757 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02515/0.4743, allocations: 3.998 MB / 0.7796 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.232, allocations: 13.16 kB / 0.7797 GB, free: 12.68 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)