Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_11_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.008543/0.008543, allocations: 99.69 kB / 15.73 MB, free: 6.043 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.001737/0.001737, allocations: 192.3 kB / 16.67 MB, free: 5.953 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.839/2.839, allocations: 469.8 MB / 0.7425 GB, free: 3.32 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 67.89 kB / 1.065 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.172/1.174, allocations: 159.1 MB / 1.22 GB, free: 2.043 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003169/1.177, allocations: 1.402 MB / 1.221 GB, free: 0.6328 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001265/1.179, allocations: 0.4983 MB / 1.222 GB, free: 136 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.443e-05/1.179, allocations: 8 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/1.179, allocations: 3.938 kB / 1.222 GB, free: 124 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.172e-05/1.179, allocations: 15.86 kB / 1.222 GB, free: 108 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001096/1.18, allocations: 218.2 kB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0003334/1.18, allocations: 155.7 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.075e-05/1.18, allocations: 11.94 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001051/1.181, allocations: 55.91 kB / 1.222 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/1.181, allocations: 47.81 kB / 1.222 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.716e-05/1.181, allocations: 12 kB / 1.222 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003689/1.181, allocations: 163.8 kB / 1.223 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001053/1.181, allocations: 35.91 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0001122/1.181, allocations: 55.77 kB / 1.223 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004705/1.182, allocations: 231 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/1.182, allocations: 0 / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of FrontEnd: time 2.935e-06/1.182, allocations: 4 kB / 1.223 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.563e-05/1.182, allocations: 0 / 1.223 GB, free: 15.14 MB / 0.9512 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.0009935/1.183, allocations: 462.6 kB / 1.223 GB, free: 14.64 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 7.001e-05/1.183, allocations: 12.02 kB / 1.223 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.721e-05/1.183, allocations: 34.75 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.349e-05/1.183, allocations: 12.89 kB / 1.223 GB, free: 14.57 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/1.183, allocations: 204.2 kB / 1.224 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/1.184, allocations: 8.375 kB / 1.224 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/1.184, allocations: 16.36 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/1.184, allocations: 87.89 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/1.184, allocations: 3.938 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.238e-05/1.184, allocations: 0 / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/1.184, allocations: 0 / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.897e-05/1.184, allocations: 35.98 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003317/1.184, allocations: 234.5 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001615/1.184, allocations: 81.14 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/1.185, allocations: 57.84 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.035e-05/1.185, allocations: 3.938 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002962/1.185, allocations: 115.8 kB / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/1.185, allocations: 0 / 1.224 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14): time 0.000394/1.185, allocations: 185.5 kB / 1.224 GB, free: 13.41 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.717e-05/1.185, allocations: 93.05 kB / 1.225 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000174/1.186, allocations: 152 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/1.186, allocations: 33.7 kB / 1.225 GB, free: 13.11 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 9.425e-05/1.186, allocations: 104.5 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/1.186, allocations: 35.72 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.227e-05/1.186, allocations: 49.7 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001606/1.186, allocations: 326.8 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.332e-05/1.186, allocations: 43.98 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/1.186, allocations: 195.4 kB / 1.225 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/1.187, allocations: 101.5 kB / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.187, allocations: 0 / 1.226 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000252/1.187, allocations: 165.4 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/1.187, allocations: 11.94 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/1.187, allocations: 0 / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/1.187, allocations: 4 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.442e-05/1.187, allocations: 8.078 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/1.187, allocations: 4 kB / 1.226 GB, free: 11.99 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/1.187, allocations: 75.8 kB / 1.226 GB, free: 11.91 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.402e-05/1.187, allocations: 7.984 kB / 1.226 GB, free: 11.91 MB / 0.9512 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.0001332/1.188, allocations: 141.7 kB / 1.226 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/1.188, allocations: 15.89 kB / 1.226 GB, free: 11.74 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.239e-05/1.188, allocations: 8.719 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/1.188, allocations: 4 kB / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/1.188, allocations: 0 / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/1.188, allocations: 0 / 1.226 GB, free: 11.72 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/1.188, allocations: 205.4 kB / 1.226 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/1.188, allocations: 4 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.397e-05/1.188, allocations: 4 kB / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/1.188, allocations: 0 / 1.226 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/1.188, allocations: 12 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/1.188, allocations: 3.984 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.188, allocations: 0 / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002774/1.188, allocations: 181.8 kB / 1.226 GB, free: 11.25 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.95e-05/1.188, allocations: 89.02 kB / 1.226 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/1.188, allocations: 0 / 1.226 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.267e-05/1.188, allocations: 8 kB / 1.226 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/1.188, allocations: 7.984 kB / 1.226 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/1.188, allocations: 4 kB / 1.226 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000109/1.189, allocations: 117.5 kB / 1.227 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of sort global known variables: time 3.005e-06/1.189, allocations: 0 / 1.227 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003766/1.189, allocations: 75.8 kB / 1.227 GB, free: 10.93 MB / 0.9512 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.00101/1.19, allocations: 0.795 MB / 1.227 GB, free: 10.11 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003988/1.19, allocations: 168.1 kB / 1.228 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.19, allocations: 0 / 1.228 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.63e-05/1.19, allocations: 43.98 kB / 1.228 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/1.191, allocations: 6.031 kB / 1.228 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002239/1.193, allocations: 1.716 MB / 1.229 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/1.193, allocations: 0.7002 MB / 1.23 GB, free: 7.355 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.593e-05/1.193, allocations: 8.656 kB / 1.23 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.022e-05/1.194, allocations: 31.44 kB / 1.23 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of SimCode: time 1.863e-06/1.194, allocations: 0 / 1.23 GB, free: 7.312 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02939/1.223, allocations: 3.981 MB / 1.234 GB, free: 3.457 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.714/9.937, allocations: 10.25 kB / 1.234 GB, free: 3.449 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_11_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_11_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]