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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.0009565/0.0009565, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001286/0.001286, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.778/2.778, allocations: 436.5 MB / 0.7104 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003796/0.0003796, allocations: 8 kB / 0.8708 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7995/0.7999, allocations: 153.6 MB / 1.021 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001868/0.8019, allocations: 1.114 MB / 1.022 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009191/0.8028, allocations: 450.7 kB / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.8029, allocations: 0 / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 8.08e-05/0.803, allocations: 0 / 1.022 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.167e-05/0.8031, allocations: 15.91 kB / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007701/0.8038, allocations: 186.3 kB / 1.023 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.8041, allocations: 87.89 kB / 1.023 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.803e-05/0.8042, allocations: 11.92 kB / 1.023 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.729e-05/0.8043, allocations: 47.91 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.8044, allocations: 39.89 kB / 1.023 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.8044, allocations: 8 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.8047, allocations: 139.8 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.014e-05/0.8048, allocations: 31.91 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.411e-05/0.8048, allocations: 41.64 kB / 1.023 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002437/0.8051, allocations: 165.6 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.8051, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.845e-06/0.8051, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.8051, allocations: 0 / 1.023 GB, free: 14.79 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.0006004/0.8057, allocations: 426.9 kB / 1.023 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.8058, allocations: 8.031 kB / 1.023 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.733e-05/0.8058, allocations: 19.8 kB / 1.023 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.8061, allocations: 212.9 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.8061, allocations: 7.953 kB / 1.024 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.8061, allocations: 15.94 kB / 1.024 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.8063, allocations: 75.39 kB / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.8063, allocations: 0 / 1.024 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.8064, allocations: 4 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.8064, allocations: 7.938 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.384e-05/0.8065, allocations: 43.91 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002792/0.8067, allocations: 222.6 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.8069, allocations: 81.19 kB / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 9.408e-06/0.8069, allocations: 0 / 1.024 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.8071, allocations: 117.1 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 9.82e-07/0.8071, allocations: 0 / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0004525/0.8076, allocations: 344.1 kB / 1.025 GB, free: 13 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.931e-05/0.8077, allocations: 85.11 kB / 1.025 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.8078, allocations: 147.5 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.8079, allocations: 33.7 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.391e-05/0.808, allocations: 108.5 kB / 1.025 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.318e-05/0.808, allocations: 35.55 kB / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-06/0.808, allocations: 0 / 1.025 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8082, allocations: 330.8 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.592e-05/0.8082, allocations: 40.17 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.8085, allocations: 201.3 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.8086, allocations: 63.89 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.8086, allocations: 7.953 kB / 1.026 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002204/0.8088, allocations: 153.5 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.8088, allocations: 4 kB / 1.026 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.819e-05/0.8089, allocations: 8 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.8089, allocations: 0 / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.78e-05/0.809, allocations: 15.92 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.575e-06/0.809, allocations: 4.094 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.8093, allocations: 91.75 kB / 1.026 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.8093, allocations: 7.984 kB / 1.026 GB, free: 11.58 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 ($whenCondition2,$PRE.occSchWee.occupied,occSchWee.occupied,$PRE.occSchWee.tOcc,occSchWee.tOcc,$PRE.occSchWee.tNonOcc,occSchWee.tNonOcc,$PRE.occSchWee.tNext,occSchWee.tNext,$whenCondition1,$PRE.occSchDay.occupied,occSchDay.occupied,$PRE.occSchDay.tOcc,occSchDay.tOcc,$PRE.occSchDay.tNonOcc,occSchDay.tNonOcc,$PRE.occSchDay.tNext,occSchDay.tNext) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000119/0.8094, allocations: 137.8 kB / 1.026 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.8095, allocations: 11.86 kB / 1.026 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.8095, allocations: 16.72 kB / 1.026 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.8095, allocations: 3.938 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.8095, allocations: 4 kB / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.8095, allocations: 0 / 1.026 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.8097, allocations: 193.5 kB / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8097, allocations: 96 / 1.026 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.643e-05/0.8098, allocations: 15.95 kB / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.8098, allocations: 3.984 kB / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-06/0.8098, allocations: 0 / 1.026 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.451e-06/0.8098, allocations: 11.92 kB / 1.026 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.8098, allocations: 0 / 1.026 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002278/0.81, allocations: 191.4 kB / 1.026 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/0.8101, allocations: 96.95 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.8101, allocations: 4 kB / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.008e-05/0.8102, allocations: 0 / 1.027 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.739e-05/0.8102, allocations: 7.984 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.8103, allocations: 4 kB / 1.027 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.907e-05/0.8103, allocations: 116.8 kB / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8103, allocations: 0 / 1.027 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003195/0.8107, allocations: 71.92 kB / 1.027 GB, free: 10.6 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002667/0.8109, allocations: 163.2 kB / 1.027 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002502/0.8112, allocations: 166 kB / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.8112, allocations: 0 / 1.027 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 6.678e-05/0.8113, allocations: 47.92 kB / 1.027 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001298/0.8114, allocations: 7.953 kB / 1.027 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004018/0.8118, allocations: 242.6 kB / 1.027 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002496/0.8121, allocations: 0.7082 MB / 1.028 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.523e-05/0.8121, allocations: 8.672 kB / 1.028 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.8122, allocations: 15.42 kB / 1.028 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.8122, allocations: 4 kB / 1.028 GB, free: 9.176 MB / 0.7794 GB Notification: Performance of Templates: time 0.005133/0.8173, allocations: 2.317 MB / 1.03 GB, free: 6.887 MB / 0.7794 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","../files/Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches