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.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, 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.001329/0.001329, allocations: 193.7 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002552/0.002552, allocations: 266.9 kB / 290.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.129/1.129, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002766/0.002766, allocations: 102.4 kB / 0.6065 GB, free: 24.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1535, allocations: 89.14 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002989/0.1565, allocations: 1.406 MB / 0.695 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009036/0.1574, allocations: 0.4978 MB / 0.6955 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.718e-05/0.1575, allocations: 0 / 0.6955 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.021e-05/0.1575, allocations: 7.938 kB / 0.6955 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.124e-05/0.1576, allocations: 12.42 kB / 0.6955 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006913/0.1583, allocations: 234.8 kB / 0.6957 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000205/0.1585, allocations: 147.8 kB / 0.6958 GB, free: 1.93 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.111e-05/0.1586, allocations: 4.75 kB / 0.6958 GB, free: 1.926 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.186e-05/0.1586, allocations: 59.34 kB / 0.6959 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.466e-05/0.1587, allocations: 47.75 kB / 0.6959 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.1588, allocations: 12 kB / 0.696 GB, free: 1.812 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002745/0.159, allocations: 167.8 kB / 0.6961 GB, free: 1.648 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.756e-05/0.1591, allocations: 31.91 kB / 0.6961 GB, free: 1.617 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.335e-05/0.1592, allocations: 51.78 kB / 0.6962 GB, free: 1.566 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003317/0.1596, allocations: 235.7 kB / 0.6964 GB, free: 1.336 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1596, allocations: 0.7812 kB / 0.6964 GB, free: 1.336 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1596, allocations: 0 / 0.6964 GB, free: 1.336 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.1596, allocations: 1.562 kB / 0.6964 GB, free: 1.336 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.0005906/0.1602, allocations: 451 kB / 0.6968 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.1602, allocations: 16.62 kB / 0.6969 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.372e-05/0.1603, allocations: 30.75 kB / 0.6969 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.698e-05/0.1603, allocations: 13.56 kB / 0.6969 GB, free: 0.7773 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.1606, allocations: 212 kB / 0.6971 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1606, allocations: 12.38 kB / 0.6971 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.391e-05/0.1606, allocations: 12.38 kB / 0.6971 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.1608, allocations: 79.95 kB / 0.6972 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.1608, allocations: 3.938 kB / 0.6972 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.1608, allocations: 0 / 0.6972 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1608, allocations: 0 / 0.6972 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.505e-05/0.1609, allocations: 43.91 kB / 0.6973 GB, free: 380 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002599/0.1612, allocations: 234.5 kB / 0.6975 GB, free: 92 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001344/0.1613, allocations: 77.25 kB / 0.6976 GB, free: 16 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.379e-05/0.1614, allocations: 53.81 kB / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.939e-06/0.1614, allocations: 0 / 0.6976 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.1616, allocations: 127.2 kB / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.052e-06/0.1616, allocations: 0 / 0.6977 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0003478/0.162, allocations: 185.5 kB / 0.6979 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/0.1621, allocations: 89.09 kB / 0.698 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.1622, allocations: 155.1 kB / 0.6981 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.1623, allocations: 33.7 kB / 0.6982 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.616e-05/0.1624, allocations: 104.5 kB / 0.6983 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.632e-05/0.1624, allocations: 39.53 kB / 0.6983 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.762e-05/0.1625, allocations: 53.69 kB / 0.6984 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1627, allocations: 326.8 kB / 0.6987 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.332e-05/0.1627, allocations: 39.98 kB / 0.6987 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002507/0.163, allocations: 205.1 kB / 0.6989 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.1632, allocations: 93.64 kB / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1632, allocations: 0 / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002434/0.1634, allocations: 165.4 kB / 0.6991 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/0.1634, allocations: 4 kB / 0.6992 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.1635, allocations: 7.984 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.1635, allocations: 4 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.611e-05/0.1636, allocations: 11.94 kB / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.91e-06/0.1636, allocations: 0 / 0.6992 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.1639, allocations: 79.75 kB / 0.6993 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.1639, allocations: 4 kB / 0.6993 GB, free: 14.1 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.0001242/0.164, allocations: 134.4 kB / 0.6994 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/0.164, allocations: 11.84 kB / 0.6994 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.1641, allocations: 16.7 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1641, allocations: 4 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1641, allocations: 0 / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1641, allocations: 3.938 kB / 0.6994 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.1643, allocations: 197.5 kB / 0.6996 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.1643, allocations: 4 kB / 0.6996 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.755e-05/0.1643, allocations: 11.98 kB / 0.6996 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1644, allocations: 3.938 kB / 0.6996 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.1644, allocations: 4 kB / 0.6996 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1644, allocations: 0 / 0.6996 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1644, allocations: 0 / 0.6996 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002399/0.1646, allocations: 177.8 kB / 0.6998 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.878e-05/0.1647, allocations: 96.86 kB / 0.6999 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.1647, allocations: 0 / 0.6999 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.614e-05/0.1648, allocations: 11.98 kB / 0.6999 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.056e-05/0.1648, allocations: 0 / 0.6999 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1648, allocations: 4 kB / 0.6999 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.001e-05/0.1649, allocations: 113.1 kB / 0.7 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1649, allocations: 0 / 0.7 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002902/0.1652, allocations: 75.98 kB / 0.7001 GB, free: 13.15 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.0007443/0.166, allocations: 0.7918 MB / 0.7009 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002624/0.1662, allocations: 164.1 kB / 0.701 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1662, allocations: 0 / 0.701 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.581e-05/0.1663, allocations: 51.91 kB / 0.7011 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001521/0.1665, allocations: 4 kB / 0.7011 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.1684, allocations: 1.695 MB / 0.7027 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000339/0.1687, allocations: 0.708 MB / 0.7034 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.496e-05/0.1687, allocations: 12.83 kB / 0.7034 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.1688, allocations: 27.44 kB / 0.7035 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1688, allocations: 0 / 0.7035 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.1938, allocations: 3.941 MB / 0.7073 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.066, allocations: 18.12 kB / 0.7073 GB, free: 5.703 MB / 0.4981 GB (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)