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.001433/0.001433, allocations: 100.1 kB / 15.88 MB, free: 12 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.001573/0.001573, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.402/1.402, allocations: 222.9 MB / 240.5 MB, free: 4.621 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.49/2.49, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 67.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.997/0.9986, allocations: 140.3 MB / 0.9496 GB, free: 9.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.00279/1.001, allocations: 1.475 MB / 0.951 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009393/1.002, allocations: 0.5179 MB / 0.9515 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.352e-05/1.002, allocations: 0 / 0.9515 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.701e-05/1.003, allocations: 6.688 kB / 0.9515 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.429e-05/1.003, allocations: 5.406 kB / 0.9515 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006552/1.003, allocations: 202.1 kB / 0.9517 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002622/1.004, allocations: 133.7 kB / 0.9518 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.469e-05/1.004, allocations: 16.03 kB / 0.9519 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.762e-05/1.004, allocations: 47.36 kB / 0.9519 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.376e-05/1.004, allocations: 42.95 kB / 0.9519 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/1.004, allocations: 9.5 kB / 0.952 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002797/1.004, allocations: 161 kB / 0.9521 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.016e-05/1.004, allocations: 35.27 kB / 0.9521 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.655e-05/1.004, allocations: 43.02 kB / 0.9522 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002634/1.005, allocations: 161.6 kB / 0.9523 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/1.005, allocations: 0 / 0.9523 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.253e-06/1.005, allocations: 0 / 0.9523 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.942e-06/1.005, allocations: 0 / 0.9523 GB, free: 7.023 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.0006664/1.005, allocations: 460.7 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/1.005, allocations: 8.312 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.084e-05/1.005, allocations: 16.59 kB / 0.9528 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002211/1.006, allocations: 205.6 kB / 0.953 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/1.006, allocations: 9.469 kB / 0.953 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/1.006, allocations: 13.25 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/1.006, allocations: 83.61 kB / 0.9531 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/1.006, allocations: 4.172 kB / 0.9531 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.4e-05/1.006, allocations: 3.938 kB / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/1.006, allocations: 9.438 kB / 0.9531 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.096e-05/1.006, allocations: 35.02 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000253/1.006, allocations: 236.5 kB / 0.9534 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000114/1.006, allocations: 74.66 kB / 0.9534 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.506e-05/1.007, allocations: 53.47 kB / 0.9535 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/1.007, allocations: 5.344 kB / 0.9535 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002321/1.007, allocations: 111.2 kB / 0.9536 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/1.007, allocations: 0 / 0.9536 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0003782/1.007, allocations: 199.6 kB / 0.9538 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/1.007, allocations: 81.58 kB / 0.9539 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/1.007, allocations: 157.9 kB / 0.954 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/1.007, allocations: 33.89 kB / 0.9541 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.616e-05/1.007, allocations: 103.4 kB / 0.9542 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 6.359e-05/1.008, allocations: 39.81 kB / 0.9542 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/1.008, allocations: 52.95 kB / 0.9542 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.145e-05/1.008, allocations: 321.7 kB / 0.9546 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.072e-05/1.008, allocations: 41.77 kB / 0.9546 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/1.008, allocations: 201 kB / 0.9548 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/1.008, allocations: 97.27 kB / 0.9549 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/1.008, allocations: 5.219 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002535/1.008, allocations: 161.8 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/1.008, allocations: 5.688 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/1.008, allocations: 2.938 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.685e-05/1.009, allocations: 1.562 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.112e-05/1.009, allocations: 5.344 kB / 0.9551 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/1.009, allocations: 10.09 kB / 0.9551 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/1.009, allocations: 76.95 kB / 0.9551 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/1.009, allocations: 3.375 kB / 0.9551 GB, free: 4.531 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.00011/1.009, allocations: 128.6 kB / 0.9553 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.5e-05/1.009, allocations: 17.22 kB / 0.9553 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/1.009, allocations: 22.95 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/1.009, allocations: 1.188 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.009, allocations: 1.344 kB / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/1.009, allocations: 0 / 0.9553 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001518/1.009, allocations: 195.2 kB / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.009, allocations: 3.938 kB / 0.9555 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.522e-05/1.009, allocations: 6.031 kB / 0.9555 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/1.009, allocations: 0.875 kB / 0.9555 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/1.009, allocations: 2.156 kB / 0.9555 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/1.009, allocations: 4.938 kB / 0.9555 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/1.009, allocations: 0.8438 kB / 0.9555 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002552/1.01, allocations: 181.9 kB / 0.9557 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.639e-05/1.01, allocations: 104.2 kB / 0.9558 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/1.01, allocations: 5.344 kB / 0.9558 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.054e-05/1.01, allocations: 2.438 kB / 0.9558 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.287e-05/1.01, allocations: 7.609 kB / 0.9558 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/1.01, allocations: 2.281 kB / 0.9558 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.346e-05/1.01, allocations: 121.7 kB / 0.9559 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/1.01, allocations: 0 / 0.9559 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003644/1.01, allocations: 69.22 kB / 0.956 GB, free: 3.793 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.0002962/1.011, allocations: 170.5 kB / 0.9561 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002876/1.011, allocations: 162.8 kB / 0.9563 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.011, allocations: 0 / 0.9563 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.823e-05/1.011, allocations: 48.45 kB / 0.9563 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001914/1.011, allocations: 9.969 kB / 0.9564 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004831/1.012, allocations: 280.3 kB / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/1.012, allocations: 0.7057 MB / 0.9573 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/1.012, allocations: 22.8 kB / 0.9573 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of SimCode: time 3.31e-07/1.012, allocations: 0 / 0.9573 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of Templates: time 0.006223/1.018, allocations: 2.421 MB / 0.9597 GB, free: 1.34 MB / 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