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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00184/0.00184, allocations: 106.4 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002247/0.002247, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.537/1.537, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.904/2.904, allocations: 476.7 MB / 0.7672 GB, free: 5.238 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002159/0.002159, allocations: 72.17 kB / 1.112 GB, free: 1.574 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.187/1.189, allocations: 169.9 MB / 1.278 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.002979/1.192, allocations: 1.439 MB / 1.28 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001053/1.193, allocations: 0.506 MB / 1.28 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.897e-05/1.193, allocations: 4 kB / 1.28 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 8.931e-05/1.193, allocations: 3.938 kB / 1.28 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.86e-05/1.193, allocations: 11.92 kB / 1.28 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008339/1.194, allocations: 229.6 kB / 1.28 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002571/1.194, allocations: 143.8 kB / 1.281 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.528e-05/1.194, allocations: 8 kB / 1.281 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 7.981e-05/1.195, allocations: 55.89 kB / 1.281 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 9.993e-05/1.195, allocations: 51.77 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/1.195, allocations: 8 kB / 1.281 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002975/1.195, allocations: 171.8 kB / 1.281 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.753e-05/1.195, allocations: 39.89 kB / 1.281 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/1.195, allocations: 47.73 kB / 1.281 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003457/1.195, allocations: 237.1 kB / 1.281 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/1.195, allocations: 0 / 1.281 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.543e-06/1.195, allocations: 0 / 1.281 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.163e-06/1.195, allocations: 0 / 1.281 GB, free: 10.6 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.000707/1.196, allocations: 458.7 kB / 1.282 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/1.196, allocations: 8.031 kB / 1.282 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.158e-05/1.196, allocations: 38.73 kB / 1.282 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.223e-05/1.196, allocations: 12.84 kB / 1.282 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/1.197, allocations: 212.1 kB / 1.282 GB, free: 9.789 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/1.197, allocations: 4.375 kB / 1.282 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/1.197, allocations: 12.38 kB / 1.282 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/1.197, allocations: 79.95 kB / 1.282 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/1.197, allocations: 15.91 kB / 1.282 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/1.197, allocations: 0 / 1.282 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/1.197, allocations: 0 / 1.282 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.708e-05/1.197, allocations: 47.8 kB / 1.282 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003143/1.197, allocations: 230.5 kB / 1.282 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/1.197, allocations: 73.25 kB / 1.282 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.035e-05/1.198, allocations: 57.75 kB / 1.282 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.302e-05/1.198, allocations: 0 / 1.282 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/1.198, allocations: 110.7 kB / 1.282 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 9.72e-07/1.198, allocations: 0 / 1.282 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0003993/1.198, allocations: 185.5 kB / 1.283 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.766e-05/1.198, allocations: 93.09 kB / 1.283 GB, free: 8.77 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/1.198, allocations: 148 kB / 1.283 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.542e-05/1.198, allocations: 33.7 kB / 1.283 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.769e-05/1.199, allocations: 104.5 kB / 1.283 GB, free: 8.469 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.23e-05/1.199, allocations: 39.69 kB / 1.283 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/1.199, allocations: 49.7 kB / 1.283 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001804/1.199, allocations: 326.8 kB / 1.283 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.087e-05/1.199, allocations: 35.98 kB / 1.283 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/1.199, allocations: 203.3 kB / 1.284 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001828/1.199, allocations: 101.6 kB / 1.284 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.199, allocations: 0 / 1.284 GB, free: 7.652 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000268/1.2, allocations: 169.4 kB / 1.284 GB, free: 7.48 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/1.2, allocations: 4 kB / 1.284 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/1.2, allocations: 4 kB / 1.284 GB, free: 7.473 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/1.2, allocations: 4 kB / 1.284 GB, free: 7.469 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.828e-05/1.2, allocations: 11.94 kB / 1.284 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/1.2, allocations: 4 kB / 1.284 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002881/1.2, allocations: 71.83 kB / 1.284 GB, free: 7.383 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/1.2, allocations: 12 kB / 1.284 GB, free: 7.371 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.000157/1.2, allocations: 129.8 kB / 1.284 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.031e-05/1.2, allocations: 19.84 kB / 1.284 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.071e-05/1.2, allocations: 16.7 kB / 1.284 GB, free: 7.188 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/1.2, allocations: 4 kB / 1.284 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/1.2, allocations: 0 / 1.284 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/1.2, allocations: 0 / 1.284 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001983/1.201, allocations: 193.5 kB / 1.284 GB, free: 6.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/1.201, allocations: 4 kB / 1.284 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/1.201, allocations: 11.94 kB / 1.284 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/1.201, allocations: 96 / 1.284 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/1.201, allocations: 4 kB / 1.284 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/1.201, allocations: 0 / 1.284 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.201, allocations: 7.984 kB / 1.284 GB, free: 6.918 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002664/1.201, allocations: 182.4 kB / 1.284 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.823e-05/1.201, allocations: 89.05 kB / 1.285 GB, free: 6.613 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/1.201, allocations: 3.938 kB / 1.285 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.097e-05/1.201, allocations: 4 kB / 1.285 GB, free: 6.605 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.836e-05/1.201, allocations: 11.92 kB / 1.285 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-06/1.201, allocations: 4 kB / 1.285 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001045/1.201, allocations: 124.7 kB / 1.285 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/1.201, allocations: 0 / 1.285 GB, free: 6.469 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003386/1.202, allocations: 71.88 kB / 1.285 GB, free: 6.398 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.0007727/1.202, allocations: 0.7901 MB / 1.286 GB, free: 5.582 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000316/1.203, allocations: 159.4 kB / 1.286 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.203, allocations: 0 / 1.286 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.184e-05/1.203, allocations: 39.92 kB / 1.286 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/1.203, allocations: 9.875 kB / 1.286 GB, free: 5.367 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/1.205, allocations: 1.709 MB / 1.287 GB, free: 3.566 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003823/1.205, allocations: 0.708 MB / 1.288 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.829e-05/1.205, allocations: 4.672 kB / 1.288 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/1.205, allocations: 35.36 kB / 1.288 GB, free: 2.789 MB / 0.9825 GB Notification: Performance of SimCode: time 7.01e-07/1.205, allocations: 0 / 1.288 GB, free: 2.789 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03192/1.237, allocations: 3.989 MB / 1.292 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.603/9.841, allocations: 11.8 kB / 1.292 GB, free: 14.92 MB / 0.9981 GB " [Timeout remaining time 290] (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 400 --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) [Timeout 420.0] 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) [Timeout 300] "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! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.449358658865094]