Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001215/0.001215, allocations: 101.6 kB / 16.35 MB, free: 5.828 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.001279/0.001279, allocations: 194.2 kB / 17.29 MB, free: 5.484 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00146/0.00146, allocations: 62.97 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4922/0.4937, allocations: 140.4 MB / 0.9511 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002988/0.4967, allocations: 1.413 MB / 0.9525 GB, free: 6.629 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0009391/0.4977, allocations: 0.5042 MB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.4978, allocations: 0 / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.533e-05/0.4978, allocations: 3.938 kB / 0.953 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.134e-05/0.4979, allocations: 15.91 kB / 0.953 GB, free: 6.105 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007652/0.4987, allocations: 223.2 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.4989, allocations: 151.7 kB / 0.9534 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.779e-05/0.499, allocations: 8 kB / 0.9534 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.194e-05/0.4991, allocations: 59.89 kB / 0.9534 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.546e-05/0.4992, allocations: 39.83 kB / 0.9535 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.4992, allocations: 15.94 kB / 0.9535 GB, free: 5.621 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002818/0.4995, allocations: 167.8 kB / 0.9536 GB, free: 5.457 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.742e-05/0.4996, allocations: 35.89 kB / 0.9537 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.503e-05/0.4997, allocations: 51.78 kB / 0.9537 GB, free: 5.371 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003313/0.5, allocations: 235.4 kB / 0.9539 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.5, allocations: 8 kB / 0.9539 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.705e-06/0.5, allocations: 0 / 0.9539 GB, free: 5.133 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.873e-06/0.5, allocations: 0 / 0.9539 GB, free: 5.133 MB / 0.7325 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.0006207/0.5007, allocations: 451 kB / 0.9544 GB, free: 4.641 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.5007, allocations: 8.031 kB / 0.9544 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.811e-05/0.5008, allocations: 20.73 kB / 0.9544 GB, free: 4.613 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002413/0.501, allocations: 202 kB / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.5011, allocations: 8.375 kB / 0.9546 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.855e-05/0.5011, allocations: 16.31 kB / 0.9546 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001533/0.5013, allocations: 83.94 kB / 0.9547 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.5013, allocations: 192 / 0.9547 GB, free: 4.262 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.5013, allocations: 7.938 kB / 0.9547 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.5013, allocations: 0 / 0.9547 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.703e-05/0.5014, allocations: 35.98 kB / 0.9547 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002691/0.5017, allocations: 242.3 kB / 0.955 GB, free: 3.93 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.5018, allocations: 81.25 kB / 0.9551 GB, free: 3.832 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.023e-05/0.5019, allocations: 57.8 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.5019, allocations: 0 / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.5021, allocations: 105 kB / 0.9552 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.5021, allocations: 4 kB / 0.9552 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0003598/0.5025, allocations: 193.4 kB / 0.9554 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.5026, allocations: 81.11 kB / 0.9555 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.5027, allocations: 155.8 kB / 0.9556 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.498e-05/0.5028, allocations: 33.7 kB / 0.9557 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.268e-05/0.5028, allocations: 104.5 kB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.638e-05/0.5029, allocations: 39.55 kB / 0.9558 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-05/0.503, allocations: 45.7 kB / 0.9558 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.5032, allocations: 330.8 kB / 0.9562 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.002e-05/0.5033, allocations: 43.98 kB / 0.9562 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.5035, allocations: 207.9 kB / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.5036, allocations: 93.64 kB / 0.9565 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.5037, allocations: 4 kB / 0.9565 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000219/0.5039, allocations: 165.3 kB / 0.9566 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.5039, allocations: 4 kB / 0.9566 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.5039, allocations: 4 kB / 0.9566 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.504, allocations: 0 / 0.9566 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.764e-05/0.504, allocations: 8 kB / 0.9567 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.5041, allocations: 7.938 kB / 0.9567 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.5043, allocations: 75.83 kB / 0.9567 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.5043, allocations: 4 kB / 0.9567 GB, free: 1.953 MB / 0.7325 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.0001361/0.5045, allocations: 140.8 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.36e-05/0.5045, allocations: 19.73 kB / 0.9569 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.476e-05/0.5046, allocations: 16.8 kB / 0.9569 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.5046, allocations: 0 / 0.9569 GB, free: 1.77 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.5046, allocations: 4 kB / 0.9569 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.5046, allocations: 0 / 0.9569 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001689/0.5048, allocations: 193.5 kB / 0.9571 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.5048, allocations: 3.938 kB / 0.9571 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.289e-05/0.5048, allocations: 8 kB / 0.9571 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.5048, allocations: 4 kB / 0.9571 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.267e-05/0.5048, allocations: 4 kB / 0.9571 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.5048, allocations: 4 kB / 0.9571 GB, free: 1.504 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5048, allocations: 3.938 kB / 0.9571 GB, free: 1.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.5051, allocations: 176.6 kB / 0.9573 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.947e-05/0.5051, allocations: 96.88 kB / 0.9574 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.5052, allocations: 4 kB / 0.9574 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.677e-05/0.5052, allocations: 4 kB / 0.9574 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.5053, allocations: 7.984 kB / 0.9574 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.174e-05/0.5053, allocations: 8 kB / 0.9574 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 8.661e-05/0.5054, allocations: 111.2 kB / 0.9575 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.5054, allocations: 0 / 0.9575 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002999/0.5057, allocations: 68 kB / 0.9576 GB, free: 0.9961 MB / 0.7325 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.0002626/0.506, allocations: 167.1 kB / 0.9577 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002838/0.5062, allocations: 163.3 kB / 0.9579 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5063, allocations: 4 kB / 0.9579 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 6.865e-05/0.5063, allocations: 43.92 kB / 0.9579 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001668/0.5065, allocations: 15.88 kB / 0.958 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004551/0.507, allocations: 223.5 kB / 0.9582 GB, free: 344 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.5073, allocations: 0.7117 MB / 0.9589 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.247e-05/0.5074, allocations: 8.656 kB / 0.9589 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.268e-05/0.5074, allocations: 15.38 kB / 0.9589 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of SimCode: time 2e-07/0.5074, allocations: 0 / 0.9589 GB, free: 15.57 MB / 0.7481 GB Notification: Performance of Templates: time 0.006027/0.5134, allocations: 2.524 MB / 0.9614 GB, free: 13.08 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.makefile (rm -f Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & ./Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches