Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_10_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.007916/0.007916, allocations: 96.95 kB / 15.73 MB, free: 6.484 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.00187/0.001871, allocations: 192.2 kB / 16.67 MB, free: 6.391 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.524/1.524, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.918/2.918, allocations: 437 MB / 0.7105 GB, free: 5.016 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 63.89 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4703/0.4722, allocations: 151.6 MB / 1.166 GB, free: 7.32 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003246/0.4755, allocations: 1.418 MB / 1.168 GB, free: 5.887 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001125/0.4767, allocations: 0.4983 MB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.836e-05/0.4767, allocations: 0 / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.4769, allocations: 7.922 kB / 1.168 GB, free: 5.379 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.095e-05/0.477, allocations: 11.92 kB / 1.168 GB, free: 5.367 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008811/0.4778, allocations: 234.7 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002883/0.4781, allocations: 143.8 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.802e-05/0.4782, allocations: 4 kB / 1.168 GB, free: 4.996 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.628e-05/0.4783, allocations: 59.83 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.4784, allocations: 39.83 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.64e-05/0.4785, allocations: 12 kB / 1.168 GB, free: 4.887 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003225/0.4788, allocations: 171.8 kB / 1.169 GB, free: 4.719 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.95e-05/0.4789, allocations: 35.89 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001215/0.479, allocations: 63.73 kB / 1.169 GB, free: 4.621 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004082/0.4794, allocations: 235.5 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.267e-06/0.4794, allocations: 4 kB / 1.169 GB, free: 4.387 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.965e-06/0.4795, allocations: 0 / 1.169 GB, free: 4.387 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.237e-06/0.4795, allocations: 0 / 1.169 GB, free: 4.387 MB / 0.92 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.0008369/0.4803, allocations: 454.6 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.4804, allocations: 8.031 kB / 1.169 GB, free: 3.883 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.69e-05/0.4804, allocations: 34.75 kB / 1.169 GB, free: 3.84 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.706e-05/0.4805, allocations: 16.89 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.4808, allocations: 208.2 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.4808, allocations: 12.31 kB / 1.17 GB, free: 3.57 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.419e-05/0.4809, allocations: 8.375 kB / 1.17 GB, free: 3.562 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.4811, allocations: 79.95 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.4811, allocations: 3.938 kB / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.4811, allocations: 0 / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.4811, allocations: 0 / 1.17 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.411e-05/0.4812, allocations: 39.97 kB / 1.17 GB, free: 3.43 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003484/0.4816, allocations: 246.4 kB / 1.17 GB, free: 3.137 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.4817, allocations: 77.23 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.957e-05/0.4818, allocations: 53.81 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.697e-05/0.4819, allocations: 0 / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003372/0.4822, allocations: 121 kB / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.4822, allocations: 0 / 1.17 GB, free: 2.848 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0004451/0.4827, allocations: 181.5 kB / 1.17 GB, free: 2.664 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.131e-05/0.4828, allocations: 93.03 kB / 1.171 GB, free: 2.555 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.483, allocations: 152.3 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.956e-05/0.483, allocations: 33.7 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.4831, allocations: 104.5 kB / 1.171 GB, free: 2.25 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 6.031e-05/0.4832, allocations: 35.73 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.177e-05/0.4833, allocations: 53.69 kB / 1.171 GB, free: 2.156 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0002122/0.4835, allocations: 322.8 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.917e-05/0.4836, allocations: 39.98 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002814/0.4839, allocations: 203.3 kB / 1.171 GB, free: 1.539 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001784/0.4841, allocations: 93.64 kB / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4841, allocations: 0 / 1.172 GB, free: 1.441 MB / 0.92 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002886/0.4844, allocations: 165.4 kB / 1.172 GB, free: 1.273 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4844, allocations: 8 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.064e-05/0.4844, allocations: 7.984 kB / 1.172 GB, free: 1.258 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.4845, allocations: 7.938 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.91e-05/0.4846, allocations: 12 kB / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.738e-06/0.4846, allocations: 0 / 1.172 GB, free: 1.238 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.4849, allocations: 75.8 kB / 1.172 GB, free: 1.164 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/0.4849, allocations: 4 kB / 1.172 GB, free: 1.16 MB / 0.92 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.0001586/0.4851, allocations: 137.8 kB / 1.172 GB, free: 1.016 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.218e-05/0.4851, allocations: 11.89 kB / 1.172 GB, free: 1.004 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.4851, allocations: 20.7 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.4852, allocations: 0 / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.4852, allocations: 0 / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.4852, allocations: 4 kB / 1.172 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.4854, allocations: 201.5 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4854, allocations: 3.984 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.444e-05/0.4855, allocations: 4 kB / 1.172 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.459e-06/0.4855, allocations: 7.938 kB / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.4855, allocations: 0 / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.4855, allocations: 0 / 1.172 GB, free: 0.7188 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4855, allocations: 3.938 kB / 1.172 GB, free: 0.7148 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.4858, allocations: 182.5 kB / 1.172 GB, free: 0.5156 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.602e-05/0.4859, allocations: 89.02 kB / 1.172 GB, free: 420 kB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.896e-05/0.4859, allocations: 7.984 kB / 1.172 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.045e-05/0.486, allocations: 4 kB / 1.172 GB, free: 408 kB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.913e-05/0.486, allocations: 4 kB / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-06/0.486, allocations: 0 / 1.172 GB, free: 404 kB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001014/0.4861, allocations: 117.1 kB / 1.173 GB, free: 288 kB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4861, allocations: 0 / 1.173 GB, free: 288 kB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003799/0.4865, allocations: 79.8 kB / 1.173 GB, free: 208 kB / 0.92 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.0008477/0.4874, allocations: 0.7836 MB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00033/0.4877, allocations: 175.4 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4877, allocations: 0 / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.417e-05/0.4878, allocations: 51.92 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001877/0.488, allocations: 8 kB / 1.174 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.4902, allocations: 1.711 MB / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.4906, allocations: 0.7002 MB / 1.176 GB, free: 12.62 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.498e-05/0.4907, allocations: 8.672 kB / 1.176 GB, free: 12.61 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.213e-05/0.4907, allocations: 35.42 kB / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of SimCode: time 8.61e-07/0.4907, allocations: 0 / 1.176 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03304/0.5238, allocations: 3.968 MB / 1.18 GB, free: 8.727 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.669/9.193, allocations: 10.94 kB / 1.18 GB, free: 8.719 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_10_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_10_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]