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: 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_latest_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_latest_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.001613/0.001613, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001756/0.001756, allocations: 193.2 kB / 17.31 MB, free: 5.613 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.415/1.415, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.555/2.555, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001953, allocations: 67.95 kB / 0.8773 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4229/0.4249, allocations: 153 MB / 1.027 GB, free: 2.109 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004139/0.429, allocations: 1.43 MB / 1.028 GB, free: 0.6758 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.4302, allocations: 498.2 kB / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.82e-05/0.4303, allocations: 0 / 1.029 GB, free: 192 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.283e-05/0.4305, allocations: 7.922 kB / 1.029 GB, free: 184 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 8.36e-05/0.4306, allocations: 11.88 kB / 1.029 GB, free: 172 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001114/0.4317, allocations: 242.9 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002921/0.432, allocations: 143.8 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 6.475e-05/0.4321, allocations: 4 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.4322, allocations: 51.91 kB / 1.029 GB, free: 15.74 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/0.4323, allocations: 43.81 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.4324, allocations: 12 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003778/0.4328, allocations: 167.8 kB / 1.029 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.4329, allocations: 35.89 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001293/0.433, allocations: 59.72 kB / 1.029 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0005165/0.4335, allocations: 239.4 kB / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 1.114e-05/0.4336, allocations: 0 / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.925e-06/0.4336, allocations: 3.938 kB / 1.03 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.297e-06/0.4336, allocations: 0 / 1.03 GB, free: 15.19 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.0008672/0.4345, allocations: 443 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.812e-05/0.4345, allocations: 8.031 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.4347, allocations: 12.84 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003201/0.435, allocations: 204.2 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.435, allocations: 8.312 kB / 1.03 GB, free: 14.44 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.786e-05/0.4351, allocations: 20.36 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.4353, allocations: 79.95 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.4353, allocations: 4.125 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.4353, allocations: 3.938 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4353, allocations: 0 / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.699e-05/0.4354, allocations: 35.98 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003103/0.4358, allocations: 234.4 kB / 1.031 GB, free: 14 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.4359, allocations: 89.12 kB / 1.031 GB, free: 13.9 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.538e-05/0.436, allocations: 57.84 kB / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.436, allocations: 0 / 1.031 GB, free: 13.84 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002931/0.4363, allocations: 113.1 kB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.4363, allocations: 3.938 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0003764/0.4367, allocations: 181.5 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.481e-05/0.4368, allocations: 89.05 kB / 1.031 GB, free: 13.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.4369, allocations: 159.3 kB / 1.031 GB, free: 13.25 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.437, allocations: 33.7 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.749e-05/0.4371, allocations: 108.5 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/0.4371, allocations: 35.53 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-05/0.4372, allocations: 49.7 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4374, allocations: 326.8 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.606e-05/0.4375, allocations: 47.92 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.4377, allocations: 196.9 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.4379, allocations: 93.64 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.4379, allocations: 0 / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002515/0.4381, allocations: 169.3 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.4382, allocations: 7.938 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.4382, allocations: 8 kB / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.4382, allocations: 0 / 1.032 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.4383, allocations: 11.98 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.4383, allocations: 0 / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002879/0.4386, allocations: 79.75 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.4387, allocations: 4 kB / 1.032 GB, free: 12.01 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.0001302/0.4388, allocations: 133.8 kB / 1.032 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.458e-05/0.4388, allocations: 15.78 kB / 1.033 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.4389, allocations: 12.72 kB / 1.033 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.4389, allocations: 8 kB / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4389, allocations: 0 / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.4389, allocations: 0 / 1.033 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001678/0.4391, allocations: 197.6 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.4391, allocations: 3.938 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.231e-05/0.4391, allocations: 8 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.4391, allocations: 0 / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.4391, allocations: 4 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.4392, allocations: 3.984 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.4392, allocations: 0 / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002454/0.4394, allocations: 193.6 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.005e-05/0.4395, allocations: 88.89 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.4395, allocations: 4 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.903e-05/0.4395, allocations: 4 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.4396, allocations: 7.984 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.525e-06/0.4396, allocations: 4 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 7.992e-05/0.4397, allocations: 113 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4397, allocations: 0 / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003652/0.4401, allocations: 71.98 kB / 1.033 GB, free: 11.05 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.0003178/0.4404, allocations: 167.3 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002879/0.4407, allocations: 163.3 kB / 1.034 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4407, allocations: 4 kB / 1.034 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.858e-05/0.4408, allocations: 39.92 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/0.441, allocations: 15.92 kB / 1.034 GB, free: 10.65 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004769/0.4415, allocations: 227.5 kB / 1.034 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.4418, allocations: 0.7119 MB / 1.034 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.448e-05/0.4419, allocations: 4.672 kB / 1.034 GB, free: 9.648 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.498e-05/0.4419, allocations: 11.44 kB / 1.034 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of SimCode: time 4.21e-07/0.4419, allocations: 0 / 1.034 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of Templates: time 0.006095/0.448, allocations: 2.512 MB / 1.037 GB, free: 7.16 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (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 & ./Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches