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.001218/0.001218, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001262/0.001262, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.275/1.275, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002024/0.002024, allocations: 274.9 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9722/0.9722, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 90 kB / 0.5948 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.145, allocations: 86.98 MB / 0.6797 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.00231/0.1474, allocations: 1.461 MB / 0.6812 GB, free: 15.51 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007753/0.1482, allocations: 0.4988 MB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.815e-05/0.1482, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 6.735e-05/0.1483, allocations: 8.547 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.937e-05/0.1484, allocations: 11.94 kB / 0.6817 GB, free: 14.99 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006099/0.149, allocations: 218.3 kB / 0.6819 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001836/0.1492, allocations: 147.7 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.923e-05/0.1492, allocations: 4.281 kB / 0.682 GB, free: 14.63 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.315e-05/0.1493, allocations: 59.84 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.976e-05/0.1494, allocations: 47.81 kB / 0.6821 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.1494, allocations: 8 kB / 0.6821 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002189/0.1496, allocations: 167.8 kB / 0.6823 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.965e-05/0.1497, allocations: 39.89 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.414e-05/0.1498, allocations: 51.78 kB / 0.6824 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.15, allocations: 231.4 kB / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.15, allocations: 0 / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.15, allocations: 0 / 0.6826 GB, free: 14.04 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.15, allocations: 0 / 0.6826 GB, free: 14.04 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.0004792/0.1505, allocations: 451 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1506, allocations: 12.03 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.832e-05/0.1506, allocations: 34.75 kB / 0.6831 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.225e-05/0.1507, allocations: 12.84 kB / 0.6831 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.1508, allocations: 216 kB / 0.6833 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.1509, allocations: 4.375 kB / 0.6833 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.1509, allocations: 16.38 kB / 0.6833 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.151, allocations: 75.95 kB / 0.6834 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.151, allocations: 3.938 kB / 0.6834 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.067e-05/0.1511, allocations: 4 kB / 0.6834 GB, free: 13.12 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.1511, allocations: 4 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.317e-05/0.1512, allocations: 47.84 kB / 0.6834 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002044/0.1514, allocations: 222.5 kB / 0.6837 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001115/0.1515, allocations: 81.25 kB / 0.6837 GB, free: 12.7 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.717e-05/0.1516, allocations: 53.75 kB / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.289e-05/0.1516, allocations: 11.98 kB / 0.6838 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001778/0.1518, allocations: 109 kB / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=14): time 1.292e-06/0.1518, allocations: 0 / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003137/0.1521, allocations: 189.3 kB / 0.6841 GB, free: 12.31 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.1521, allocations: 89.09 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.1523, allocations: 159.1 kB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.1523, allocations: 33.7 kB / 0.6843 GB, free: 12 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.1524, allocations: 100.5 kB / 0.6844 GB, free: 11.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.299e-05/0.1524, allocations: 39.53 kB / 0.6845 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.068e-05/0.1525, allocations: 49.69 kB / 0.6845 GB, free: 11.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/0.1526, allocations: 326.8 kB / 0.6848 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.511e-05/0.1527, allocations: 43.98 kB / 0.6849 GB, free: 11.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.1528, allocations: 197.7 kB / 0.6851 GB, free: 11.19 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001261/0.153, allocations: 101.6 kB / 0.6852 GB, free: 11.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.153, allocations: 4 kB / 0.6852 GB, free: 11.08 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002105/0.1532, allocations: 161.4 kB / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.1532, allocations: 4 kB / 0.6853 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.1533, allocations: 7.984 kB / 0.6853 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.1533, allocations: 0 / 0.6853 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.844e-05/0.1533, allocations: 11.94 kB / 0.6853 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.1534, allocations: 3.938 kB / 0.6853 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.1536, allocations: 79.75 kB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.067e-05/0.1536, allocations: 4 kB / 0.6854 GB, free: 10.8 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 0.0001019/0.1537, allocations: 131.1 kB / 0.6856 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.956e-05/0.1538, allocations: 11.84 kB / 0.6856 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.96e-05/0.1538, allocations: 20.7 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1538, allocations: 0 / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1538, allocations: 4 kB / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.836e-06/0.1538, allocations: 0 / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001308/0.154, allocations: 201.4 kB / 0.6858 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.154, allocations: 4 kB / 0.6858 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.593e-05/0.154, allocations: 15.92 kB / 0.6858 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.154, allocations: 0 / 0.6858 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.154, allocations: 0 / 0.6858 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.154, allocations: 4 kB / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.154, allocations: 0 / 0.6858 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.1543, allocations: 180.9 kB / 0.686 GB, free: 10.17 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.1543, allocations: 85.02 kB / 0.6861 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.1543, allocations: 7.938 kB / 0.6861 GB, free: 10.06 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.251e-05/0.1544, allocations: 7.984 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.1544, allocations: 4 kB / 0.6861 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.1544, allocations: 4 kB / 0.6861 GB, free: 10.04 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.938e-05/0.1545, allocations: 125.1 kB / 0.6862 GB, free: 9.922 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1545, allocations: 0 / 0.6862 GB, free: 9.922 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002785/0.1548, allocations: 71.98 kB / 0.6863 GB, free: 9.852 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.0005473/0.1553, allocations: 0.777 MB / 0.687 GB, free: 9.043 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002436/0.1556, allocations: 171.3 kB / 0.6872 GB, free: 8.863 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1556, allocations: 0 / 0.6872 GB, free: 8.863 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.037e-05/0.1557, allocations: 47.92 kB / 0.6872 GB, free: 8.816 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.1559, allocations: 8 kB / 0.6872 GB, free: 8.809 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.1574, allocations: 1.717 MB / 0.6889 GB, free: 6.996 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.1576, allocations: 0.7041 MB / 0.6896 GB, free: 6.266 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.508e-05/0.1577, allocations: 12.64 kB / 0.6896 GB, free: 6.254 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.844e-05/0.1577, allocations: 31.44 kB / 0.6896 GB, free: 6.223 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1577, allocations: 0 / 0.6896 GB, free: 6.223 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01288/0.1706, allocations: 3.828 MB / 0.6934 GB, free: 2.566 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.1708, allocations: 217.2 kB / 0.6936 GB, free: 2.312 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/1.951, allocations: 0 / 0.6936 GB, free: 2.312 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)