Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001653/0.001653, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001979/0.001979, allocations: 216.3 kB / 22.24 MB, free: 5.258 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.624/1.624, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.347/3.347, allocations: 0.49 GB / 0.7951 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.SetPoints.Examples.OccupancySchedule,fileNamePrefix="Buildings_12_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.002093/0.002093, allocations: 66.64 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.4174, allocations: 176.1 MB / 1.326 GB, free: 1.535 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003044/0.4204, allocations: 1.433 MB / 1.327 GB, free: 100 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0009369/0.4214, allocations: 454.4 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.872e-05/0.4214, allocations: 0 / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 7.92e-05/0.4215, allocations: 7.938 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 5.793e-05/0.4215, allocations: 7.922 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008254/0.4224, allocations: 245 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002287/0.4226, allocations: 147.7 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.423e-05/0.4226, allocations: 3.984 kB / 1.328 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.359e-05/0.4227, allocations: 63.91 kB / 1.328 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.977e-05/0.4228, allocations: 39.83 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.4228, allocations: 12 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003365/0.4232, allocations: 199.8 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.393e-05/0.4232, allocations: 31.91 kB / 1.328 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.529e-05/0.4233, allocations: 47.78 kB / 1.328 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003476/0.4237, allocations: 235.6 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.4237, allocations: 0 / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.523e-06/0.4237, allocations: 0 / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.4237, allocations: 4 kB / 1.329 GB, free: 14.63 MB / 1.029 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.0005923/0.4243, allocations: 369.6 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.4243, allocations: 11.97 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.161e-05/0.4244, allocations: 42.73 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.437e-05/0.4244, allocations: 16.84 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.4246, allocations: 150.3 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.4247, allocations: 8.312 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.4247, allocations: 16.38 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001609/0.4249, allocations: 79.94 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.4249, allocations: 7.875 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.4249, allocations: 8 kB / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.4249, allocations: 0 / 1.329 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.906e-05/0.425, allocations: 35.98 kB / 1.329 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003084/0.4253, allocations: 177.7 kB / 1.33 GB, free: 13.6 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001377/0.4254, allocations: 73.14 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/0.4255, allocations: 57.83 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.4255, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002712/0.4258, allocations: 114.4 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.4258, allocations: 3.938 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0003835/0.4262, allocations: 189.5 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.071e-05/0.4263, allocations: 85.05 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.4264, allocations: 151.5 kB / 1.33 GB, free: 12.87 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/0.4265, allocations: 33.7 kB / 1.33 GB, free: 12.83 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.549e-05/0.4266, allocations: 112.4 kB / 1.33 GB, free: 12.71 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.4266, allocations: 39.69 kB / 1.33 GB, free: 12.67 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-05/0.4267, allocations: 49.7 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.4269, allocations: 322.8 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.301e-05/0.4269, allocations: 43.92 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.4275, allocations: 0.6141 MB / 1.331 GB, free: 11.48 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.4276, allocations: 93.64 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4276, allocations: 4 kB / 1.331 GB, free: 11.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002508/0.4279, allocations: 161.4 kB / 1.332 GB, free: 11.22 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4279, allocations: 11.94 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.165e-05/0.4279, allocations: 4 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4279, allocations: 4 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.981e-05/0.428, allocations: 7.984 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.428, allocations: 4 kB / 1.332 GB, free: 11.19 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.4283, allocations: 79.8 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.265e-05/0.4283, allocations: 4 kB / 1.332 GB, free: 11.11 MB / 1.029 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.0001497/0.4284, allocations: 135 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.354e-05/0.4285, allocations: 15.89 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.4285, allocations: 12.72 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.4285, allocations: 4 kB / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.4285, allocations: 0 / 1.332 GB, free: 10.93 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.4285, allocations: 3.984 kB / 1.332 GB, free: 10.92 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.4288, allocations: 164.6 kB / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4288, allocations: 0 / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.4288, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.177e-06/0.4288, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.227e-05/0.4288, allocations: 4 kB / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.4288, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4288, allocations: 0 / 1.332 GB, free: 10.71 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002835/0.4291, allocations: 189.7 kB / 1.332 GB, free: 10.5 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.57e-05/0.4291, allocations: 11.95 kB / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.4291, allocations: 0 / 1.332 GB, free: 10.49 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.048e-05/0.4292, allocations: 4 kB / 1.332 GB, free: 10.48 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.4292, allocations: 11.98 kB / 1.332 GB, free: 10.47 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-06/0.4292, allocations: 0 / 1.332 GB, free: 10.47 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.101e-05/0.4293, allocations: 117.6 kB / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of sort global known variables: time 8.1e-08/0.4293, allocations: 0 / 1.332 GB, free: 10.36 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003387/0.4297, allocations: 83.8 kB / 1.332 GB, free: 10.28 MB / 1.029 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.0008362/0.4305, allocations: 0.7723 MB / 1.333 GB, free: 9.477 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002796/0.4308, allocations: 159.5 kB / 1.333 GB, free: 9.309 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4308, allocations: 3.938 kB / 1.333 GB, free: 9.305 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.187e-05/0.4309, allocations: 40.06 kB / 1.333 GB, free: 9.266 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001746/0.431, allocations: 12 kB / 1.333 GB, free: 9.254 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.4331, allocations: 1.721 MB / 1.335 GB, free: 7.438 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.759e-05/0.4332, allocations: 92.94 kB / 1.335 GB, free: 7.32 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.435e-05/0.4333, allocations: 12.66 kB / 1.335 GB, free: 7.309 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.469e-05/0.4333, allocations: 31.44 kB / 1.335 GB, free: 7.277 MB / 1.029 GB Notification: Performance of SimCode: time 1.152e-06/0.4333, allocations: 0 / 1.335 GB, free: 7.277 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0353/0.4686, allocations: 4.735 MB / 1.34 GB, free: 2.715 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.13/11.59, allocations: 8.047 kB / 1.34 GB, free: 2.707 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; mkfifo Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe >> ../files/Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_SetPoints_Examples_OccupancySchedule.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchDay.occupied from file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! Error: Could not read variable occSchWee.occupied in file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv. Warning: Get data of variable occSchWee.occupied from file Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.005167879979126]