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.005053/0.005053, allocations: 102 kB / 15.73 MB, free: 6.062 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.001163/0.001163, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.817/0.817, allocations: 135.1 MB / 425.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 62.72 kB / 0.5851 GB, free: 21.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1652, allocations: 80.92 MB / 0.6641 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.SetPoints.Examples.OccupancySchedule): time 0.002633/0.1679, allocations: 1.418 MB / 0.6655 GB, free: 4.898 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000896/0.1688, allocations: 0.4983 MB / 0.666 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.856e-05/0.1689, allocations: 0 / 0.666 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 7.247e-05/0.169, allocations: 7.938 kB / 0.666 GB, free: 4.391 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.53e-05/0.169, allocations: 11.86 kB / 0.666 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007748/0.1698, allocations: 235 kB / 0.6662 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.17, allocations: 151.7 kB / 0.6664 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.137e-05/0.1701, allocations: 7.938 kB / 0.6664 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.698e-05/0.1702, allocations: 55.91 kB / 0.6664 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.146e-05/0.1703, allocations: 39.83 kB / 0.6665 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.1703, allocations: 12 kB / 0.6665 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002502/0.1705, allocations: 163.8 kB / 0.6666 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.146e-05/0.1706, allocations: 39.91 kB / 0.6667 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.836e-05/0.1707, allocations: 55.78 kB / 0.6667 GB, free: 3.637 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003833/0.1711, allocations: 235.5 kB / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1711, allocations: 0 / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1711, allocations: 0 / 0.667 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.33e-06/0.1711, allocations: 0 / 0.667 GB, free: 3.406 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.0005665/0.1717, allocations: 454.6 kB / 0.6674 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.728e-05/0.1717, allocations: 13.11 kB / 0.6674 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.1718, allocations: 34.75 kB / 0.6674 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.158e-05/0.1718, allocations: 16.84 kB / 0.6675 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.1721, allocations: 204.2 kB / 0.6676 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.1721, allocations: 16.36 kB / 0.6677 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.1721, allocations: 8.375 kB / 0.6677 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.1723, allocations: 83.89 kB / 0.6678 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1723, allocations: 3.938 kB / 0.6678 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.1723, allocations: 0 / 0.6678 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.1723, allocations: 0 / 0.6678 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.454e-05/0.1724, allocations: 35.98 kB / 0.6678 GB, free: 2.445 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002443/0.1726, allocations: 238.5 kB / 0.668 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.1728, allocations: 81.12 kB / 0.6681 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.297e-05/0.1729, allocations: 57.84 kB / 0.6681 GB, free: 2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.384e-06/0.1729, allocations: 0 / 0.6681 GB, free: 2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.1731, allocations: 121 kB / 0.6683 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.1731, allocations: 0 / 0.6683 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.000348/0.1735, allocations: 189.4 kB / 0.6684 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.1736, allocations: 81.11 kB / 0.6685 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000128/0.1737, allocations: 152 kB / 0.6687 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.1737, allocations: 37.69 kB / 0.6687 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.026e-05/0.1738, allocations: 100.5 kB / 0.6688 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/0.1739, allocations: 43.69 kB / 0.6688 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.715e-05/0.174, allocations: 49.7 kB / 0.6689 GB, free: 1.172 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.1741, allocations: 322.8 kB / 0.6692 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.187e-05/0.1742, allocations: 43.97 kB / 0.6692 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.1744, allocations: 210.9 kB / 0.6694 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.1745, allocations: 93.69 kB / 0.6695 GB, free: 460 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.1746, allocations: 0 / 0.6695 GB, free: 460 kB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.00023/0.1748, allocations: 165.4 kB / 0.6697 GB, free: 288 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1748, allocations: 7.938 kB / 0.6697 GB, free: 280 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.1748, allocations: 8 kB / 0.6697 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1749, allocations: 0 / 0.6697 GB, free: 272 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.418e-05/0.1749, allocations: 11.98 kB / 0.6697 GB, free: 260 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.175, allocations: 0 / 0.6697 GB, free: 260 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.1752, allocations: 75.86 kB / 0.6698 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1753, allocations: 4 kB / 0.6698 GB, free: 180 kB / 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.0001173/0.1754, allocations: 137.7 kB / 0.6699 GB, free: 32 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.314e-05/0.1754, allocations: 19.84 kB / 0.6699 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.588e-05/0.1754, allocations: 12.72 kB / 0.67 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.777e-05/0.1755, allocations: 4.047 kB / 0.67 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/0.1755, allocations: 0 / 0.67 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1755, allocations: 3.938 kB / 0.67 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.1757, allocations: 197.5 kB / 0.6701 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1757, allocations: 0 / 0.6701 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.478e-05/0.1757, allocations: 8 kB / 0.6702 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.1757, allocations: 0 / 0.6702 GB, free: 15.74 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.1758, allocations: 7.984 kB / 0.6702 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1758, allocations: 0 / 0.6702 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1758, allocations: 0 / 0.6702 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.176, allocations: 193.7 kB / 0.6703 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.439e-05/0.1761, allocations: 85.06 kB / 0.6704 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.1761, allocations: 4 kB / 0.6704 GB, free: 15.42 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.286e-05/0.1761, allocations: 4 kB / 0.6704 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.1762, allocations: 3.984 kB / 0.6704 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.1762, allocations: 4 kB / 0.6704 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 8.46e-05/0.1763, allocations: 117.5 kB / 0.6706 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1763, allocations: 0 / 0.6706 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003001/0.1766, allocations: 75.8 kB / 0.6706 GB, free: 15.22 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.000663/0.1773, allocations: 0.7861 MB / 0.6714 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.1775, allocations: 167.3 kB / 0.6716 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1775, allocations: 0 / 0.6716 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 6.639e-05/0.1776, allocations: 43.98 kB / 0.6716 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.1778, allocations: 12 kB / 0.6716 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001648/0.1794, allocations: 1.721 MB / 0.6733 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1797, allocations: 0.7041 MB / 0.674 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.231e-05/0.1798, allocations: 8.656 kB / 0.674 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.1798, allocations: 31.38 kB / 0.674 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1798, allocations: 4 kB / 0.674 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02011/0.1999, allocations: 3.964 MB / 0.6779 GB, free: 7.73 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/7.953, allocations: 304 / 0.6779 GB, free: 7.73 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)