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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 114.3 kB / 18.94 MB, free: 2.781 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 217.5 kB / 22.25 MB, free: 5.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.377/1.377, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002476/0.002476, allocations: 286.2 kB / 312.7 MB, free: 2.809 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.161/1.161, allocations: 180.6 MB / 0.5369 GB, free: 12.96 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002761/0.002761, allocations: 106.3 kB / 0.7396 GB, free: 27.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1613, allocations: 95.37 MB / 0.8327 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002472/0.1638, allocations: 1.454 MB / 0.8341 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0008922/0.1647, allocations: 0.4999 MB / 0.8346 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.43e-05/0.1647, allocations: 0 / 0.8346 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 7.293e-05/0.1648, allocations: 15.86 kB / 0.8346 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.963e-05/0.1649, allocations: 3.938 kB / 0.8346 GB, free: 6.688 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007181/0.1656, allocations: 234.2 kB / 0.8348 GB, free: 6.461 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.1658, allocations: 155.7 kB / 0.835 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.604e-05/0.1659, allocations: 12 kB / 0.835 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 8.081e-05/0.1659, allocations: 51.91 kB / 0.8351 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.538e-05/0.166, allocations: 47.83 kB / 0.8351 GB, free: 6.199 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.942e-05/0.1661, allocations: 8 kB / 0.8351 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003252/0.1664, allocations: 199.7 kB / 0.8353 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.967e-05/0.1665, allocations: 39.91 kB / 0.8353 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.302e-05/0.1665, allocations: 43.8 kB / 0.8354 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.1669, allocations: 239.5 kB / 0.8356 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1669, allocations: 4 kB / 0.8356 GB, free: 5.676 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.994e-06/0.1669, allocations: 4 kB / 0.8356 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.1669, allocations: 0 / 0.8356 GB, free: 5.672 MB / 0.5762 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.0006178/0.1675, allocations: 373.5 kB / 0.836 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1675, allocations: 9.344 kB / 0.836 GB, free: 5.266 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.705e-05/0.1676, allocations: 38.75 kB / 0.836 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.449e-05/0.1676, allocations: 12.89 kB / 0.836 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.1679, allocations: 150.3 kB / 0.8362 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.1679, allocations: 8.375 kB / 0.8362 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.561e-05/0.1679, allocations: 12.38 kB / 0.8362 GB, free: 5.016 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001613/0.1681, allocations: 83.94 kB / 0.8363 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1681, allocations: 7.875 kB / 0.8363 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.033e-05/0.1681, allocations: 0 / 0.8363 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-06/0.1681, allocations: 4 kB / 0.8363 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.841e-05/0.1682, allocations: 35.92 kB / 0.8363 GB, free: 4.875 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002475/0.1684, allocations: 205.6 kB / 0.8365 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001165/0.1685, allocations: 81.19 kB / 0.8366 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.521e-05/0.1686, allocations: 49.84 kB / 0.8366 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.1686, allocations: 0 / 0.8366 GB, free: 4.477 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002158/0.1688, allocations: 121 kB / 0.8368 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.1688, allocations: 0 / 0.8368 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14): time 0.0003459/0.1692, allocations: 189.5 kB / 0.8369 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.631e-05/0.1693, allocations: 85.11 kB / 0.837 GB, free: 4.047 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.1695, allocations: 156.3 kB / 0.8372 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.493e-05/0.1695, allocations: 33.7 kB / 0.8372 GB, free: 3.848 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.349e-05/0.1696, allocations: 104.5 kB / 0.8373 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.734e-05/0.1696, allocations: 35.73 kB / 0.8373 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.674e-05/0.1697, allocations: 53.64 kB / 0.8374 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.1698, allocations: 326.8 kB / 0.8377 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.677e-05/0.1699, allocations: 39.98 kB / 0.8377 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.1701, allocations: 199.3 kB / 0.8379 GB, free: 3.027 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.1703, allocations: 101.6 kB / 0.838 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1703, allocations: 0 / 0.838 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002347/0.1705, allocations: 169.4 kB / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1705, allocations: 10.03 kB / 0.8382 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.1705, allocations: 0 / 0.8382 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1706, allocations: 4 kB / 0.8382 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.461e-05/0.1706, allocations: 4 kB / 0.8382 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.687e-06/0.1706, allocations: 19.86 kB / 0.8382 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002602/0.1709, allocations: 67.86 kB / 0.8383 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.1709, allocations: 4 kB / 0.8383 GB, free: 2.645 MB / 0.5762 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.0001236/0.171, allocations: 146.4 kB / 0.8384 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.1711, allocations: 19.83 kB / 0.8384 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.383e-05/0.1711, allocations: 12.72 kB / 0.8385 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1711, allocations: 0 / 0.8385 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1711, allocations: 0 / 0.8385 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1711, allocations: 0 / 0.8385 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001483/0.1712, allocations: 164.6 kB / 0.8386 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1712, allocations: 0 / 0.8386 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.083e-05/0.1713, allocations: 4 kB / 0.8386 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1713, allocations: 8 kB / 0.8386 GB, free: 2.238 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1713, allocations: 4 kB / 0.8386 GB, free: 2.234 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.1713, allocations: 3.938 kB / 0.8386 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1713, allocations: 8.562 kB / 0.8386 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.1715, allocations: 184 kB / 0.8388 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.583e-05/0.1715, allocations: 7.953 kB / 0.8388 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.1716, allocations: 4 kB / 0.8388 GB, free: 2.012 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.66e-05/0.1716, allocations: 4 kB / 0.8388 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-05/0.1716, allocations: 11.98 kB / 0.8388 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.1716, allocations: 96 / 0.8388 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.662e-05/0.1717, allocations: 114.2 kB / 0.839 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1717, allocations: 0 / 0.839 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002847/0.172, allocations: 79.8 kB / 0.839 GB, free: 1.809 MB / 0.5762 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.0006514/0.1727, allocations: 0.8026 MB / 0.8398 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002558/0.1729, allocations: 155.3 kB / 0.84 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1729, allocations: 0 / 0.84 GB, free: 0.8125 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 6.621e-05/0.173, allocations: 39.92 kB / 0.84 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00016/0.1731, allocations: 8 kB / 0.84 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.1749, allocations: 1.7 MB / 0.8417 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1752, allocations: 0.7002 MB / 0.8423 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 3.896e-05/0.1752, allocations: 12.66 kB / 0.8424 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.1752, allocations: 27.44 kB / 0.8424 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of SimCode: time 3.1e-07/0.1752, allocations: 0 / 0.8424 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02924/0.2045, allocations: 4.162 MB / 0.8465 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.52, allocations: 10.28 kB / 0.8465 GB, free: 10.21 MB / 0.5919 GB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.581575997999607] Failed to read output from testmodel.py, exit status != 0: 10.629175972000667 10.650235798 10.479474811 Calling exit ...