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.001684/0.001684, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001803/0.001803, allocations: 189.8 kB / 17.2 MB, free: 5.953 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: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.747/2.747, allocations: 437.1 MB / 0.7111 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002006, allocations: 69.08 kB / 0.8699 GB, free: 2.203 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4325/0.4345, allocations: 151.6 MB / 1.018 GB, free: 10.65 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003046/0.4376, allocations: 1.409 MB / 1.019 GB, free: 9.227 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009949/0.4386, allocations: 499.8 kB / 1.02 GB, free: 8.738 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.445e-05/0.4387, allocations: 0 / 1.02 GB, free: 8.738 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 8.616e-05/0.4388, allocations: 15.86 kB / 1.02 GB, free: 8.723 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 5.521e-05/0.4388, allocations: 11.88 kB / 1.02 GB, free: 8.711 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007583/0.4396, allocations: 232.9 kB / 1.02 GB, free: 8.488 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002397/0.4399, allocations: 147.7 kB / 1.02 GB, free: 8.344 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.62e-05/0.4399, allocations: 15.98 kB / 1.02 GB, free: 8.328 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.68e-05/0.44, allocations: 55.89 kB / 1.02 GB, free: 8.273 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.025e-05/0.4401, allocations: 39.83 kB / 1.02 GB, free: 8.234 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.4401, allocations: 12 kB / 1.02 GB, free: 8.223 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002906/0.4404, allocations: 167.8 kB / 1.02 GB, free: 8.059 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 7.953e-05/0.4405, allocations: 31.91 kB / 1.021 GB, free: 8.027 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 9.884e-05/0.4406, allocations: 51.78 kB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003559/0.441, allocations: 239.7 kB / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.441, allocations: 0 / 1.021 GB, free: 7.742 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.703e-06/0.441, allocations: 4 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.811e-06/0.441, allocations: 0 / 1.021 GB, free: 7.738 MB / 0.795 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.0006973/0.4417, allocations: 454.9 kB / 1.021 GB, free: 7.242 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.643e-05/0.4418, allocations: 12.92 kB / 1.021 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.457e-05/0.4418, allocations: 12.84 kB / 1.021 GB, free: 7.219 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.4421, allocations: 204.2 kB / 1.021 GB, free: 6.98 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.4421, allocations: 4.375 kB / 1.021 GB, free: 6.977 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.038e-05/0.4422, allocations: 12.38 kB / 1.021 GB, free: 6.965 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.4424, allocations: 87.88 kB / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.4424, allocations: 192 / 1.022 GB, free: 6.867 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.4424, allocations: 7.938 kB / 1.022 GB, free: 6.859 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.4424, allocations: 4 kB / 1.022 GB, free: 6.855 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.183e-05/0.4425, allocations: 31.98 kB / 1.022 GB, free: 6.824 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003299/0.4428, allocations: 242.4 kB / 1.022 GB, free: 6.535 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000153/0.443, allocations: 81.14 kB / 1.022 GB, free: 6.438 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.189e-05/0.4431, allocations: 57.84 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.737e-05/0.4431, allocations: 4 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.4434, allocations: 105 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.092e-06/0.4434, allocations: 4 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0003989/0.4438, allocations: 197.4 kB / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.4439, allocations: 85.05 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001569/0.4441, allocations: 151.4 kB / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.4441, allocations: 37.7 kB / 1.023 GB, free: 5.746 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 9.846e-05/0.4442, allocations: 100.5 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.739e-05/0.4443, allocations: 39.55 kB / 1.023 GB, free: 5.602 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.963e-05/0.4443, allocations: 45.7 kB / 1.023 GB, free: 5.551 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0002157/0.4446, allocations: 330.8 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.238e-05/0.4446, allocations: 35.98 kB / 1.023 GB, free: 5.184 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002588/0.4449, allocations: 204.8 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.4451, allocations: 101.6 kB / 1.023 GB, free: 4.824 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.4451, allocations: 3.938 kB / 1.023 GB, free: 4.82 MB / 0.795 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002647/0.4454, allocations: 169.3 kB / 1.024 GB, free: 4.648 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.4454, allocations: 4 kB / 1.024 GB, free: 4.645 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.4454, allocations: 4 kB / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.4454, allocations: 0 / 1.024 GB, free: 4.641 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.4456, allocations: 12 kB / 1.024 GB, free: 4.629 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.298e-06/0.4456, allocations: 3.984 kB / 1.024 GB, free: 4.625 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002961/0.4459, allocations: 67.84 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.692e-05/0.4459, allocations: 11.94 kB / 1.024 GB, free: 4.547 MB / 0.795 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.000147/0.446, allocations: 145.7 kB / 1.024 GB, free: 4.395 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.406e-05/0.4461, allocations: 15.75 kB / 1.024 GB, free: 4.379 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.811e-05/0.4461, allocations: 12.72 kB / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.4461, allocations: 0 / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4461, allocations: 0 / 1.024 GB, free: 4.363 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.4462, allocations: 4 kB / 1.024 GB, free: 4.359 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.4464, allocations: 185.6 kB / 1.024 GB, free: 4.129 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4464, allocations: 3.938 kB / 1.024 GB, free: 4.125 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.435e-05/0.4464, allocations: 4 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.4464, allocations: 8 kB / 1.024 GB, free: 4.113 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.4465, allocations: 4 kB / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.4465, allocations: 0 / 1.024 GB, free: 4.109 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.4465, allocations: 4 kB / 1.024 GB, free: 4.105 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002544/0.4467, allocations: 181.7 kB / 1.024 GB, free: 3.906 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 7.422e-05/0.4468, allocations: 92.89 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.4468, allocations: 0 / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.757e-05/0.4469, allocations: 8 kB / 1.024 GB, free: 3.789 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.4469, allocations: 12.08 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.177e-05/0.447, allocations: 11.98 kB / 1.024 GB, free: 3.766 MB / 0.795 GB Notification: Performance of sorting global known variables: time 9.186e-05/0.447, allocations: 109.3 kB / 1.024 GB, free: 3.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 3.51e-07/0.4471, allocations: 4 kB / 1.024 GB, free: 3.656 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003414/0.4474, allocations: 72 kB / 1.024 GB, free: 3.586 MB / 0.795 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.0002819/0.4477, allocations: 165.2 kB / 1.025 GB, free: 3.418 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003037/0.448, allocations: 171.3 kB / 1.025 GB, free: 3.238 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.448, allocations: 0 / 1.025 GB, free: 3.238 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.454e-05/0.4481, allocations: 43.92 kB / 1.025 GB, free: 3.195 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.4483, allocations: 19.86 kB / 1.025 GB, free: 3.176 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005216/0.4488, allocations: 245.2 kB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.4492, allocations: 0.708 MB / 1.026 GB, free: 2.164 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.665e-05/0.4493, allocations: 11.44 kB / 1.026 GB, free: 2.152 MB / 0.795 GB Notification: Performance of SimCode: time 2e-07/0.4493, allocations: 0 / 1.026 GB, free: 2.152 MB / 0.795 GB Notification: Performance of Templates: time 0.004976/0.4543, allocations: 2.44 MB / 1.028 GB, free: 15.73 MB / 0.8106 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.occupied,occSchDay.tNexNonOcc,occSchWee.occupied,occSchWee.tNexNonOcc,time