Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule") translateModel(Buildings.Controls.SetPoints.Examples.OccupancySchedule,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|occSchDay.tNexNonOcc|occSchWee.tNexNonOcc|occSchDay.occupied|occSchWee.occupied",fileNamePrefix="Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, 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.001238/0.001238, allocations: 189.1 kB / 16.25 MB, free: 6.633 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.465/1.465, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.859/2.859, allocations: 437 MB / 0.71 GB, free: 5.266 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 59.89 kB / 0.8687 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9597/0.9613, allocations: 151.6 MB / 1.017 GB, free: 2.738 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002912/0.9643, allocations: 1.48 MB / 1.018 GB, free: 1.25 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009841/0.9653, allocations: 0.4906 MB / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.201e-05/0.9654, allocations: 0 / 1.019 GB, free: 0.7578 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.9655, allocations: 3.984 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.969e-05/0.9656, allocations: 7.938 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008499/0.9664, allocations: 219.1 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002496/0.9667, allocations: 147.7 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.361e-05/0.9668, allocations: 11.97 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.624e-05/0.9669, allocations: 51.91 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.88e-05/0.967, allocations: 43.83 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.967, allocations: 8 kB / 1.019 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002959/0.9673, allocations: 171.8 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 8.727e-05/0.9674, allocations: 47.77 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.971e-05/0.9675, allocations: 59.72 kB / 1.019 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.9679, allocations: 225.5 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.9679, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.19e-06/0.9679, allocations: 0 / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.505e-06/0.9679, allocations: 3.938 kB / 1.02 GB, free: 15.78 MB / 0.7794 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.000707/0.9686, allocations: 447 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.9687, allocations: 8.031 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.543e-05/0.9688, allocations: 16.75 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002523/0.969, allocations: 206.2 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.9691, allocations: 12.38 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.866e-05/0.9691, allocations: 12.38 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.9693, allocations: 83.89 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.9693, allocations: 192 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.9693, allocations: 3.938 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.9693, allocations: 0 / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.153e-05/0.9694, allocations: 39.97 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003245/0.9698, allocations: 230.5 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001365/0.9699, allocations: 85.17 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.429e-05/0.97, allocations: 53.81 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.97, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000264/0.9703, allocations: 117 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.9703, allocations: 0 / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0003716/0.9707, allocations: 185.4 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.716e-05/0.9708, allocations: 89.09 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.9709, allocations: 153.7 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.971, allocations: 33.7 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.971, allocations: 100.5 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.451e-05/0.9711, allocations: 39.53 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/0.9712, allocations: 49.7 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.9713, allocations: 330.8 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.913e-05/0.9714, allocations: 39.98 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002412/0.9717, allocations: 202.3 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.9718, allocations: 101.5 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.9718, allocations: 0 / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000237/0.9721, allocations: 165.4 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.9721, allocations: 4 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.497e-05/0.9721, allocations: 4 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.9721, allocations: 7.938 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.547e-05/0.9722, allocations: 11.98 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.9723, allocations: 0 / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.9725, allocations: 71.91 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.9726, allocations: 7.938 kB / 1.022 GB, free: 12.61 MB / 0.7794 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.0001367/0.9727, allocations: 138.2 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.33e-05/0.9727, allocations: 19.83 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.438e-05/0.9728, allocations: 12.72 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.9728, allocations: 4 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.9728, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.9728, allocations: 3.984 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.973, allocations: 193.6 kB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.973, allocations: 11.94 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-05/0.973, allocations: 7.984 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.9731, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.9731, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.9731, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.9731, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000249/0.9733, allocations: 190.3 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.255e-05/0.9734, allocations: 92.95 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.9734, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.682e-05/0.9735, allocations: 11.98 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.185e-05/0.9735, allocations: 0 / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.266e-06/0.9736, allocations: 4 kB / 1.023 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.305e-05/0.9737, allocations: 114.5 kB / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9737, allocations: 0 / 1.023 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003127/0.974, allocations: 75.92 kB / 1.023 GB, free: 11.64 MB / 0.7794 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.0002967/0.9743, allocations: 174.3 kB / 1.023 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003244/0.9746, allocations: 167.5 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.9746, allocations: 0 / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.9747, allocations: 47.92 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001929/0.9749, allocations: 3.938 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006067/0.9756, allocations: 247.7 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.976, allocations: 0.708 MB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.415e-05/0.9761, allocations: 4.672 kB / 1.025 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.966e-05/0.9761, allocations: 11.44 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.9761, allocations: 4 kB / 1.025 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of Templates: time 0.00685/0.983, allocations: 2.488 MB / 1.027 GB, free: 7.754 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches