Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="IDEAS_dev_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.004811/0.004811, allocations: 100.8 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.001305/0.001305, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8494/0.8494, allocations: 135.6 MB / 426.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 63.19 kB / 0.5857 GB, free: 21.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1578, allocations: 81.02 MB / 0.6648 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.002868/0.1607, allocations: 1.406 MB / 0.6662 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1618, allocations: 0.506 MB / 0.6667 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.783e-05/0.1619, allocations: 0 / 0.6667 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 8.512e-05/0.162, allocations: 7.938 kB / 0.6667 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.929e-05/0.162, allocations: 11.92 kB / 0.6667 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007914/0.1628, allocations: 223 kB / 0.6669 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.1631, allocations: 151.7 kB / 0.6671 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.003e-05/0.1631, allocations: 4 kB / 0.6671 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.712e-05/0.1632, allocations: 51.91 kB / 0.6671 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.858e-05/0.1633, allocations: 47.81 kB / 0.6672 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.71e-05/0.1634, allocations: 8 kB / 0.6672 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002973/0.1637, allocations: 179.8 kB / 0.6673 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.509e-05/0.1638, allocations: 35.91 kB / 0.6674 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.1639, allocations: 55.77 kB / 0.6674 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003845/0.1643, allocations: 227.6 kB / 0.6677 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1643, allocations: 0 / 0.6677 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.523e-06/0.1643, allocations: 0 / 0.6677 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.316e-05/0.1643, allocations: 0 / 0.6677 GB, free: 2.754 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.0007181/0.1651, allocations: 454.6 kB / 0.6681 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.1651, allocations: 21.09 kB / 0.6681 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.222e-05/0.1652, allocations: 34.75 kB / 0.6681 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.144e-05/0.1652, allocations: 16.84 kB / 0.6682 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.1655, allocations: 206.4 kB / 0.6684 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1655, allocations: 4.375 kB / 0.6684 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/0.1656, allocations: 20.36 kB / 0.6684 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.1658, allocations: 75.95 kB / 0.6684 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.239e-05/0.1658, allocations: 3.938 kB / 0.6685 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.1658, allocations: 8 kB / 0.6685 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.1658, allocations: 0 / 0.6685 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.776e-05/0.1659, allocations: 39.92 kB / 0.6685 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000304/0.1662, allocations: 226.5 kB / 0.6687 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.1664, allocations: 81.19 kB / 0.6688 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.945e-05/0.1665, allocations: 53.84 kB / 0.6688 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.1665, allocations: 12 kB / 0.6689 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.1668, allocations: 105 kB / 0.669 GB, free: 1.219 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.1668, allocations: 3.938 kB / 0.669 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.000388/0.1672, allocations: 197.4 kB / 0.6691 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.919e-05/0.1673, allocations: 85.11 kB / 0.6692 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/0.1675, allocations: 149.8 kB / 0.6694 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.604e-05/0.1675, allocations: 33.7 kB / 0.6694 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.025e-05/0.1676, allocations: 100.5 kB / 0.6695 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.537e-05/0.1677, allocations: 47.67 kB / 0.6695 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.397e-05/0.1678, allocations: 45.7 kB / 0.6696 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000194/0.168, allocations: 326.8 kB / 0.6699 GB, free: 192 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.618e-05/0.168, allocations: 39.98 kB / 0.6699 GB, free: 152 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002996/0.1683, allocations: 209.8 kB / 0.6701 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001644/0.1685, allocations: 93.64 kB / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1685, allocations: 7.938 kB / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002606/0.1688, allocations: 157.5 kB / 0.6704 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1688, allocations: 4 kB / 0.6704 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.642e-05/0.1688, allocations: 4 kB / 0.6704 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.1689, allocations: 0 / 0.6704 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.77e-05/0.169, allocations: 23.92 kB / 0.6704 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.169, allocations: 0 / 0.6704 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003047/0.1693, allocations: 71.86 kB / 0.6705 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1693, allocations: 8 kB / 0.6705 GB, free: 15.52 MB / 0.5137 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.0001429/0.1695, allocations: 133.8 kB / 0.6706 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.381e-05/0.1695, allocations: 19.78 kB / 0.6706 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.1695, allocations: 16.72 kB / 0.6707 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.1695, allocations: 0 / 0.6707 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1696, allocations: 4 kB / 0.6707 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1696, allocations: 0 / 0.6707 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/0.1698, allocations: 197.5 kB / 0.6708 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1698, allocations: 0 / 0.6708 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.411e-05/0.1698, allocations: 8 kB / 0.6709 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1698, allocations: 0 / 0.6709 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1699, allocations: 7.938 kB / 0.6709 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.962e-06/0.1699, allocations: 7.984 kB / 0.6709 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1699, allocations: 0 / 0.6709 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000255/0.1701, allocations: 181.8 kB / 0.671 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.435e-05/0.1702, allocations: 85.06 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.048e-05/0.1702, allocations: 4 kB / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.622e-05/0.1703, allocations: 0 / 0.6711 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.894e-05/0.1703, allocations: 11.98 kB / 0.6711 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.1703, allocations: 4 kB / 0.6711 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.843e-05/0.1704, allocations: 117.7 kB / 0.6713 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1704, allocations: 0 / 0.6713 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003259/0.1708, allocations: 83.73 kB / 0.6713 GB, free: 14.55 MB / 0.5137 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.0007422/0.1715, allocations: 0.7848 MB / 0.6721 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002827/0.1718, allocations: 169.9 kB / 0.6723 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1718, allocations: 0 / 0.6723 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 7.548e-05/0.1719, allocations: 47.91 kB / 0.6723 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001613/0.1721, allocations: 9.828 kB / 0.6723 GB, free: 13.51 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.174, allocations: 1.709 MB / 0.674 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003939/0.1745, allocations: 0.708 MB / 0.6747 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.815e-05/0.1745, allocations: 12.66 kB / 0.6747 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.099e-05/0.1746, allocations: 27.38 kB / 0.6747 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.1746, allocations: 0 / 0.6747 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.2037, allocations: 3.972 MB / 0.6786 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.081/8.285, allocations: 1.234 kB / 0.6786 GB, free: 7.07 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Controls_SetPoints_Examples_OccupancySchedule.fmu > IDEAS_dev_IDEAS.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)