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.009466/0.009466, allocations: 102 kB / 15.73 MB, free: 6.062 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.001679/0.001679, allocations: 192 kB / 16.67 MB, free: 5.973 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.534/2.534, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 71.83 kB / 1.018 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.412/1.414, allocations: 151.6 MB / 1.167 GB, free: 3.832 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002921/1.417, allocations: 1.421 MB / 1.168 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009833/1.418, allocations: 0.489 MB / 1.168 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.525e-05/1.418, allocations: 4 kB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/1.418, allocations: 7.938 kB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.39e-05/1.418, allocations: 15.84 kB / 1.168 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008489/1.419, allocations: 226.6 kB / 1.169 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002793/1.42, allocations: 147.7 kB / 1.169 GB, free: 1.52 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.941e-05/1.42, allocations: 4 kB / 1.169 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 7.91e-05/1.42, allocations: 59.89 kB / 1.169 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.219e-05/1.42, allocations: 43.78 kB / 1.169 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.55e-05/1.42, allocations: 12 kB / 1.169 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002844/1.42, allocations: 167.8 kB / 1.169 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.986e-05/1.42, allocations: 39.89 kB / 1.169 GB, free: 1.199 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 9.092e-05/1.42, allocations: 51.78 kB / 1.169 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003753/1.421, allocations: 231.8 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/1.421, allocations: 0 / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.603e-06/1.421, allocations: 3.938 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 8.195e-06/1.421, allocations: 0 / 1.169 GB, free: 0.9219 MB / 0.8887 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.0006914/1.421, allocations: 458.7 kB / 1.17 GB, free: 432 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/1.422, allocations: 12.92 kB / 1.17 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.459e-05/1.422, allocations: 16.88 kB / 1.17 GB, free: 404 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002527/1.422, allocations: 206.4 kB / 1.17 GB, free: 160 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/1.422, allocations: 8.375 kB / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/1.422, allocations: 8.375 kB / 1.17 GB, free: 144 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/1.422, allocations: 91.83 kB / 1.17 GB, free: 40 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/1.422, allocations: 4.188 kB / 1.17 GB, free: 36 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/1.422, allocations: 7.922 kB / 1.17 GB, free: 28 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/1.422, allocations: 4 kB / 1.17 GB, free: 24 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/1.422, allocations: 35.97 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002902/1.423, allocations: 238.4 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/1.423, allocations: 77.19 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.763e-05/1.423, allocations: 57.81 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.387e-05/1.423, allocations: 0 / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/1.423, allocations: 117 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=14): time 2.715e-06/1.423, allocations: 0 / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14): time 0.0004128/1.423, allocations: 193.4 kB / 1.171 GB, free: 15.22 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/1.424, allocations: 89.09 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/1.424, allocations: 149.8 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/1.424, allocations: 37.7 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.563e-05/1.424, allocations: 100.5 kB / 1.171 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 6.94e-05/1.424, allocations: 31.75 kB / 1.171 GB, free: 14.78 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.695e-05/1.424, allocations: 53.69 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001502/1.424, allocations: 322.8 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.237e-05/1.424, allocations: 39.98 kB / 1.172 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/1.424, allocations: 196.9 kB / 1.172 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/1.425, allocations: 101.6 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.425, allocations: 0 / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002427/1.425, allocations: 169.4 kB / 1.172 GB, free: 13.83 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/1.425, allocations: 7.984 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.891e-05/1.425, allocations: 4 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.256e-05/1.425, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.563e-05/1.425, allocations: 15.88 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/1.425, allocations: 0 / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/1.425, allocations: 75.8 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.206e-05/1.425, allocations: 4 kB / 1.172 GB, free: 13.73 MB / 0.9044 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.0001491/1.426, allocations: 141.7 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.283e-05/1.426, allocations: 15.89 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.702e-05/1.426, allocations: 20.7 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/1.426, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.426, allocations: 0 / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/1.426, allocations: 4 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/1.426, allocations: 189.6 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/1.426, allocations: 3.938 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.232e-05/1.426, allocations: 4 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/1.426, allocations: 4 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.106e-05/1.426, allocations: 96 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/1.426, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.426, allocations: 8 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002608/1.426, allocations: 179.1 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-05/1.426, allocations: 96.89 kB / 1.173 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/1.426, allocations: 11.98 kB / 1.173 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.99e-05/1.426, allocations: 4 kB / 1.173 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.558e-05/1.426, allocations: 4 kB / 1.173 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/1.426, allocations: 7.984 kB / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.079e-05/1.427, allocations: 113.5 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.427, allocations: 4 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003402/1.427, allocations: 71.86 kB / 1.173 GB, free: 12.77 MB / 0.9044 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.0003091/1.427, allocations: 167 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003336/1.428, allocations: 164.2 kB / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.428, allocations: 0 / 1.173 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 7.782e-05/1.428, allocations: 47.92 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000192/1.428, allocations: 15.94 kB / 1.173 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005142/1.428, allocations: 227.2 kB / 1.174 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003522/1.429, allocations: 0.7002 MB / 1.174 GB, free: 11.38 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.738e-05/1.429, allocations: 12.66 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/1.429, allocations: 11.44 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/1.429, allocations: 4 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of Templates: time 0.005716/1.435, allocations: 2.526 MB / 1.177 GB, free: 8.855 MB / 0.9044 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