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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.006245/0.006245, allocations: 96.7 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.001314/0.001314, allocations: 194.1 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.841/2.841, allocations: 469.4 MB / 0.7421 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 63.89 kB / 1.064 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4447/0.4463, allocations: 159.1 MB / 1.22 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004234/0.4506, allocations: 1.42 MB / 1.221 GB, free: 13.31 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.4521, allocations: 498.3 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.287e-05/0.4522, allocations: 0 / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.4524, allocations: 7.938 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.4525, allocations: 11.91 kB / 1.222 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.4538, allocations: 234.9 kB / 1.222 GB, free: 12.58 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.4541, allocations: 147.7 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.671e-05/0.4542, allocations: 15.94 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.4543, allocations: 63.89 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.4545, allocations: 35.84 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.729e-05/0.4545, allocations: 12 kB / 1.222 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004126/0.4549, allocations: 163.8 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.455, allocations: 39.89 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.4552, allocations: 47.8 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005326/0.4557, allocations: 235.2 kB / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/0.4557, allocations: 4 kB / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.545e-06/0.4557, allocations: 0 / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.635e-06/0.4557, allocations: 0 / 1.223 GB, free: 11.83 MB / 0.9825 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.0008115/0.4566, allocations: 450.7 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.031e-05/0.4566, allocations: 12.03 kB / 1.223 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.116e-05/0.4567, allocations: 38.67 kB / 1.223 GB, free: 11.28 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.694e-05/0.4568, allocations: 12.89 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.4571, allocations: 217.6 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.4571, allocations: 12.38 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.4572, allocations: 12.38 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.4574, allocations: 87.88 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.429e-05/0.4574, allocations: 3.938 kB / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.4574, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-06/0.4575, allocations: 0 / 1.223 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.784e-05/0.4576, allocations: 39.92 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003938/0.458, allocations: 234.5 kB / 1.224 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.4581, allocations: 85.14 kB / 1.224 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.4582, allocations: 57.84 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.4583, allocations: 3.938 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003757/0.4587, allocations: 109 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.4587, allocations: 0 / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0004805/0.4591, allocations: 189.6 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/0.4593, allocations: 85.11 kB / 1.224 GB, free: 9.984 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.4595, allocations: 159.6 kB / 1.224 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.4595, allocations: 33.7 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.418e-05/0.4596, allocations: 104.5 kB / 1.224 GB, free: 9.672 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.364e-05/0.4597, allocations: 31.73 kB / 1.224 GB, free: 9.641 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001079/0.4598, allocations: 53.7 kB / 1.224 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.46, allocations: 326.8 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.919e-05/0.46, allocations: 39.98 kB / 1.225 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002549/0.4603, allocations: 197.5 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001599/0.4605, allocations: 97.58 kB / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.4605, allocations: 4 kB / 1.225 GB, free: 8.863 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002704/0.4608, allocations: 169.5 kB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.4608, allocations: 9.812 kB / 1.225 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.749e-05/0.4608, allocations: 4 kB / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.4608, allocations: 0 / 1.225 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.211e-05/0.4609, allocations: 15.94 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.461, allocations: 0 / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/0.4613, allocations: 79.78 kB / 1.225 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.4613, allocations: 8 kB / 1.225 GB, free: 8.578 MB / 0.9825 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.0001509/0.4615, allocations: 130.3 kB / 1.226 GB, free: 8.441 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.169e-05/0.4615, allocations: 15.88 kB / 1.226 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.165e-05/0.4615, allocations: 12.72 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.4616, allocations: 7.938 kB / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.4616, allocations: 0 / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.4616, allocations: 0 / 1.226 GB, free: 8.398 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002114/0.4618, allocations: 201.5 kB / 1.226 GB, free: 8.152 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4618, allocations: 4 kB / 1.226 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.686e-05/0.4619, allocations: 11.94 kB / 1.226 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.4619, allocations: 0 / 1.226 GB, free: 8.137 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.4619, allocations: 4 kB / 1.226 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4619, allocations: 0 / 1.226 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.4619, allocations: 0 / 1.226 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.4622, allocations: 187.8 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-05/0.4623, allocations: 92.95 kB / 1.226 GB, free: 7.82 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.4623, allocations: 4 kB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.931e-05/0.4623, allocations: 8 kB / 1.226 GB, free: 7.809 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.065e-05/0.4624, allocations: 3.984 kB / 1.226 GB, free: 7.805 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.4624, allocations: 4 kB / 1.226 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 9.282e-05/0.4625, allocations: 113.3 kB / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.404e-06/0.4625, allocations: 0 / 1.226 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003822/0.4629, allocations: 75.81 kB / 1.226 GB, free: 7.617 MB / 0.9825 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.0008551/0.4638, allocations: 0.7848 MB / 1.227 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003311/0.4641, allocations: 159.3 kB / 1.227 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4641, allocations: 4 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.835e-05/0.4642, allocations: 43.92 kB / 1.227 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.4644, allocations: 7.984 kB / 1.227 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.4666, allocations: 1.72 MB / 1.229 GB, free: 4.77 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.467, allocations: 0.7041 MB / 1.23 GB, free: 4.039 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.881e-05/0.4671, allocations: 12.83 kB / 1.23 GB, free: 4.023 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.235e-05/0.4672, allocations: 27.44 kB / 1.23 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of SimCode: time 4.2e-07/0.4672, allocations: 0 / 1.23 GB, free: 3.996 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.4917, allocations: 3.987 MB / 1.233 GB, free: 140 kB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.489/8.981, allocations: 13.44 kB / 1.234 GB, free: 132 kB / 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv --start-time -86400 --stop-time 1.2096e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 518.4 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.csv","/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) "Warning: Resultfile and Reference have different end time points! Reffile[561]=1209600.000000 File[1]=-86400.000000 Error: Could not read variable occSchDay.occupied in file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! " Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:time,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchWee.tNexNonOcc,occSchWee.tNexOcc,occSchDay.occupancy[1]