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.001746/0.001746, allocations: 110.4 kB / 18.94 MB, free: 2.957 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.002244/0.002244, allocations: 214.6 kB / 22.25 MB, free: 5.129 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.642/1.642, allocations: 230.6 MB / 256 MB, free: 7.984 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.564/3.564, allocations: 0.49 GB / 0.7951 GB, free: 33.45 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.00207/0.00207, allocations: 70.34 kB / 1.154 GB, free: 25.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4982/0.5002, allocations: 176.1 MB / 1.326 GB, free: 1.969 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003415/0.5036, allocations: 1.437 MB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00098/0.5046, allocations: 0.4983 MB / 1.328 GB, free: 28 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.934e-05/0.5047, allocations: 0 / 1.328 GB, free: 28 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 9.588e-05/0.5048, allocations: 3.938 kB / 1.328 GB, free: 24 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.053e-05/0.5048, allocations: 11.88 kB / 1.328 GB, free: 12 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008666/0.5057, allocations: 241.5 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002629/0.506, allocations: 151.7 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.334e-05/0.506, allocations: 4 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 8.006e-05/0.5061, allocations: 55.91 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.5062, allocations: 51.81 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.207e-05/0.5062, allocations: 12 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003368/0.5066, allocations: 191.8 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 7.312e-05/0.5066, allocations: 39.84 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.325e-05/0.5067, allocations: 51.73 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.5071, allocations: 239.5 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.5071, allocations: 0 / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.244e-06/0.5071, allocations: 0 / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.5071, allocations: 4 kB / 1.329 GB, free: 14.99 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.0006816/0.5078, allocations: 369.6 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.5079, allocations: 12.03 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.365e-05/0.5079, allocations: 34.75 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.271e-05/0.508, allocations: 20.83 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.5082, allocations: 151.5 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.5082, allocations: 4.375 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.5083, allocations: 12.38 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001918/0.5085, allocations: 91.83 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.5085, allocations: 3.938 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.5085, allocations: 4 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.5085, allocations: 0 / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.604e-05/0.5086, allocations: 39.97 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002883/0.5089, allocations: 197.6 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000135/0.509, allocations: 81.17 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.512e-05/0.5091, allocations: 49.81 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.5091, allocations: 4 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002998/0.5094, allocations: 113 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.5094, allocations: 0 / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.000374/0.5098, allocations: 193.5 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.662e-05/0.5099, allocations: 85.09 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.51, allocations: 155.5 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.5101, allocations: 33.7 kB / 1.33 GB, free: 13.17 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.154e-05/0.5102, allocations: 100.5 kB / 1.33 GB, free: 13.06 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.705e-05/0.5102, allocations: 43.69 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.333e-05/0.5103, allocations: 45.7 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001651/0.5105, allocations: 326.8 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.752e-05/0.5105, allocations: 51.97 kB / 1.331 GB, free: 12.59 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.5108, allocations: 199.3 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.5109, allocations: 101.6 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.5109, allocations: 0 / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002457/0.5112, allocations: 165.3 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.5112, allocations: 5.562 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.583e-05/0.5112, allocations: 4 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.5113, allocations: 0 / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.677e-05/0.5113, allocations: 11.98 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.5113, allocations: 0 / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.5116, allocations: 79.8 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.5116, allocations: 4 kB / 1.331 GB, free: 11.96 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.0001379/0.5118, allocations: 143 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.119e-05/0.5118, allocations: 11.89 kB / 1.332 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.822e-05/0.5118, allocations: 12.72 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.5118, allocations: 0 / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.5118, allocations: 4 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.5118, allocations: 3.984 kB / 1.332 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001719/0.512, allocations: 160.6 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.512, allocations: 0 / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.512, allocations: 8 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.5121, allocations: 3.984 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5121, allocations: 8 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.5121, allocations: 4 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.5121, allocations: 0 / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002587/0.5123, allocations: 189.7 kB / 1.332 GB, free: 11.35 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.871e-05/0.5123, allocations: 7.953 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.5124, allocations: 0 / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.611e-05/0.5124, allocations: 0 / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5e-05/0.5125, allocations: 16.08 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.207e-05/0.5125, allocations: 11.98 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.98e-05/0.5126, allocations: 116.8 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.5126, allocations: 0 / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003639/0.5129, allocations: 79.8 kB / 1.332 GB, free: 11.12 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.0007412/0.5137, allocations: 0.7835 MB / 1.333 GB, free: 10.31 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000295/0.514, allocations: 155.3 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.514, allocations: 0 / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.444e-05/0.514, allocations: 43.92 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001798/0.5142, allocations: 4 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001984/0.5162, allocations: 1.729 MB / 1.335 GB, free: 8.273 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003373/0.5165, allocations: 0.704 MB / 1.336 GB, free: 7.543 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.331e-05/0.5166, allocations: 4.672 kB / 1.336 GB, free: 7.535 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.733e-05/0.5167, allocations: 35.42 kB / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of SimCode: time 3.9e-07/0.5167, allocations: 0 / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.5512, allocations: 4.157 MB / 1.34 GB, free: 3.504 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.54, allocations: 11.89 kB / 1.34 GB, free: 3.496 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.389487259000816]