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.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.001902/0.001902, allocations: 111 kB / 16.46 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.002481/0.002481, allocations: 213.7 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.643/1.643, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.475/3.475, allocations: 0.505 GB / 0.8066 GB, free: 23.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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"}) [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.002097/0.002097, allocations: 62.72 kB / 1.172 GB, free: 17.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4889/0.491, allocations: 180.2 MB / 1.348 GB, free: 10.01 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.004251/0.4952, allocations: 1.435 MB / 1.349 GB, free: 8.562 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001301/0.4965, allocations: 0.4909 MB / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.316e-05/0.4966, allocations: 0 / 1.35 GB, free: 8.07 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001243/0.4967, allocations: 11.88 kB / 1.35 GB, free: 8.059 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 8.35e-05/0.4968, allocations: 11.92 kB / 1.35 GB, free: 8.047 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.4979, allocations: 226.1 kB / 1.35 GB, free: 7.828 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003415/0.4982, allocations: 151.7 kB / 1.35 GB, free: 7.68 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 6.787e-05/0.4983, allocations: 4 kB / 1.35 GB, free: 7.676 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 8.903e-05/0.4984, allocations: 51.91 kB / 1.35 GB, free: 7.625 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.4985, allocations: 51.81 kB / 1.35 GB, free: 7.574 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 4.624e-05/0.4986, allocations: 12 kB / 1.35 GB, free: 7.562 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003687/0.4989, allocations: 171.8 kB / 1.35 GB, free: 7.395 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.499, allocations: 35.91 kB / 1.35 GB, free: 7.359 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.4992, allocations: 51.78 kB / 1.35 GB, free: 7.309 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0005275/0.4997, allocations: 243.5 kB / 1.351 GB, free: 7.07 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.4997, allocations: 0 / 1.351 GB, free: 7.07 MB / 1.045 GB Notification: Performance of FrontEnd: time 4.448e-06/0.4997, allocations: 0 / 1.351 GB, free: 7.07 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.325e-05/0.4997, allocations: 0 / 1.351 GB, free: 7.07 MB / 1.045 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.001111/0.5008, allocations: 458.7 kB / 1.351 GB, free: 6.57 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 7.639e-05/0.5009, allocations: 15.98 kB / 1.351 GB, free: 6.555 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.921e-05/0.501, allocations: 30.75 kB / 1.351 GB, free: 6.516 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.104e-05/0.501, allocations: 20.88 kB / 1.351 GB, free: 6.496 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.5014, allocations: 209.9 kB / 1.351 GB, free: 6.254 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.5014, allocations: 4.375 kB / 1.351 GB, free: 6.25 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.146e-05/0.5015, allocations: 16.38 kB / 1.351 GB, free: 6.234 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.5017, allocations: 79.95 kB / 1.351 GB, free: 6.145 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.5018, allocations: 15.86 kB / 1.351 GB, free: 6.129 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.5018, allocations: 0 / 1.351 GB, free: 6.129 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.5018, allocations: 0 / 1.351 GB, free: 6.129 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001173/0.5019, allocations: 43.91 kB / 1.351 GB, free: 6.086 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.5023, allocations: 222.5 kB / 1.352 GB, free: 5.816 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.5025, allocations: 81.19 kB / 1.352 GB, free: 5.719 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001008/0.5026, allocations: 49.81 kB / 1.352 GB, free: 5.664 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.5026, allocations: 4 kB / 1.352 GB, free: 5.66 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.503, allocations: 119.1 kB / 1.352 GB, free: 5.527 MB / 1.045 GB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.503, allocations: 0 / 1.352 GB, free: 5.527 MB / 1.045 GB Notification: Performance of matching and sorting (n=14): time 0.0005034/0.5035, allocations: 189.5 kB / 1.352 GB, free: 5.336 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.5036, allocations: 85.11 kB / 1.352 GB, free: 5.234 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.5038, allocations: 147.5 kB / 1.352 GB, free: 5.082 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 6.52e-05/0.5038, allocations: 37.7 kB / 1.352 GB, free: 5.039 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.5039, allocations: 100.5 kB / 1.352 GB, free: 4.934 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 8.536e-05/0.504, allocations: 39.73 kB / 1.352 GB, free: 4.895 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.217e-05/0.5041, allocations: 53.62 kB / 1.353 GB, free: 4.836 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001714/0.5043, allocations: 326.8 kB / 1.353 GB, free: 4.508 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.802e-05/0.5044, allocations: 39.98 kB / 1.353 GB, free: 4.469 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002852/0.5047, allocations: 201.2 kB / 1.353 GB, free: 4.219 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001877/0.5048, allocations: 97.64 kB / 1.353 GB, free: 4.117 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.5049, allocations: 0 / 1.353 GB, free: 4.117 MB / 1.045 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002909/0.5051, allocations: 169.3 kB / 1.353 GB, free: 3.945 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.5052, allocations: 7.984 kB / 1.353 GB, free: 3.938 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.034e-05/0.5052, allocations: 4 kB / 1.353 GB, free: 3.934 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.5052, allocations: 0 / 1.353 GB, free: 3.934 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.5053, allocations: 12 kB / 1.353 GB, free: 3.922 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.5053, allocations: 4.562 kB / 1.353 GB, free: 3.918 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003339/0.5057, allocations: 67.86 kB / 1.353 GB, free: 3.852 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.5057, allocations: 8 kB / 1.353 GB, free: 3.844 MB / 1.045 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.0001752/0.5059, allocations: 141.8 kB / 1.354 GB, free: 3.695 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.761e-05/0.5059, allocations: 11.89 kB / 1.354 GB, free: 3.684 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.908e-05/0.5059, allocations: 16.7 kB / 1.354 GB, free: 3.664 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.5059, allocations: 0 / 1.354 GB, free: 3.664 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.506, allocations: 0 / 1.354 GB, free: 3.664 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.506, allocations: 4 kB / 1.354 GB, free: 3.66 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002213/0.5062, allocations: 197.5 kB / 1.354 GB, free: 3.418 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.5062, allocations: 0 / 1.354 GB, free: 3.418 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.548e-05/0.5062, allocations: 8 kB / 1.354 GB, free: 3.41 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.5062, allocations: 4.094 kB / 1.354 GB, free: 3.406 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.5062, allocations: 3.984 kB / 1.354 GB, free: 3.402 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5062, allocations: 11.94 kB / 1.354 GB, free: 3.391 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.5062, allocations: 7.938 kB / 1.354 GB, free: 3.383 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002746/0.5065, allocations: 177.8 kB / 1.354 GB, free: 3.188 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.671e-05/0.5066, allocations: 89.02 kB / 1.354 GB, free: 3.082 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.9e-05/0.5066, allocations: 7.984 kB / 1.354 GB, free: 3.074 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.794e-05/0.5066, allocations: 0 / 1.354 GB, free: 3.074 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.5067, allocations: 12 kB / 1.354 GB, free: 3.062 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.5067, allocations: 7.984 kB / 1.354 GB, free: 3.055 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.38e-05/0.5068, allocations: 112.6 kB / 1.354 GB, free: 2.945 MB / 1.045 GB Notification: Performance of sort global known variables: time 7e-08/0.5068, allocations: 0 / 1.354 GB, free: 2.945 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0003596/0.5072, allocations: 79.8 kB / 1.354 GB, free: 2.867 MB / 1.045 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.0008021/0.508, allocations: 0.7731 MB / 1.355 GB, free: 2.062 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003135/0.5083, allocations: 163.3 kB / 1.355 GB, free: 1.891 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5083, allocations: 0 / 1.355 GB, free: 1.891 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.112e-05/0.5084, allocations: 39.92 kB / 1.355 GB, free: 1.852 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000185/0.5085, allocations: 9.875 kB / 1.355 GB, free: 1.844 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002034/0.5106, allocations: 1.713 MB / 1.357 GB, free: 40 kB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003936/0.511, allocations: 0.7041 MB / 1.358 GB, free: 15.31 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 4.412e-05/0.511, allocations: 4.672 kB / 1.358 GB, free: 15.3 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.04e-05/0.5111, allocations: 35.42 kB / 1.358 GB, free: 15.27 MB / 1.061 GB Notification: Performance of SimCode: time 5.11e-07/0.5111, allocations: 0 / 1.358 GB, free: 15.27 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.5425, allocations: 3.998 MB / 1.362 GB, free: 11.39 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.496/9.039, allocations: 7.984 kB / 1.362 GB, free: 11.39 MB / 1.061 GB " [Timeout remaining time 291] (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 800 --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) [Timeout 840.0] 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) [Timeout 300] "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! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.856045132968575]