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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001041/0.00104, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008893/0.008893, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.541/1.541, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.975/2.975, allocations: 462.7 MB / 0.7364 GB, free: 316 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004053, allocations: 9.281 kB / 0.9028 GB, free: 36.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4511/0.4515, allocations: 159.6 MB / 1.059 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002209/0.4538, allocations: 1.135 MB / 1.06 GB, free: 4.418 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001259/0.4551, allocations: 0.5101 MB / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.626e-05/0.4552, allocations: 0 / 1.06 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.4553, allocations: 15.92 kB / 1.06 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.941e-05/0.4554, allocations: 3.938 kB / 1.06 GB, free: 3.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009462/0.4563, allocations: 203.6 kB / 1.06 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002919/0.4566, allocations: 135.8 kB / 1.061 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.529e-05/0.4567, allocations: 7.938 kB / 1.061 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.4568, allocations: 47.91 kB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.457, allocations: 47.81 kB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.457, allocations: 8 kB / 1.061 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000401/0.4574, allocations: 163.8 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.72e-05/0.4575, allocations: 27.91 kB / 1.061 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.4576, allocations: 73.47 kB / 1.061 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004577/0.4581, allocations: 227.7 kB / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4581, allocations: 0 / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.494e-06/0.4581, allocations: 0 / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.092e-05/0.4581, allocations: 0 / 1.061 GB, free: 2.957 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.000763/0.4589, allocations: 432.2 kB / 1.062 GB, free: 2.484 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/0.459, allocations: 8.031 kB / 1.062 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.531e-05/0.4591, allocations: 12.84 kB / 1.062 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003096/0.4594, allocations: 212 kB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.4594, allocations: 12.38 kB / 1.062 GB, free: 2.207 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-05/0.4595, allocations: 8.375 kB / 1.062 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.4597, allocations: 79.95 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.4597, allocations: 4.188 kB / 1.062 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.4597, allocations: 3.938 kB / 1.062 GB, free: 2.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.834e-06/0.4598, allocations: 3.938 kB / 1.062 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.4599, allocations: 43.91 kB / 1.062 GB, free: 2.055 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003639/0.4602, allocations: 230.5 kB / 1.062 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001561/0.4604, allocations: 81.17 kB / 1.062 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.4605, allocations: 57.81 kB / 1.062 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.4605, allocations: 3.984 kB / 1.062 GB, free: 1.613 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002568/0.4608, allocations: 112.3 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.4608, allocations: 0 / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0004671/0.4613, allocations: 193.3 kB / 1.063 GB, free: 1.293 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.944e-05/0.4614, allocations: 93.09 kB / 1.063 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.4616, allocations: 151.4 kB / 1.063 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/0.4616, allocations: 33.7 kB / 1.063 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.71e-05/0.4617, allocations: 104.5 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.4618, allocations: 35.55 kB / 1.063 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/0.4618, allocations: 25.7 kB / 1.063 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.462, allocations: 326.8 kB / 1.063 GB, free: 496 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.323e-05/0.4621, allocations: 35.98 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.4624, allocations: 205.8 kB / 1.064 GB, free: 200 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.4625, allocations: 105.5 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4626, allocations: 0 / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003094/0.4629, allocations: 157.4 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.4629, allocations: 8 kB / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.4629, allocations: 0 / 1.064 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.463, allocations: 4 kB / 1.064 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.784e-05/0.4631, allocations: 15.88 kB / 1.064 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.4631, allocations: 4 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.4634, allocations: 87.73 kB / 1.064 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.4635, allocations: 12 kB / 1.064 GB, free: 15.8 MB / 0.8262 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.0001525/0.4636, allocations: 131.4 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.4637, allocations: 11.84 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.4637, allocations: 16.7 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.4637, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.4637, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.4637, allocations: 3.938 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002038/0.464, allocations: 193.5 kB / 1.064 GB, free: 15.39 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.464, allocations: 7.938 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.398e-05/0.464, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.464, allocations: 4 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.464, allocations: 4 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4641, allocations: 0 / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.4641, allocations: 4 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002593/0.4643, allocations: 177.8 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-05/0.4644, allocations: 104.8 kB / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.4644, allocations: 0 / 1.065 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.403e-05/0.4645, allocations: 7.938 kB / 1.065 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.4646, allocations: 11.98 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.4646, allocations: 4 kB / 1.065 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.503e-05/0.4647, allocations: 112.8 kB / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.1e-07/0.4647, allocations: 0 / 1.065 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003849/0.4651, allocations: 68 kB / 1.065 GB, free: 14.85 MB / 0.8262 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.0003957/0.4655, allocations: 165.2 kB / 1.065 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003269/0.4658, allocations: 167.3 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4658, allocations: 0 / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.28e-05/0.4659, allocations: 43.98 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002/0.4661, allocations: 15.88 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005812/0.4667, allocations: 250.5 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.4671, allocations: 0.7043 MB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.992e-05/0.4672, allocations: 8.938 kB / 1.066 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.957e-05/0.4672, allocations: 15.44 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.4672, allocations: 4 kB / 1.066 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of Templates: time 0.006593/0.4738, allocations: 2.393 MB / 1.068 GB, free: 11.04 MB / 0.8262 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches