Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001392/0.001392, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001457/0.001457, allocations: 192.3 kB / 16.25 MB, free: 6.152 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.466/1.466, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 3.035/3.035, allocations: 469.8 MB / 0.742 GB, free: 7.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001992, allocations: 65.98 kB / 0.908 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4301/0.4322, allocations: 159.1 MB / 1.063 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003208/0.4354, allocations: 1.485 MB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001049/0.4365, allocations: 0.4944 MB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.091e-05/0.4366, allocations: 8 kB / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 8.682e-05/0.4367, allocations: 0 / 1.065 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.724e-05/0.4368, allocations: 15.91 kB / 1.065 GB, free: 12.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008209/0.4376, allocations: 202.5 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002542/0.4378, allocations: 151.7 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.986e-05/0.4379, allocations: 4 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.583e-05/0.438, allocations: 55.89 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.677e-05/0.4381, allocations: 43.84 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.101e-05/0.4381, allocations: 8 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002961/0.4384, allocations: 175.8 kB / 1.066 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.47e-05/0.4385, allocations: 39.89 kB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.96e-05/0.4386, allocations: 51.73 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.439, allocations: 239.7 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.439, allocations: 0 / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.254e-06/0.439, allocations: 0 / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.134e-05/0.439, allocations: 0 / 1.066 GB, free: 11.64 MB / 0.8262 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.0007239/0.4398, allocations: 443 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.4398, allocations: 8.031 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.24e-05/0.4399, allocations: 12.84 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002707/0.4402, allocations: 209.8 kB / 1.067 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.4402, allocations: 12.38 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.4402, allocations: 8.375 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001938/0.4404, allocations: 83.89 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.4404, allocations: 4.188 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.4405, allocations: 3.938 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.4405, allocations: 0 / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.008e-05/0.4406, allocations: 43.95 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003152/0.4409, allocations: 234.5 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001307/0.441, allocations: 77.19 kB / 1.067 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.891e-05/0.4411, allocations: 57.81 kB / 1.067 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.4412, allocations: 0 / 1.067 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.4415, allocations: 125.9 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.4415, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.000393/0.4419, allocations: 185.4 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.131e-05/0.442, allocations: 92.98 kB / 1.068 GB, free: 9.855 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.4421, allocations: 151.9 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.4421, allocations: 33.7 kB / 1.068 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.4423, allocations: 108.5 kB / 1.068 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.063e-05/0.4423, allocations: 27.56 kB / 1.068 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.4424, allocations: 57.69 kB / 1.068 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.4426, allocations: 318.8 kB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.274e-05/0.4427, allocations: 43.98 kB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002519/0.4429, allocations: 195.4 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.4431, allocations: 105.5 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4431, allocations: 0 / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002534/0.4433, allocations: 165.3 kB / 1.069 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.4434, allocations: 7.984 kB / 1.069 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.4434, allocations: 4 kB / 1.069 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.4434, allocations: 0 / 1.069 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.4435, allocations: 8 kB / 1.069 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.4435, allocations: 0.625 kB / 1.069 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.4438, allocations: 83.75 kB / 1.069 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.4439, allocations: 4 kB / 1.069 GB, free: 8.465 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.0001556/0.444, allocations: 137.7 kB / 1.069 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.156e-05/0.444, allocations: 11.84 kB / 1.069 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.833e-05/0.4441, allocations: 24.7 kB / 1.069 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.4441, allocations: 4 kB / 1.069 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.4441, allocations: 0 / 1.069 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.4441, allocations: 0 / 1.069 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.4443, allocations: 185.6 kB / 1.069 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.4443, allocations: 7.922 kB / 1.069 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.857e-05/0.4444, allocations: 8 kB / 1.069 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4444, allocations: 0 / 1.069 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.4444, allocations: 4 kB / 1.069 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4444, allocations: 0 / 1.069 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4444, allocations: 4 kB / 1.069 GB, free: 8.027 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002752/0.4447, allocations: 187.6 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.886e-05/0.4448, allocations: 88.89 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.576e-05/0.4448, allocations: 11.98 kB / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.836e-05/0.4449, allocations: 0 / 1.07 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.4449, allocations: 8.078 kB / 1.07 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.4449, allocations: 7.984 kB / 1.07 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.294e-05/0.445, allocations: 117 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.445, allocations: 3.938 kB / 1.07 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003303/0.4454, allocations: 71.98 kB / 1.07 GB, free: 7.504 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.0002852/0.4457, allocations: 160.9 kB / 1.07 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003085/0.446, allocations: 175.2 kB / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.446, allocations: 0 / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.745e-05/0.4461, allocations: 47.92 kB / 1.07 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001848/0.4463, allocations: 15.88 kB / 1.07 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005025/0.4468, allocations: 247.4 kB / 1.071 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.4472, allocations: 0.708 MB / 1.071 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.777e-05/0.4473, allocations: 8.656 kB / 1.071 GB, free: 6.078 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.651e-05/0.4473, allocations: 11.44 kB / 1.071 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.4473, allocations: 0 / 1.071 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of Templates: time 0.00653/0.4538, allocations: 2.482 MB / 1.074 GB, free: 3.617 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches