Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 81.95 kB / 20.68 MB, free: 3.816 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 185 kB / 24.09 MB, free: 416 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.047/1.047, allocations: 177.1 MB / 204.5 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.828/1.828, allocations: 377.9 MB / 0.624 GB, free: 8.395 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.565e-06/2.565e-06, allocations: 0 / 0.812 GB, free: 320 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.407e-05/3.664e-05, allocations: 7.156 kB / 0.812 GB, free: 312 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003209/0.003246, allocations: 1.471 MB / 0.8134 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.0006848/0.003931, allocations: 462.1 kB / 0.8138 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.13e-05/0.003972, allocations: 5.594 kB / 0.8138 GB, free: 14.39 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 8.614e-05/0.004058, allocations: 7.922 kB / 0.8139 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 6.595e-05/0.004124, allocations: 16.52 kB / 0.8139 GB, free: 14.36 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006065/0.004731, allocations: 244.8 kB / 0.8141 GB, free: 14.12 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0001922/0.004923, allocations: 139.8 kB / 0.8142 GB, free: 13.99 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 4.277e-05/0.004966, allocations: 11.98 kB / 0.8142 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 8.734e-05/0.005053, allocations: 80.56 kB / 0.8143 GB, free: 13.9 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 6.619e-05/0.005119, allocations: 38.3 kB / 0.8144 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.005143, allocations: 8 kB / 0.8144 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.005358, allocations: 191.6 kB / 0.8146 GB, free: 13.67 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.005407, allocations: 35.91 kB / 0.8146 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 4.177e-05/0.005449, allocations: 35.91 kB / 0.8146 GB, free: 13.6 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.005707, allocations: 251.4 kB / 0.8149 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.00571, allocations: 0.9375 kB / 0.8149 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.292e-06/0.005711, allocations: 0 / 0.8149 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.005716, allocations: 1 kB / 0.8149 GB, free: 13.35 MB / 0.7292 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.0006448/0.006361, allocations: 483.8 kB / 0.8153 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.006403, allocations: 13.36 kB / 0.8153 GB, free: 12.83 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.401e-05/0.006437, allocations: 16.89 kB / 0.8154 GB, free: 12.81 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.006571, allocations: 150.3 kB / 0.8155 GB, free: 12.64 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.045e-05/0.006582, allocations: 8.375 kB / 0.8155 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.006599, allocations: 14.25 kB / 0.8155 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.634e-05/0.006695, allocations: 69.59 kB / 0.8156 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.006705, allocations: 192 / 0.8156 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.006712, allocations: 384 / 0.8156 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.006721, allocations: 384 / 0.8156 GB, free: 12.54 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.308e-05/0.006754, allocations: 29.55 kB / 0.8156 GB, free: 12.51 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.006911, allocations: 152.8 kB / 0.8158 GB, free: 12.33 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 6.905e-05/0.00698, allocations: 74.23 kB / 0.8158 GB, free: 12.23 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.575e-05/0.007015, allocations: 39.42 kB / 0.8159 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.672e-06/0.007022, allocations: 0.9062 kB / 0.8159 GB, free: 12.19 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001199/0.007142, allocations: 96.45 kB / 0.816 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=14): time 1.784e-06/0.007144, allocations: 0.5312 kB / 0.816 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14): time 0.000241/0.007385, allocations: 114.1 kB / 0.8161 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.007449, allocations: 89.56 kB / 0.8162 GB, free: 11.85 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.007581, allocations: 200.2 kB / 0.8163 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.00761, allocations: 42.88 kB / 0.8164 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 8.26e-05/0.007693, allocations: 147.2 kB / 0.8165 GB, free: 11.44 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 5.91e-05/0.007752, allocations: 43.7 kB / 0.8166 GB, free: 11.39 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.082e-05/0.007813, allocations: 51.88 kB / 0.8166 GB, free: 11.34 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0002107/0.008024, allocations: 0.5014 MB / 0.8171 GB, free: 10.82 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.125e-05/0.008045, allocations: 15.98 kB / 0.8171 GB, free: 10.81 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003343/0.008379, allocations: 0.5874 MB / 0.8177 GB, free: 10.05 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.322e-05/0.008442, allocations: 63.28 kB / 0.8178 GB, free: 9.977 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.008445, allocations: 1.156 kB / 0.8178 GB, free: 9.977 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001258/0.008571, allocations: 121.4 kB / 0.8179 GB, free: 9.852 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.008586, allocations: 8.609 kB / 0.8179 GB, free: 9.844 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.008605, allocations: 5 kB / 0.8179 GB, free: 9.84 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.00862, allocations: 0 / 0.8179 GB, free: 9.84 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.745e-05/0.008697, allocations: 16 kB / 0.8179 GB, free: 9.824 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.008703, allocations: 4.781 kB / 0.8179 GB, free: 9.82 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.008801, allocations: 40.7 kB / 0.8179 GB, free: 9.781 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.13e-06/0.008806, allocations: 1.281 kB / 0.8179 GB, free: 9.781 MB / 0.7292 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 9.744e-05/0.008904, allocations: 177.2 kB / 0.8181 GB, free: 9.598 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.598e-05/0.00892, allocations: 16.73 kB / 0.8181 GB, free: 9.582 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.636e-05/0.008946, allocations: 16.78 kB / 0.8181 GB, free: 9.566 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.008948, allocations: 1.125 kB / 0.8181 GB, free: 9.566 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.008953, allocations: 3.938 kB / 0.8182 GB, free: 9.562 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.008956, allocations: 4 kB / 0.8182 GB, free: 9.559 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.181e-05/0.009048, allocations: 122.6 kB / 0.8183 GB, free: 9.414 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.00905, allocations: 0 / 0.8183 GB, free: 9.414 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.18e-05/0.009071, allocations: 7.984 kB / 0.8183 GB, free: 9.406 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.009074, allocations: 4 kB / 0.8183 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.00908, allocations: 1.438 kB / 0.8183 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.009081, allocations: 0 / 0.8183 GB, free: 9.402 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.009089, allocations: 4 kB / 0.8183 GB, free: 9.398 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004922/0.009582, allocations: 154.7 kB / 0.8184 GB, free: 9.223 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.058e-05/0.009592, allocations: 11.89 kB / 0.8184 GB, free: 9.211 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.515e-05/0.009607, allocations: 0 / 0.8184 GB, free: 9.211 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.611e-05/0.009633, allocations: 7.984 kB / 0.8185 GB, free: 9.203 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.757e-05/0.009671, allocations: 8 kB / 0.8185 GB, free: 9.195 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.009677, allocations: 3.984 kB / 0.8185 GB, free: 9.191 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.857e-05/0.009735, allocations: 143.1 kB / 0.8186 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5e-08/0.009735, allocations: 0 / 0.8186 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001916/0.009927, allocations: 80.36 kB / 0.8187 GB, free: 8.973 MB / 0.7292 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.0002078/0.01013, allocations: 172.4 kB / 0.8188 GB, free: 8.797 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00016/0.01029, allocations: 119.1 kB / 0.819 GB, free: 8.664 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.0103, allocations: 0.9688 kB / 0.819 GB, free: 8.664 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 3.276e-05/0.01033, allocations: 39.58 kB / 0.819 GB, free: 8.621 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.01046, allocations: 8.562 kB / 0.819 GB, free: 8.613 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003515/0.01081, allocations: 214.6 kB / 0.8192 GB, free: 8.375 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.028e-05/0.01087, allocations: 82 kB / 0.8193 GB, free: 8.277 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.282e-05/0.0109, allocations: 4.734 kB / 0.8193 GB, free: 8.27 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.916e-05/0.01099, allocations: 98.17 kB / 0.8194 GB, free: 8.172 MB / 0.7292 GB Notification: Performance of SimCode: time 1.172e-06/0.01099, allocations: 0 / 0.8194 GB, free: 8.172 MB / 0.7292 GB Notification: Performance of Templates: time 0.004921/0.01591, allocations: 2.907 MB / 0.8222 GB, free: 5.348 MB / 0.7292 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.225111614912748]