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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001465/0.001465, allocations: 111.5 kB / 15.99 MB, free: 6.355 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.001647/0.001647, allocations: 192 kB / 16.91 MB, free: 6.195 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.373/1.373, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.339/2.339, allocations: 390.3 MB / 0.665 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.98 kB / 0.8127 GB, free: 33.33 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3658/0.3672, allocations: 140.4 MB / 0.9498 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004383/0.3716, allocations: 1.48 MB / 0.9512 GB, free: 7.777 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001255/0.3729, allocations: 0.4905 MB / 0.9517 GB, free: 7.285 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.395e-05/0.373, allocations: 4 kB / 0.9517 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.3732, allocations: 0 / 0.9517 GB, free: 7.281 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.3733, allocations: 15.91 kB / 0.9517 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001196/0.3745, allocations: 207.5 kB / 0.9519 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003384/0.3749, allocations: 155.7 kB / 0.952 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 7.21e-05/0.375, allocations: 8 kB / 0.9521 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001348/0.3751, allocations: 55.89 kB / 0.9521 GB, free: 6.852 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.3752, allocations: 43.83 kB / 0.9521 GB, free: 6.809 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.798e-05/0.3753, allocations: 8 kB / 0.9522 GB, free: 6.801 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003967/0.3757, allocations: 163.8 kB / 0.9523 GB, free: 6.641 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.3758, allocations: 39.89 kB / 0.9524 GB, free: 6.602 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.3759, allocations: 59.78 kB / 0.9524 GB, free: 6.543 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.3764, allocations: 167.9 kB / 0.9526 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.3764, allocations: 3.938 kB / 0.9526 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.567e-06/0.3764, allocations: 3.938 kB / 0.9526 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.3764, allocations: 0 / 0.9526 GB, free: 6.371 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.0008679/0.3773, allocations: 443 kB / 0.953 GB, free: 5.887 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.3774, allocations: 8.031 kB / 0.953 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.555e-05/0.3775, allocations: 20.75 kB / 0.953 GB, free: 5.859 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.3778, allocations: 212.1 kB / 0.9532 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.3778, allocations: 12.38 kB / 0.9532 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.3779, allocations: 16.36 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002332/0.3781, allocations: 79.95 kB / 0.9533 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3781, allocations: 4.125 kB / 0.9533 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.3782, allocations: 3.938 kB / 0.9533 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.3782, allocations: 0 / 0.9533 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001279/0.3783, allocations: 39.97 kB / 0.9534 GB, free: 5.449 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003402/0.3787, allocations: 234.4 kB / 0.9536 GB, free: 5.168 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001434/0.3788, allocations: 81.17 kB / 0.9537 GB, free: 5.07 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.028e-05/0.3789, allocations: 57.81 kB / 0.9537 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.3789, allocations: 0 / 0.9537 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/0.3793, allocations: 113 kB / 0.9538 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.3793, allocations: 3.938 kB / 0.9538 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.000412/0.3797, allocations: 185.9 kB / 0.954 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/0.3798, allocations: 93.03 kB / 0.9541 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.38, allocations: 155 kB / 0.9543 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.115e-05/0.38, allocations: 33.7 kB / 0.9543 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.567e-05/0.3801, allocations: 100.5 kB / 0.9544 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.3802, allocations: 35.55 kB / 0.9544 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.3803, allocations: 53.7 kB / 0.9545 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3805, allocations: 330.8 kB / 0.9548 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.143e-05/0.3806, allocations: 35.98 kB / 0.9548 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.3808, allocations: 201.5 kB / 0.955 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.381, allocations: 101.6 kB / 0.9551 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.381, allocations: 0 / 0.9551 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002791/0.3813, allocations: 165.2 kB / 0.9553 GB, free: 3.289 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.3813, allocations: 4 kB / 0.9553 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.05e-05/0.3813, allocations: 7.984 kB / 0.9553 GB, free: 3.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.3814, allocations: 4 kB / 0.9553 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.159e-05/0.3815, allocations: 12 kB / 0.9553 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3815, allocations: 0 / 0.9553 GB, free: 3.262 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.3818, allocations: 78.94 kB / 0.9554 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.3818, allocations: 4 kB / 0.9554 GB, free: 3.184 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.0001542/0.382, allocations: 135.7 kB / 0.9555 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.619e-05/0.382, allocations: 15.75 kB / 0.9555 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.382, allocations: 16.66 kB / 0.9555 GB, free: 3.012 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.382, allocations: 7.984 kB / 0.9555 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.3821, allocations: 96 / 0.9555 GB, free: 3.004 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.3821, allocations: 3.984 kB / 0.9555 GB, free: 3 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002038/0.3823, allocations: 185.6 kB / 0.9557 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.3823, allocations: 7.938 kB / 0.9557 GB, free: 2.762 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.904e-05/0.3823, allocations: 11.98 kB / 0.9557 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3824, allocations: 0 / 0.9557 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.3824, allocations: 4 kB / 0.9557 GB, free: 2.746 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.3824, allocations: 4 kB / 0.9557 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3824, allocations: 0 / 0.9557 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.3827, allocations: 185.7 kB / 0.9559 GB, free: 2.539 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 6.612e-05/0.3827, allocations: 96.89 kB / 0.956 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.3828, allocations: 0 / 0.956 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.628e-05/0.3828, allocations: 7.984 kB / 0.956 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.3829, allocations: 4 kB / 0.956 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.3829, allocations: 4 kB / 0.956 GB, free: 2.41 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 9.488e-05/0.383, allocations: 113.3 kB / 0.9561 GB, free: 2.301 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.383, allocations: 3.938 kB / 0.9561 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003677/0.3834, allocations: 75.98 kB / 0.9562 GB, free: 2.223 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.0003454/0.3837, allocations: 163.2 kB / 0.9564 GB, free: 2.051 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002917/0.384, allocations: 167.3 kB / 0.9565 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.384, allocations: 0 / 0.9565 GB, free: 1.875 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.633e-05/0.3841, allocations: 47.92 kB / 0.9566 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000193/0.3843, allocations: 7.875 kB / 0.9566 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005504/0.3849, allocations: 281.2 kB / 0.9569 GB, free: 1.508 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.3852, allocations: 0.7039 MB / 0.9575 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.3852, allocations: 11.44 kB / 0.9576 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.3852, allocations: 0 / 0.9576 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of Templates: time 0.005701/0.391, allocations: 2.44 MB / 0.9599 GB, free: 14.34 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 -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