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.001727/0.001727, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.516/1.516, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.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.964/2.964, allocations: 437 MB / 0.7104 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 68.03 kB / 0.8692 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9446/0.9468, allocations: 151.6 MB / 1.017 GB, free: 2.613 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.0032/0.95, allocations: 1.407 MB / 1.019 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.9511, allocations: 0.4905 MB / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.647e-05/0.9512, allocations: 0 / 1.019 GB, free: 0.7031 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 9.88e-05/0.9513, allocations: 11.92 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.106e-05/0.9514, allocations: 3.938 kB / 1.019 GB, free: 0.6875 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008708/0.9522, allocations: 243.1 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002305/0.9525, allocations: 143.7 kB / 1.02 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 6.161e-05/0.9526, allocations: 11.98 kB / 1.02 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.279e-05/0.9526, allocations: 55.91 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.9528, allocations: 47.75 kB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.682e-05/0.9528, allocations: 12 kB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003076/0.9531, allocations: 163.8 kB / 1.02 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.9532, allocations: 39.94 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.411e-05/0.9533, allocations: 51.73 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003604/0.9537, allocations: 229.5 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.9537, allocations: 4 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.954e-06/0.9537, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.9537, allocations: 0 / 1.02 GB, free: 15.71 MB / 0.7794 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.000738/0.9545, allocations: 454.9 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.9545, allocations: 8.031 kB / 1.021 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.998e-05/0.9546, allocations: 16.75 kB / 1.021 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.9549, allocations: 209.8 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.9549, allocations: 4.375 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.955, allocations: 16.31 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.9552, allocations: 87.94 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.9552, allocations: 192 / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.9552, allocations: 7.922 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.9552, allocations: 0 / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.271e-05/0.9553, allocations: 35.98 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003181/0.9556, allocations: 234.4 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.9558, allocations: 81.25 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.904e-05/0.9559, allocations: 53.81 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.359e-05/0.9559, allocations: 0 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002972/0.9562, allocations: 117 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.9562, allocations: 4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0004071/0.9566, allocations: 189.4 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/0.9567, allocations: 89.11 kB / 1.022 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001691/0.9569, allocations: 147.3 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.957, allocations: 37.7 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.9571, allocations: 104.5 kB / 1.022 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.9571, allocations: 31.55 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.419e-05/0.9572, allocations: 53.69 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001721/0.9574, allocations: 330.8 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.222e-05/0.9575, allocations: 39.98 kB / 1.022 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.9577, allocations: 200.5 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.9579, allocations: 93.64 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.9579, allocations: 3.938 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000251/0.9582, allocations: 169.3 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.9582, allocations: 13.81 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.29e-05/0.9582, allocations: 0 / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.9583, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.99e-05/0.9584, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.9584, allocations: 7.938 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.9587, allocations: 70.02 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.9587, allocations: 7.984 kB / 1.023 GB, free: 12.53 MB / 0.7794 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.000152/0.9589, allocations: 137.8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.492e-05/0.9589, allocations: 19.69 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.095e-05/0.9589, allocations: 16.7 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.9589, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.959, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.959, allocations: 0 / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.9592, allocations: 201.5 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.9592, allocations: 4.031 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.223e-05/0.9592, allocations: 4 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.9592, allocations: 7.984 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.9592, allocations: 4 kB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.9593, allocations: 7.938 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.9593, allocations: 0 / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.9595, allocations: 177.8 kB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.799e-05/0.9596, allocations: 92.94 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.9596, allocations: 0 / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.44e-05/0.9597, allocations: 12 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.983e-05/0.9597, allocations: 7.984 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.9598, allocations: 0 / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.649e-05/0.9599, allocations: 112.8 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9599, allocations: 0 / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003441/0.9602, allocations: 79.94 kB / 1.024 GB, free: 11.56 MB / 0.7794 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.0002866/0.9605, allocations: 159.1 kB / 1.024 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003286/0.9608, allocations: 179.2 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.9609, allocations: 0 / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.887e-05/0.9609, allocations: 43.98 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.9611, allocations: 7.938 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005677/0.9617, allocations: 223.5 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004223/0.9621, allocations: 0.7041 MB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.519e-05/0.9622, allocations: 12.66 kB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.191e-05/0.9622, allocations: 11.44 kB / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.9623, allocations: 0 / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of Templates: time 0.00775/0.97, allocations: 2.513 MB / 1.028 GB, free: 7.668 MB / 0.7794 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=400 -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