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.00667/0.00667, allocations: 100.8 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.001323/0.001323, allocations: 195.7 kB / 16.68 MB, free: 5.977 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.501/1.501, allocations: 222.9 MB / 240.3 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.764/2.764, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 63.89 kB / 1.054 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.489/1.491, allocations: 157.4 MB / 1.208 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004365/1.495, allocations: 1.413 MB / 1.209 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001212/1.497, allocations: 0.4982 MB / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.903e-05/1.497, allocations: 0 / 1.21 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/1.497, allocations: 11.92 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 8.279e-05/1.497, allocations: 3.938 kB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001172/1.498, allocations: 230.9 kB / 1.21 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003273/1.498, allocations: 147.7 kB / 1.21 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.216e-05/1.498, allocations: 15.95 kB / 1.21 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/1.499, allocations: 51.91 kB / 1.21 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/1.499, allocations: 47.81 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/1.499, allocations: 8 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003888/1.499, allocations: 167.8 kB / 1.21 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.285e-05/1.499, allocations: 39.89 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.658e-05/1.499, allocations: 51.78 kB / 1.21 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005253/1.5, allocations: 239.3 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/1.5, allocations: 0 / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.853e-06/1.5, allocations: 0 / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.472e-05/1.5, allocations: 0 / 1.211 GB, free: 10.75 MB / 0.9356 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.0008498/1.501, allocations: 452.8 kB / 1.211 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.71e-05/1.501, allocations: 8.031 kB / 1.211 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.347e-05/1.501, allocations: 12.84 kB / 1.211 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/1.501, allocations: 209.7 kB / 1.211 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.977e-05/1.501, allocations: 4.375 kB / 1.211 GB, free: 9.988 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.484e-05/1.501, allocations: 20.36 kB / 1.211 GB, free: 9.969 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/1.501, allocations: 83.89 kB / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.197e-05/1.502, allocations: 192 / 1.211 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/1.502, allocations: 7.938 kB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/1.502, allocations: 0 / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.709e-05/1.502, allocations: 39.97 kB / 1.211 GB, free: 9.828 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003144/1.502, allocations: 226.5 kB / 1.212 GB, free: 9.555 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/1.502, allocations: 81.14 kB / 1.212 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.44e-05/1.502, allocations: 57.84 kB / 1.212 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/1.502, allocations: 0 / 1.212 GB, free: 9.395 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003378/1.503, allocations: 113 kB / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.132e-06/1.503, allocations: 0 / 1.212 GB, free: 9.266 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0004104/1.503, allocations: 197.2 kB / 1.212 GB, free: 9.066 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.389e-05/1.503, allocations: 85.11 kB / 1.212 GB, free: 8.965 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/1.503, allocations: 148.2 kB / 1.212 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/1.503, allocations: 41.62 kB / 1.212 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/1.503, allocations: 100.5 kB / 1.212 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.291e-05/1.503, allocations: 39.53 kB / 1.212 GB, free: 8.621 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/1.504, allocations: 49.7 kB / 1.212 GB, free: 8.566 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001493/1.504, allocations: 326.8 kB / 1.213 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.879e-05/1.504, allocations: 39.98 kB / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/1.504, allocations: 207.3 kB / 1.213 GB, free: 7.941 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/1.504, allocations: 93.64 kB / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/1.504, allocations: 0 / 1.213 GB, free: 7.844 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002635/1.505, allocations: 161.3 kB / 1.213 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/1.505, allocations: 9.719 kB / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/1.505, allocations: 0 / 1.213 GB, free: 7.672 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/1.505, allocations: 4 kB / 1.213 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.077e-05/1.505, allocations: 7.984 kB / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/1.505, allocations: 8 kB / 1.213 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/1.505, allocations: 71.75 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/1.505, allocations: 8 kB / 1.213 GB, free: 7.574 MB / 0.9356 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.0001377/1.505, allocations: 141.8 kB / 1.213 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/1.505, allocations: 11.84 kB / 1.213 GB, free: 7.414 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/1.505, allocations: 12.72 kB / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/1.505, allocations: 0 / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/1.505, allocations: 0 / 1.213 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/1.505, allocations: 3.938 kB / 1.213 GB, free: 7.391 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001812/1.506, allocations: 201.5 kB / 1.214 GB, free: 7.145 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/1.506, allocations: 3.938 kB / 1.214 GB, free: 7.141 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.909e-05/1.506, allocations: 8 kB / 1.214 GB, free: 7.133 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/1.506, allocations: 4 kB / 1.214 GB, free: 7.129 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/1.506, allocations: 4 kB / 1.214 GB, free: 7.125 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/1.506, allocations: 3.984 kB / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/1.506, allocations: 0 / 1.214 GB, free: 7.121 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/1.506, allocations: 181.8 kB / 1.214 GB, free: 6.922 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/1.506, allocations: 88.95 kB / 1.214 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.429e-05/1.506, allocations: 0 / 1.214 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.392e-05/1.506, allocations: 8 kB / 1.214 GB, free: 6.809 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.527e-05/1.506, allocations: 16.06 kB / 1.214 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.224e-06/1.506, allocations: 0 / 1.214 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 9.978e-05/1.506, allocations: 111.2 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1e-07/1.506, allocations: 0 / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003848/1.507, allocations: 79.92 kB / 1.214 GB, free: 6.605 MB / 0.9356 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.0003161/1.507, allocations: 159.2 kB / 1.214 GB, free: 6.441 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002929/1.507, allocations: 163.4 kB / 1.214 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.507, allocations: 0 / 1.214 GB, free: 6.27 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.2e-05/1.507, allocations: 55.8 kB / 1.215 GB, free: 6.215 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001839/1.508, allocations: 11.92 kB / 1.215 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005124/1.508, allocations: 232.3 kB / 1.215 GB, free: 5.949 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/1.508, allocations: 0.708 MB / 1.215 GB, free: 5.215 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.307e-05/1.509, allocations: 4.672 kB / 1.215 GB, free: 5.207 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/1.509, allocations: 11.44 kB / 1.215 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of SimCode: time 2.995e-06/1.509, allocations: 4 kB / 1.215 GB, free: 5.191 MB / 0.9356 GB Notification: Performance of Templates: time 0.007023/1.516, allocations: 2.524 MB / 1.218 GB, free: 2.703 MB / 0.9356 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