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.001486/0.001486, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001068/0.001068, allocations: 193.1 kB / 16.13 MB, free: 6.66 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.288/1.288, allocations: 222.9 MB / 239.8 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00203/0.00203, allocations: 275 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.907/0.907, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 91.62 kB / 0.5946 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1489, allocations: 86.98 MB / 0.6795 GB, free: 1.078 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.002191/0.1511, allocations: 1.47 MB / 0.681 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008026/0.1519, allocations: 0.5145 MB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.455e-05/0.1519, allocations: 8 kB / 0.6815 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.274e-05/0.152, allocations: 3.938 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.355e-05/0.1521, allocations: 11.92 kB / 0.6815 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.1526, allocations: 194.2 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001621/0.1528, allocations: 139.7 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.64e-05/0.1528, allocations: 12.25 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.99e-05/0.1529, allocations: 47.91 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.724e-05/0.1529, allocations: 43.84 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.153, allocations: 4 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.1532, allocations: 163.8 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.1533, allocations: 31.91 kB / 0.6821 GB, free: 14.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.294e-05/0.1533, allocations: 43.8 kB / 0.6821 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.1536, allocations: 231.4 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1536, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.82e-07/0.1536, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.1536, allocations: 0 / 0.6824 GB, free: 14.18 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.0004762/0.1541, allocations: 451 kB / 0.6828 GB, free: 13.69 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1541, allocations: 8.031 kB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.344e-05/0.1542, allocations: 42.69 kB / 0.6828 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.1542, allocations: 16.83 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001727/0.1544, allocations: 209.4 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.348e-05/0.1544, allocations: 8.375 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.1545, allocations: 8.375 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001382/0.1546, allocations: 83.95 kB / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1546, allocations: 3.938 kB / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.1546, allocations: 0 / 0.6832 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.1546, allocations: 11.92 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.612e-05/0.1547, allocations: 31.98 kB / 0.6832 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002047/0.1549, allocations: 230.5 kB / 0.6834 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001028/0.155, allocations: 81.19 kB / 0.6835 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.522e-05/0.1551, allocations: 53.81 kB / 0.6835 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.1551, allocations: 0 / 0.6835 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.1553, allocations: 113 kB / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.1553, allocations: 0 / 0.6837 GB, free: 12.65 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003026/0.1556, allocations: 197.8 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.605e-05/0.1557, allocations: 85.11 kB / 0.6839 GB, free: 12.35 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.1558, allocations: 159.2 kB / 0.6841 GB, free: 12.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.1558, allocations: 33.7 kB / 0.6841 GB, free: 12.15 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.55e-05/0.1559, allocations: 104.5 kB / 0.6842 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.1559, allocations: 31.56 kB / 0.6842 GB, free: 12.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.674e-05/0.156, allocations: 53.69 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1561, allocations: 322.8 kB / 0.6846 GB, free: 11.62 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.197e-05/0.1562, allocations: 43.98 kB / 0.6846 GB, free: 11.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.1564, allocations: 196.1 kB / 0.6848 GB, free: 11.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.1565, allocations: 109.5 kB / 0.6849 GB, free: 11.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1565, allocations: 0 / 0.6849 GB, free: 11.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001996/0.1567, allocations: 161.5 kB / 0.6851 GB, free: 11.06 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.1567, allocations: 4 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.1567, allocations: 7.938 kB / 0.6851 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.748e-06/0.1568, allocations: 3.984 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.289e-05/0.1568, allocations: 8 kB / 0.6851 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1568, allocations: 4.094 kB / 0.6851 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.1571, allocations: 78.88 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.1571, allocations: 4 kB / 0.6852 GB, free: 10.95 MB / 494.1 MB 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 9.471e-05/0.1572, allocations: 147.1 kB / 0.6853 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.1572, allocations: 11.84 kB / 0.6853 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.1573, allocations: 16.7 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1573, allocations: 0 / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1573, allocations: 4 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1573, allocations: 0 / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.1574, allocations: 201.4 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1574, allocations: 0 / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.01e-05/0.1575, allocations: 4 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1575, allocations: 4 kB / 0.6856 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.1575, allocations: 4 kB / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1575, allocations: 7.984 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1575, allocations: 0 / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.1577, allocations: 181.7 kB / 0.6857 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.1578, allocations: 85.02 kB / 0.6858 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.875e-05/0.1578, allocations: 3.984 kB / 0.6858 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.887e-05/0.1578, allocations: 4 kB / 0.6858 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.1579, allocations: 11.98 kB / 0.6858 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.605e-06/0.1579, allocations: 4 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.983e-05/0.158, allocations: 113.3 kB / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.158, allocations: 0 / 0.686 GB, free: 10.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002641/0.1582, allocations: 72 kB / 0.686 GB, free: 10 MB / 494.1 MB 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.0005383/0.1588, allocations: 0.7959 MB / 0.6868 GB, free: 9.176 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002125/0.159, allocations: 159.4 kB / 0.687 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.159, allocations: 0 / 0.687 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.243e-05/0.1591, allocations: 47.92 kB / 0.687 GB, free: 8.961 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.1592, allocations: 8 kB / 0.687 GB, free: 8.953 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.1607, allocations: 1.721 MB / 0.6887 GB, free: 7.137 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002257/0.1609, allocations: 0.7004 MB / 0.6894 GB, free: 6.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.553e-05/0.161, allocations: 16.84 kB / 0.6894 GB, free: 6.395 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.229e-05/0.161, allocations: 35.36 kB / 0.6894 GB, free: 6.359 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.161, allocations: 0 / 0.6894 GB, free: 6.359 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6213/0.7823, allocations: 3.715 MB / 0.6931 GB, free: 2.793 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.7826, allocations: 223.8 kB / 0.6933 GB, free: 2.535 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.212/3.995, allocations: 0 / 0.6933 GB, free: 2.535 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)