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.001016/0.001016, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.001169, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9281/0.9281, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 61.56 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1584, allocations: 80.92 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.003367/0.1618, allocations: 1.411 MB / 0.5858 GB, free: 3.055 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.1629, allocations: 495.9 kB / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.977e-05/0.163, allocations: 0 / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.1631, allocations: 15.92 kB / 0.5863 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.271e-05/0.1632, allocations: 11.88 kB / 0.5863 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009155/0.1641, allocations: 227.4 kB / 0.5866 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.1644, allocations: 147.8 kB / 0.5867 GB, free: 2.176 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.46e-05/0.1644, allocations: 4 kB / 0.5867 GB, free: 2.172 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.1645, allocations: 55.84 kB / 0.5868 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.1647, allocations: 43.88 kB / 0.5868 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.1647, allocations: 12 kB / 0.5868 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003055/0.165, allocations: 167.8 kB / 0.587 GB, free: 1.898 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.268e-05/0.1651, allocations: 31.91 kB / 0.587 GB, free: 1.867 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.757e-05/0.1652, allocations: 59.7 kB / 0.5871 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003906/0.1656, allocations: 227.7 kB / 0.5873 GB, free: 1.586 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1656, allocations: 0 / 0.5873 GB, free: 1.586 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1656, allocations: 0 / 0.5873 GB, free: 1.586 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1656, allocations: 0 / 0.5873 GB, free: 1.586 MB / 494.1 MB 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.0006526/0.1663, allocations: 447 kB / 0.5877 GB, free: 1.098 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1663, allocations: 12.03 kB / 0.5877 GB, free: 1.086 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.227e-05/0.1664, allocations: 38.73 kB / 0.5878 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.512e-05/0.1665, allocations: 12.84 kB / 0.5878 GB, free: 1.027 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.1668, allocations: 208 kB / 0.588 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.1668, allocations: 8.375 kB / 0.588 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.232e-05/0.1669, allocations: 16.36 kB / 0.588 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.167, allocations: 79.89 kB / 0.5881 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.1671, allocations: 7.938 kB / 0.5881 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1671, allocations: 7.938 kB / 0.5881 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.1671, allocations: 0 / 0.5881 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.576e-05/0.1672, allocations: 39.92 kB / 0.5881 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003075/0.1675, allocations: 234.4 kB / 0.5883 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.1677, allocations: 81.12 kB / 0.5884 GB, free: 244 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.915e-05/0.1678, allocations: 61.84 kB / 0.5885 GB, free: 176 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.845e-06/0.1678, allocations: 0 / 0.5885 GB, free: 176 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.168, allocations: 119.9 kB / 0.5886 GB, free: 40 kB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.743e-06/0.1681, allocations: 0 / 0.5886 GB, free: 40 kB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004426/0.1685, allocations: 189.5 kB / 0.5888 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.319e-05/0.1686, allocations: 85.11 kB / 0.5889 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.1687, allocations: 152 kB / 0.589 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.1688, allocations: 33.7 kB / 0.589 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.98e-05/0.1689, allocations: 108.4 kB / 0.5891 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.1689, allocations: 43.44 kB / 0.5892 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.759e-05/0.169, allocations: 49.7 kB / 0.5892 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1692, allocations: 326.8 kB / 0.5895 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.508e-05/0.1693, allocations: 35.98 kB / 0.5896 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.1695, allocations: 209.2 kB / 0.5898 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.1697, allocations: 101.4 kB / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1697, allocations: 0 / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002514/0.1699, allocations: 157.4 kB / 0.59 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1699, allocations: 5.875 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.17, allocations: 4 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.17, allocations: 0 / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.562e-05/0.1701, allocations: 19.92 kB / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1701, allocations: 0 / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.1704, allocations: 75.75 kB / 0.5901 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.1704, allocations: 8 kB / 0.5901 GB, free: 14.35 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.0001264/0.1706, allocations: 129.8 kB / 0.5902 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.1706, allocations: 15.84 kB / 0.5903 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.913e-05/0.1706, allocations: 12.72 kB / 0.5903 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.1706, allocations: 4 kB / 0.5903 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/0.1707, allocations: 0 / 0.5903 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.1707, allocations: 3.938 kB / 0.5903 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001819/0.1709, allocations: 197.5 kB / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1709, allocations: 0 / 0.5905 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-05/0.1709, allocations: 8 kB / 0.5905 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1709, allocations: 0 / 0.5905 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1709, allocations: 8 kB / 0.5905 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1709, allocations: 3.984 kB / 0.5905 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.171, allocations: 4 kB / 0.5905 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.1712, allocations: 185.7 kB / 0.5907 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.1713, allocations: 92.86 kB / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.1713, allocations: 0 / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.262e-05/0.1714, allocations: 7.938 kB / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.659e-05/0.1714, allocations: 8.078 kB / 0.5908 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.1714, allocations: 8 kB / 0.5908 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.752e-05/0.1715, allocations: 117.6 kB / 0.5909 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.31e-07/0.1715, allocations: 0 / 0.5909 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003385/0.1719, allocations: 75.98 kB / 0.591 GB, free: 13.38 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.000693/0.1726, allocations: 0.781 MB / 0.5917 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002754/0.1728, allocations: 171.2 kB / 0.5919 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1729, allocations: 0 / 0.5919 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 6.725e-05/0.1729, allocations: 43.98 kB / 0.5919 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001657/0.1731, allocations: 4 kB / 0.5919 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.175, allocations: 1.704 MB / 0.5936 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003459/0.1754, allocations: 0.7002 MB / 0.5943 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.631e-05/0.1754, allocations: 8.672 kB / 0.5943 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.204e-05/0.1755, allocations: 31.42 kB / 0.5943 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1755, allocations: 0 / 0.5943 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.2008, allocations: 3.922 MB / 0.5982 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.379/7.58, allocations: 6.281 kB / 0.5982 GB, free: 5.961 MB / 0.4981 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)