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: "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_9_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.01293/0.01293, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.001744/0.001744, allocations: 187.5 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.529/1.529, 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 9.1.3-maint.9.1.x/package.mo): time 2.678/2.678, allocations: 390.2 MB / 0.6648 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 66.47 kB / 0.9504 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3595, allocations: 140.4 MB / 1.087 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004111/0.3637, allocations: 1.415 MB / 1.089 GB, free: 0.7188 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001238/0.3649, allocations: 0.4958 MB / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.626e-05/0.365, allocations: 0 / 1.089 GB, free: 228 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.3653, allocations: 7.938 kB / 1.089 GB, free: 220 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001014/0.3654, allocations: 11.91 kB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.3667, allocations: 235.5 kB / 1.09 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003612/0.3671, allocations: 143.7 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 7.41e-05/0.3672, allocations: 4 kB / 1.09 GB, free: 15.83 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.3673, allocations: 59.89 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.3675, allocations: 47.77 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.532e-05/0.3675, allocations: 12 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004143/0.3679, allocations: 163.8 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3681, allocations: 39.89 kB / 1.09 GB, free: 15.51 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.3682, allocations: 55.78 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005696/0.3688, allocations: 234.2 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.3688, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.596e-06/0.3688, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.161e-05/0.3688, allocations: 0 / 1.09 GB, free: 15.23 MB / 0.8575 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.001005/0.3698, allocations: 447.9 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.95e-05/0.3699, allocations: 12.03 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.03e-05/0.37, allocations: 34.75 kB / 1.091 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/0.3701, allocations: 12.84 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003577/0.3704, allocations: 212 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.004e-05/0.3705, allocations: 12.38 kB / 1.091 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.387e-05/0.3705, allocations: 12.36 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000238/0.3708, allocations: 83.95 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.3708, allocations: 3.938 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.3708, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3708, allocations: 0 / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.3709, allocations: 43.91 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003642/0.3713, allocations: 230.5 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001691/0.3715, allocations: 81.23 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.3716, allocations: 61.69 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3716, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003518/0.372, allocations: 118.5 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.673e-06/0.372, allocations: 0 / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.000454/0.3725, allocations: 185.4 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.749e-05/0.3726, allocations: 85.09 kB / 1.092 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.3727, allocations: 151.5 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.862e-05/0.3728, allocations: 33.7 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.123e-05/0.3729, allocations: 104.5 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.831e-05/0.373, allocations: 35.55 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.3731, allocations: 49.7 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000169/0.3733, allocations: 326.8 kB / 1.093 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.256e-05/0.3734, allocations: 43.98 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.3736, allocations: 205.6 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.3738, allocations: 93.64 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.3738, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002911/0.3741, allocations: 169.2 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3742, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.193e-05/0.3742, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.214e-05/0.3742, allocations: 0 / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.3743, allocations: 15.92 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.3744, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003254/0.3747, allocations: 79.75 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.3747, allocations: 4 kB / 1.093 GB, free: 12.01 MB / 0.8575 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.0001631/0.3749, allocations: 137.8 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/0.3749, allocations: 11.84 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/0.375, allocations: 12.72 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.375, allocations: 4 kB / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.375, allocations: 96 / 1.093 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.375, allocations: 7.969 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002162/0.3752, allocations: 193.5 kB / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3752, allocations: 0 / 1.093 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.809e-05/0.3753, allocations: 23.86 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.3753, allocations: 0 / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.3753, allocations: 4 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3753, allocations: 4 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3754, allocations: 0 / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.3756, allocations: 177.8 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.408e-05/0.3757, allocations: 92.95 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.3758, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.79e-05/0.3758, allocations: 7.984 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.3759, allocations: 4 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-06/0.3759, allocations: 8 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001101/0.376, allocations: 117.2 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.51e-07/0.376, allocations: 3.938 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004008/0.3764, allocations: 71.98 kB / 1.094 GB, free: 11.05 MB / 0.8575 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.0008199/0.3772, allocations: 0.7892 MB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.3776, allocations: 163.3 kB / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.3776, allocations: 0 / 1.095 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.99e-05/0.3777, allocations: 47.92 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001972/0.3779, allocations: 4 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.3802, allocations: 1.719 MB / 1.097 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.3806, allocations: 0.7039 MB / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.491e-05/0.3806, allocations: 12.66 kB / 1.097 GB, free: 7.457 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.338e-05/0.3807, allocations: 31.42 kB / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of SimCode: time 1.373e-06/0.3807, allocations: 0 / 1.097 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04315/0.4239, allocations: 4.011 MB / 1.101 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.286/8.71, allocations: 8 kB / 1.101 GB, free: 3.527 MB / 0.8575 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > 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.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