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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 102.7 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001483/0.001483, allocations: 188.6 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 225.6 MB / 247.8 MB, free: 3.746 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002215/0.002215, allocations: 285.4 kB / 303 MB, free: 3.621 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.966/0.966, allocations: 180.9 MB / 0.5261 GB, free: 2.785 MB / 382.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002595/0.002595, allocations: 91.84 kB / 0.7247 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.4338, allocations: 94.16 MB / 0.8167 GB, free: 7.184 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule): time 0.001945/0.4358, allocations: 1.431 MB / 0.8181 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0007012/0.4365, allocations: 0.4954 MB / 0.8186 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.945e-05/0.4365, allocations: 1.281 kB / 0.8186 GB, free: 5.848 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 6.1e-05/0.4366, allocations: 4.969 kB / 0.8186 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.704e-05/0.4366, allocations: 14.44 kB / 0.8186 GB, free: 5.836 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.4372, allocations: 237 kB / 0.8188 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000175/0.4374, allocations: 147.1 kB / 0.8189 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.439e-05/0.4374, allocations: 2.281 kB / 0.8189 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.73e-05/0.4375, allocations: 59.95 kB / 0.819 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 6.501e-05/0.4376, allocations: 36.47 kB / 0.819 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.497e-05/0.4376, allocations: 9.938 kB / 0.819 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.4378, allocations: 173.3 kB / 0.8192 GB, free: 5.586 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.989e-05/0.4379, allocations: 39.17 kB / 0.8193 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 6.724e-05/0.4379, allocations: 60.72 kB / 0.8193 GB, free: 5.527 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.4382, allocations: 234.8 kB / 0.8195 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.4382, allocations: 0.8438 kB / 0.8195 GB, free: 5.449 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.262e-06/0.4382, allocations: 3.938 kB / 0.8195 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.4382, allocations: 0.75 kB / 0.8195 GB, free: 5.445 MB / 0.5762 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.0004311/0.4386, allocations: 453.2 kB / 0.82 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.4387, allocations: 9.75 kB / 0.82 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.431e-05/0.4387, allocations: 39.98 kB / 0.82 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.4387, allocations: 20.5 kB / 0.82 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.4389, allocations: 206.4 kB / 0.8202 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.4389, allocations: 5.312 kB / 0.8202 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.648e-05/0.4389, allocations: 13.44 kB / 0.8203 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001196/0.4391, allocations: 79.5 kB / 0.8203 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.4391, allocations: 3.938 kB / 0.8203 GB, free: 4.684 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.667e-06/0.4391, allocations: 5.219 kB / 0.8203 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.4391, allocations: 4.656 kB / 0.8203 GB, free: 4.68 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.814e-05/0.4391, allocations: 33.47 kB / 0.8204 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001611/0.4393, allocations: 230.3 kB / 0.8206 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 8.916e-05/0.4394, allocations: 78.55 kB / 0.8207 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.799e-05/0.4395, allocations: 48.08 kB / 0.8207 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.4395, allocations: 1.469 kB / 0.8207 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.4396, allocations: 118.7 kB / 0.8208 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=14): time 1.102e-06/0.4397, allocations: 0 / 0.8208 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of matching and sorting (n=14): time 0.0002896/0.4399, allocations: 185.5 kB / 0.821 GB, free: 4.195 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.44, allocations: 93.2 kB / 0.8211 GB, free: 4.094 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.767e-05/0.4401, allocations: 148.5 kB / 0.8212 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.4401, allocations: 37.58 kB / 0.8213 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.745e-05/0.4401, allocations: 102.6 kB / 0.8214 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 3.229e-05/0.4401, allocations: 42.91 kB / 0.8214 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.314e-05/0.4402, allocations: 50.84 kB / 0.8215 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.148e-05/0.4403, allocations: 322.2 kB / 0.8218 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.856e-05/0.4403, allocations: 41.72 kB / 0.8218 GB, free: 3.453 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000161/0.4405, allocations: 199.3 kB / 0.822 GB, free: 3.281 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.4406, allocations: 95.5 kB / 0.8221 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.4406, allocations: 0 / 0.8221 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001745/0.4408, allocations: 166.6 kB / 0.8222 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.024e-05/0.4408, allocations: 5.625 kB / 0.8223 GB, free: 3.152 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.64e-05/0.4408, allocations: 7.359 kB / 0.8223 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.4408, allocations: 3.531 kB / 0.8223 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.098e-05/0.4409, allocations: 7.391 kB / 0.8223 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.4409, allocations: 7.984 kB / 0.8223 GB, free: 3.145 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.4411, allocations: 80.17 kB / 0.8224 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.817e-06/0.4411, allocations: 3.75 kB / 0.8224 GB, free: 3.125 MB / 0.5762 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 7.298e-05/0.4412, allocations: 137.8 kB / 0.8225 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.643e-05/0.4412, allocations: 12.91 kB / 0.8225 GB, free: 2.988 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.384e-05/0.4412, allocations: 13.73 kB / 0.8225 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.4412, allocations: 3.688 kB / 0.8225 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.4412, allocations: 0 / 0.8225 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.4412, allocations: 4.703 kB / 0.8225 GB, free: 2.973 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.305e-05/0.4413, allocations: 200.9 kB / 0.8227 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4413, allocations: 4 kB / 0.8227 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.786e-05/0.4414, allocations: 7.328 kB / 0.8227 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.4414, allocations: 6.875 kB / 0.8227 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.4414, allocations: 4.516 kB / 0.8227 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4414, allocations: 2.906 kB / 0.8227 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4414, allocations: 0.6562 kB / 0.8227 GB, free: 2.746 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.4415, allocations: 184.4 kB / 0.8229 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.187e-05/0.4416, allocations: 90 kB / 0.823 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.4416, allocations: 2.422 kB / 0.823 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.695e-05/0.4416, allocations: 5.234 kB / 0.823 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.432e-05/0.4416, allocations: 9.547 kB / 0.823 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.4417, allocations: 3.156 kB / 0.823 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 4.89e-05/0.4417, allocations: 110.9 kB / 0.8231 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.4417, allocations: 0 / 0.8231 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002603/0.442, allocations: 75.44 kB / 0.8232 GB, free: 2.43 MB / 0.5762 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.0003937/0.4424, allocations: 0.7844 MB / 0.824 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001933/0.4425, allocations: 161.5 kB / 0.8241 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4425, allocations: 0 / 0.8241 GB, free: 1.676 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 5.35e-05/0.4426, allocations: 44.81 kB / 0.8242 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.4427, allocations: 9.359 kB / 0.8242 GB, free: 1.656 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.444, allocations: 1.706 MB / 0.8258 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/0.4443, allocations: 0.7014 MB / 0.8265 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 3.813e-05/0.4443, allocations: 11.64 kB / 0.8265 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.4443, allocations: 31.19 kB / 0.8266 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of SimCode: time 3.01e-07/0.4443, allocations: 0 / 0.8266 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/0.4706, allocations: 3.995 MB / 0.8305 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.249/7.719, allocations: 11.69 kB / 0.8305 GB, free: 15.01 MB / 0.5919 GB " [Timeout remaining time 652] (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 --stepSize=518.4 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_SetPoints_Examples_OccupancySchedule.fmu > BuildingSystems_BuildingSystems.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.12945835897699] Failed to read output from testmodel.py, exit status != 0: 7.791856512892991 7.804150693 7.36338988 Calling exit ...