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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008694/0.008694, allocations: 102.3 kB / 15.73 MB, free: 6.035 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.001788/0.001788, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.463/1.463, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.837/2.837, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 60.12 kB / 1.054 GB, free: 7.723 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.371, allocations: 157.4 MB / 1.207 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003391/0.3744, allocations: 1.419 MB / 1.209 GB, free: 8.781 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0012/0.3756, allocations: 498.3 kB / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.381e-05/0.3757, allocations: 0 / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 8.961e-05/0.3758, allocations: 11.88 kB / 1.209 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.56e-05/0.376, allocations: 11.86 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008663/0.3768, allocations: 234.4 kB / 1.209 GB, free: 8.043 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.3771, allocations: 147.7 kB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.581e-05/0.3772, allocations: 19.91 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.476e-05/0.3772, allocations: 51.91 kB / 1.21 GB, free: 7.828 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.531e-05/0.3773, allocations: 43.83 kB / 1.21 GB, free: 7.785 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.86e-05/0.3774, allocations: 8 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003031/0.3777, allocations: 171.8 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.776e-05/0.3778, allocations: 35.91 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.015e-05/0.3779, allocations: 55.78 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003963/0.3783, allocations: 227.7 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.3783, allocations: 0 / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3783, allocations: 3.938 kB / 1.21 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.3783, allocations: 0 / 1.21 GB, free: 7.293 MB / 0.9669 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.0007149/0.379, allocations: 451 kB / 1.21 GB, free: 6.801 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3791, allocations: 8.625 kB / 1.211 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.951e-05/0.3792, allocations: 42.73 kB / 1.211 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.174e-05/0.3792, allocations: 12.84 kB / 1.211 GB, free: 6.73 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.3795, allocations: 210 kB / 1.211 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.3795, allocations: 4.375 kB / 1.211 GB, free: 6.484 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/0.3796, allocations: 16.38 kB / 1.211 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.3797, allocations: 83.88 kB / 1.211 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.3798, allocations: 3.938 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.3798, allocations: 4 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.3798, allocations: 0 / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.118e-05/0.3799, allocations: 35.98 kB / 1.211 GB, free: 6.332 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003082/0.3802, allocations: 230.5 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/0.3803, allocations: 85.19 kB / 1.211 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.346e-05/0.3804, allocations: 57.8 kB / 1.211 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.3804, allocations: 4 kB / 1.211 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.3807, allocations: 112.9 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.3807, allocations: 3.938 kB / 1.211 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14): time 0.0003793/0.3811, allocations: 185.5 kB / 1.212 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.3812, allocations: 89.05 kB / 1.212 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.3813, allocations: 151 kB / 1.212 GB, free: 5.305 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.3814, allocations: 33.7 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.815e-05/0.3814, allocations: 104.5 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 5.392e-05/0.3815, allocations: 43.53 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.557e-05/0.3816, allocations: 45.7 kB / 1.212 GB, free: 5.062 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3817, allocations: 326.8 kB / 1.212 GB, free: 4.734 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.801e-05/0.3818, allocations: 39.98 kB / 1.212 GB, free: 4.695 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002246/0.382, allocations: 205.2 kB / 1.213 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001362/0.3822, allocations: 101.6 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3822, allocations: 0 / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002298/0.3824, allocations: 157.4 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3824, allocations: 4 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/0.3825, allocations: 8 kB / 1.213 GB, free: 4.164 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3825, allocations: 3.938 kB / 1.213 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.215e-05/0.3826, allocations: 12 kB / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.3826, allocations: 0 / 1.213 GB, free: 4.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.3829, allocations: 79.83 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.3829, allocations: 8 kB / 1.213 GB, free: 4.062 MB / 0.9669 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.0001276/0.383, allocations: 133.8 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.3831, allocations: 15.83 kB / 1.213 GB, free: 3.906 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.3831, allocations: 12.72 kB / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-06/0.3831, allocations: 0 / 1.213 GB, free: 3.891 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3831, allocations: 4 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3831, allocations: 4 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001661/0.3833, allocations: 201.5 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3833, allocations: 0 / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.633e-05/0.3833, allocations: 12 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3833, allocations: 0 / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.808e-06/0.3834, allocations: 0 / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3834, allocations: 4 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3834, allocations: 0 / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.3836, allocations: 190.3 kB / 1.213 GB, free: 3.414 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.9e-05/0.3837, allocations: 92.86 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.921e-05/0.3837, allocations: 4 kB / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.932e-05/0.3837, allocations: 0 / 1.214 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.3838, allocations: 11.98 kB / 1.214 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.3838, allocations: 4 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.621e-05/0.3839, allocations: 112.6 kB / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3839, allocations: 0 / 1.214 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003035/0.3842, allocations: 72 kB / 1.214 GB, free: 3.105 MB / 0.9669 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.0006541/0.3849, allocations: 0.7791 MB / 1.214 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002712/0.3851, allocations: 171.5 kB / 1.215 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3852, allocations: 0 / 1.215 GB, free: 2.117 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 6.625e-05/0.3852, allocations: 39.98 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001636/0.3854, allocations: 19.92 kB / 1.215 GB, free: 2.059 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.3871, allocations: 1.706 MB / 1.216 GB, free: 268 kB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.3874, allocations: 0.708 MB / 1.217 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.331e-05/0.3875, allocations: 8.656 kB / 1.217 GB, free: 15.52 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.689e-05/0.3875, allocations: 27.44 kB / 1.217 GB, free: 15.49 MB / 0.9825 GB Notification: Performance of SimCode: time 8.32e-07/0.3876, allocations: 4 kB / 1.217 GB, free: 15.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.4087, allocations: 4.019 MB / 1.221 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.476, allocations: 13.05 kB / 1.221 GB, free: 11.59 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.firstEntryOccupied,occSchDay.occupancy[1],occSchDay.occupancy[2],occSchDay.occupied,occSchDay.period,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchWee.firstEntryOccupied,occSchWee.occupancy[10],occSchWee.occupancy[11],occSchWee.occupancy[12],occSchWee.occupancy[1],occSchWee.occupancy[2],occSchWee.occupancy[3],occSchWee.occupancy[4],occSchWee.occupancy[5],occSchWee.occupancy[6],occSchWee.occupancy[7],occSchWee.occupancy[8],occSchWee.occupancy[9],occSchWee.occupied,occSchWee.period,occSchWee.tNexNonOcc,occSchWee.tNexOcc,time