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.0009135/0.0009137, allocations: 91.45 kB / 16.02 MB, free: 80 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.001264/0.001264, allocations: 178.6 kB / 16.92 MB, free: 6.652 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.477/1.477, allocations: 223.3 MB / 241 MB, free: 5.305 MB / 190.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.677/2.677, allocations: 390.9 MB / 0.667 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003794/0.0003794, allocations: 11.98 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.921/0.9213, allocations: 142.4 MB / 0.9557 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.001714/0.9231, allocations: 1.135 MB / 0.9568 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.9241, allocations: 0.5101 MB / 0.9573 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.116e-05/0.9242, allocations: 1.438 kB / 0.9573 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.53e-05/0.9243, allocations: 1.312 kB / 0.9573 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.62e-05/0.9243, allocations: 10.67 kB / 0.9573 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000677/0.925, allocations: 201.4 kB / 0.9575 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002494/0.9253, allocations: 133.3 kB / 0.9576 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.344e-05/0.9253, allocations: 8.203 kB / 0.9576 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.512e-05/0.9254, allocations: 56.47 kB / 0.9577 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.529e-05/0.9255, allocations: 42.16 kB / 0.9577 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.196e-05/0.9256, allocations: 6.438 kB / 0.9577 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003095/0.9259, allocations: 163.7 kB / 0.9579 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.447e-05/0.926, allocations: 30.44 kB / 0.9579 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.9261, allocations: 74.14 kB / 0.958 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.9264, allocations: 156.5 kB / 0.9581 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.9264, allocations: 0 / 0.9581 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.274e-06/0.9264, allocations: 0 / 0.9581 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.9264, allocations: 5.531 kB / 0.9582 GB, free: 5.801 MB / 0.7169 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.0005713/0.927, allocations: 429.4 kB / 0.9586 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.927, allocations: 9.062 kB / 0.9586 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.463e-05/0.9271, allocations: 16.53 kB / 0.9586 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.9273, allocations: 204.4 kB / 0.9588 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.978e-05/0.9274, allocations: 5.75 kB / 0.9588 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.9274, allocations: 13.5 kB / 0.9588 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.9276, allocations: 91.11 kB / 0.9589 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.9276, allocations: 4.172 kB / 0.9589 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.9276, allocations: 5.781 kB / 0.9589 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.9276, allocations: 0 / 0.9589 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.683e-05/0.9277, allocations: 34.64 kB / 0.9589 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002617/0.928, allocations: 230.1 kB / 0.9591 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001287/0.9281, allocations: 86.06 kB / 0.9592 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.875e-05/0.9282, allocations: 52.72 kB / 0.9593 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.9283, allocations: 1.156 kB / 0.9593 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.9285, allocations: 108.6 kB / 0.9594 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 2.314e-06/0.9285, allocations: 7.984 kB / 0.9594 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003871/0.9289, allocations: 194.2 kB / 0.9596 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.223e-05/0.929, allocations: 86.89 kB / 0.9597 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.9291, allocations: 155.6 kB / 0.9598 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.9292, allocations: 34.2 kB / 0.9598 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.906e-05/0.9292, allocations: 102.4 kB / 0.9599 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.142e-05/0.9293, allocations: 41 kB / 0.96 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.9293, allocations: 24.59 kB / 0.96 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.615e-05/0.9294, allocations: 325.3 kB / 0.9603 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.581e-05/0.9295, allocations: 46.06 kB / 0.9604 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002077/0.9297, allocations: 199.6 kB / 0.9605 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/0.9298, allocations: 92.64 kB / 0.9606 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.9299, allocations: 1.625 kB / 0.9606 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000242/0.9301, allocations: 165.2 kB / 0.9608 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.9301, allocations: 5.5 kB / 0.9608 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/0.9302, allocations: 2.75 kB / 0.9608 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.9302, allocations: 1.375 kB / 0.9608 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.585e-05/0.9303, allocations: 10.86 kB / 0.9608 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.9303, allocations: 1.375 kB / 0.9608 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.9306, allocations: 95.67 kB / 0.9609 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.9306, allocations: 4.125 kB / 0.9609 GB, free: 3.336 MB / 0.7169 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.0001279/0.9308, allocations: 135.5 kB / 0.961 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.038e-05/0.9308, allocations: 17.25 kB / 0.9611 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.535e-05/0.9308, allocations: 15.47 kB / 0.9611 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.9308, allocations: 1.375 kB / 0.9611 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.9309, allocations: 1.375 kB / 0.9611 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.9309, allocations: 4 kB / 0.9611 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001406/0.931, allocations: 195.4 kB / 0.9613 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.931, allocations: 3.938 kB / 0.9613 GB, free: 2.953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.528e-05/0.9311, allocations: 10.88 kB / 0.9613 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.9311, allocations: 0 / 0.9613 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.9311, allocations: 6.734 kB / 0.9613 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.9311, allocations: 3.938 kB / 0.9613 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.9311, allocations: 1.375 kB / 0.9613 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002255/0.9313, allocations: 188.7 kB / 0.9615 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.124e-05/0.9314, allocations: 87.7 kB / 0.9616 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.9314, allocations: 6.75 kB / 0.9616 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.182e-05/0.9314, allocations: 2.75 kB / 0.9616 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.9315, allocations: 6.734 kB / 0.9616 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.9315, allocations: 2.75 kB / 0.9616 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.786e-05/0.9316, allocations: 115.9 kB / 0.9617 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9316, allocations: 0 / 0.9617 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003411/0.9319, allocations: 76.33 kB / 0.9618 GB, free: 2.59 MB / 0.7169 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.0002688/0.9322, allocations: 166.4 kB / 0.9619 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002802/0.9325, allocations: 162.3 kB / 0.9621 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.9325, allocations: 0 / 0.9621 GB, free: 2.371 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.35e-05/0.9326, allocations: 48.08 kB / 0.9621 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001766/0.9328, allocations: 10.67 kB / 0.9621 GB, free: 2.344 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005186/0.9333, allocations: 280 kB / 0.9624 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.9335, allocations: 0.7021 MB / 0.9631 GB, free: 1.395 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.987e-05/0.9335, allocations: 16.56 kB / 0.9631 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of SimCode: time 3.71e-07/0.9336, allocations: 0 / 0.9631 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of Templates: time 0.005474/0.939, allocations: 2.416 MB / 0.9655 GB, free: 168 kB / 0.7169 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 -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) "" 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