Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_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.001243/0.001243, 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.001199/0.001199, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.39/2.39, allocations: 461.8 MB / 0.7342 GB, free: 14.17 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 64.86 kB / 0.8985 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2367, allocations: 157.4 MB / 1.052 GB, free: 8.203 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002611/0.2394, allocations: 1.478 MB / 1.054 GB, free: 6.711 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008662/0.2402, allocations: 0.5257 MB / 1.054 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.2403, allocations: 0 / 1.054 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 6.368e-05/0.2404, allocations: 0 / 1.054 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.167e-05/0.2404, allocations: 15.91 kB / 1.054 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.2411, allocations: 194.1 kB / 1.054 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.2413, allocations: 147.7 kB / 1.054 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.2413, allocations: 4 kB / 1.054 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.92e-05/0.2414, allocations: 47.91 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.842e-05/0.2415, allocations: 43.83 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.171e-05/0.2416, allocations: 4 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002747/0.2418, allocations: 163.8 kB / 1.055 GB, free: 5.578 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.794e-05/0.2419, allocations: 35.84 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.44e-05/0.242, allocations: 51.72 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003343/0.2423, allocations: 227.7 kB / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2423, allocations: 0 / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.52e-07/0.2423, allocations: 0 / 1.055 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.2424, allocations: 0 / 1.055 GB, free: 5.27 MB / 0.8106 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.0005638/0.2429, allocations: 443.1 kB / 1.055 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.243, allocations: 11.97 kB / 1.055 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.604e-05/0.243, allocations: 46.73 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.389e-05/0.2431, allocations: 12.84 kB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001932/0.2433, allocations: 197.9 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.2433, allocations: 8.375 kB / 1.056 GB, free: 4.469 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.799e-05/0.2433, allocations: 12.38 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.2435, allocations: 79.89 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.2435, allocations: 3.938 kB / 1.056 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.334e-05/0.2435, allocations: 11.98 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.2435, allocations: 4 kB / 1.056 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.45e-05/0.2436, allocations: 35.98 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002316/0.2439, allocations: 234.4 kB / 1.056 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.244, allocations: 81.19 kB / 1.056 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.145e-05/0.244, allocations: 49.81 kB / 1.056 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.2441, allocations: 11.94 kB / 1.056 GB, free: 3.867 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.2443, allocations: 116.9 kB / 1.056 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.2443, allocations: 0 / 1.056 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003222/0.2446, allocations: 193.9 kB / 1.057 GB, free: 3.539 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.2447, allocations: 81.11 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.2448, allocations: 158.4 kB / 1.057 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.2448, allocations: 37.7 kB / 1.057 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.2449, allocations: 100.5 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.286e-05/0.2449, allocations: 43.48 kB / 1.057 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.55e-05/0.245, allocations: 49.69 kB / 1.057 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.2451, allocations: 322.8 kB / 1.057 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.595e-05/0.2452, allocations: 43.98 kB / 1.057 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001985/0.2454, allocations: 201.6 kB / 1.058 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001288/0.2455, allocations: 97.64 kB / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2455, allocations: 0 / 1.058 GB, free: 2.312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002322/0.2458, allocations: 173.2 kB / 1.058 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.2458, allocations: 4 kB / 1.058 GB, free: 2.133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.2458, allocations: 4 kB / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.2458, allocations: 0 / 1.058 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.979e-05/0.2459, allocations: 8 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.2459, allocations: 0 / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.2462, allocations: 82.38 kB / 1.058 GB, free: 2.043 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.2462, allocations: 11.98 kB / 1.058 GB, free: 2.031 MB / 0.8106 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.0001086/0.2463, allocations: 129.8 kB / 1.058 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.2463, allocations: 11.84 kB / 1.058 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.003e-05/0.2464, allocations: 16.7 kB / 1.058 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2464, allocations: 4 kB / 1.058 GB, free: 1.863 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.2464, allocations: 4 kB / 1.058 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2464, allocations: 0 / 1.058 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.2466, allocations: 193.5 kB / 1.058 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2466, allocations: 0 / 1.058 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.427e-05/0.2466, allocations: 8 kB / 1.058 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2466, allocations: 0 / 1.058 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2466, allocations: 4 kB / 1.058 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2466, allocations: 4 kB / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2466, allocations: 0 / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.2469, allocations: 193.7 kB / 1.058 GB, free: 1.395 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.2469, allocations: 92.94 kB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.2469, allocations: 4 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.874e-05/0.247, allocations: 0 / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.247, allocations: 15.98 kB / 1.059 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.886e-06/0.247, allocations: 4 kB / 1.059 GB, free: 1.262 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.733e-05/0.2471, allocations: 116.7 kB / 1.059 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2471, allocations: 4 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002886/0.2474, allocations: 64 kB / 1.059 GB, free: 1.082 MB / 0.8106 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.0005866/0.248, allocations: 0.7778 MB / 1.059 GB, free: 280 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.2482, allocations: 163.3 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2483, allocations: 4 kB / 1.06 GB, free: 100 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.764e-05/0.2483, allocations: 47.92 kB / 1.06 GB, free: 52 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.2485, allocations: 8 kB / 1.06 GB, free: 44 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.25, allocations: 1.718 MB / 1.061 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.2503, allocations: 0.7121 MB / 1.062 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.74e-05/0.2503, allocations: 12.92 kB / 1.062 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.57e-05/0.2503, allocations: 27.42 kB / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.2504, allocations: 0 / 1.062 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2791/0.5295, allocations: 3.716 MB / 1.066 GB, free: 9.867 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.5297, allocations: 208.8 kB / 1.066 GB, free: 9.613 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.693/2.222, allocations: 5 kB / 1.066 GB, free: 9.609 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1)