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.004828/0.004828, allocations: 98.09 kB / 15.73 MB, free: 6.012 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.001125/0.001125, allocations: 197 kB / 16.67 MB, free: 5.949 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7191/0.7191, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 74.52 kB / 0.5808 GB, free: 1.133 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1471, allocations: 80.2 MB / 0.6592 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.00254/0.1497, allocations: 1.41 MB / 0.6605 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009004/0.1506, allocations: 0.4982 MB / 0.661 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.43e-05/0.1507, allocations: 0 / 0.661 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 7.922e-05/0.1508, allocations: 11.92 kB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.442e-05/0.1509, allocations: 3.938 kB / 0.661 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007852/0.1517, allocations: 237.5 kB / 0.6613 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.1519, allocations: 147.7 kB / 0.6614 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.417e-05/0.1519, allocations: 4 kB / 0.6614 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.911e-05/0.152, allocations: 55.91 kB / 0.6615 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.641e-05/0.1521, allocations: 47.81 kB / 0.6615 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.1522, allocations: 8 kB / 0.6615 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.1524, allocations: 163.8 kB / 0.6617 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.711e-05/0.1525, allocations: 35.91 kB / 0.6617 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.093e-05/0.1526, allocations: 59.77 kB / 0.6618 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.1529, allocations: 235.5 kB / 0.662 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.153, allocations: 0 / 0.662 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.383e-06/0.153, allocations: 0 / 0.662 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.153, allocations: 0 / 0.662 GB, free: 11.15 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.0005863/0.1536, allocations: 454.7 kB / 0.6624 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1536, allocations: 12.03 kB / 0.6624 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.1536, allocations: 30.75 kB / 0.6625 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.392e-05/0.1537, allocations: 24.78 kB / 0.6625 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.1539, allocations: 210.4 kB / 0.6627 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.154, allocations: 4.375 kB / 0.6627 GB, free: 10.33 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.154, allocations: 16.38 kB / 0.6627 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.1541, allocations: 75.95 kB / 0.6628 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1542, allocations: 7.938 kB / 0.6628 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.1542, allocations: 0 / 0.6628 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/0.1542, allocations: 0 / 0.6628 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.64e-05/0.1543, allocations: 51.89 kB / 0.6628 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002259/0.1545, allocations: 218.6 kB / 0.663 GB, free: 9.906 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.1546, allocations: 89.17 kB / 0.6631 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.161e-05/0.1547, allocations: 57.81 kB / 0.6632 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.004e-05/0.1547, allocations: 0 / 0.6632 GB, free: 9.738 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.1549, allocations: 111.1 kB / 0.6633 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.155, allocations: 3.938 kB / 0.6633 GB, free: 9.609 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0003286/0.1553, allocations: 193.4 kB / 0.6635 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.1554, allocations: 89.09 kB / 0.6636 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.1555, allocations: 149.8 kB / 0.6637 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.227e-05/0.1555, allocations: 37.64 kB / 0.6637 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/0.1556, allocations: 100.5 kB / 0.6638 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.467e-05/0.1557, allocations: 43.67 kB / 0.6639 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.1557, allocations: 45.7 kB / 0.6639 GB, free: 8.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1559, allocations: 330.8 kB / 0.6642 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.665e-05/0.1559, allocations: 43.98 kB / 0.6643 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.1561, allocations: 199.3 kB / 0.6645 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.1563, allocations: 96.59 kB / 0.6646 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1563, allocations: 0 / 0.6646 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002158/0.1565, allocations: 161.5 kB / 0.6647 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.1565, allocations: 8 kB / 0.6647 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.1566, allocations: 4 kB / 0.6647 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1566, allocations: 3.984 kB / 0.6647 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.228e-05/0.1567, allocations: 11.94 kB / 0.6647 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.1567, allocations: 0 / 0.6647 GB, free: 7.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002667/0.1569, allocations: 71.91 kB / 0.6648 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.157, allocations: 4 kB / 0.6648 GB, free: 7.922 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.0001038/0.1571, allocations: 129.8 kB / 0.6649 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.1571, allocations: 15.84 kB / 0.665 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.026e-05/0.1571, allocations: 12.72 kB / 0.665 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.1571, allocations: 7.938 kB / 0.665 GB, free: 7.742 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1572, allocations: 11.92 kB / 0.665 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.1572, allocations: 0 / 0.665 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001425/0.1573, allocations: 197.5 kB / 0.6652 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1573, allocations: 0 / 0.6652 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.685e-05/0.1574, allocations: 11.98 kB / 0.6652 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1574, allocations: 0 / 0.6652 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.196e-06/0.1574, allocations: 0 / 0.6652 GB, free: 7.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1574, allocations: 4 kB / 0.6652 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1574, allocations: 0 / 0.6652 GB, free: 7.473 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.1576, allocations: 181.8 kB / 0.6654 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.1577, allocations: 85.16 kB / 0.6654 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.1577, allocations: 11.92 kB / 0.6655 GB, free: 7.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.297e-05/0.1577, allocations: 7.984 kB / 0.6655 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.1578, allocations: 4 kB / 0.6655 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.1578, allocations: 4 kB / 0.6655 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.755e-05/0.1579, allocations: 117.8 kB / 0.6656 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1579, allocations: 0 / 0.6656 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002944/0.1582, allocations: 87.73 kB / 0.6657 GB, free: 6.945 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.0006086/0.1588, allocations: 0.7822 MB / 0.6664 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000252/0.1591, allocations: 159.4 kB / 0.6666 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1591, allocations: 0 / 0.6666 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.616e-05/0.1592, allocations: 55.91 kB / 0.6666 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001627/0.1593, allocations: 5.75 kB / 0.6666 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.161, allocations: 1.73 MB / 0.6683 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1612, allocations: 0.7002 MB / 0.669 GB, free: 3.363 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.326e-05/0.1613, allocations: 12.67 kB / 0.669 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.636e-05/0.1613, allocations: 27.42 kB / 0.6691 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of SimCode: time 4.31e-07/0.1613, allocations: 0 / 0.6691 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0212/0.1825, allocations: 3.952 MB / 0.6729 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.351/7.534, allocations: 13.59 kB / 0.6729 GB, free: 15.5 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)