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.001767/0.001767, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002346/0.002346, allocations: 218.2 kB / 22.26 MB, free: 5.082 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.64/1.64, allocations: 230.6 MB / 256 MB, free: 8.027 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.411/3.411, allocations: 0.49 GB / 0.7951 GB, free: 33.4 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.002088/0.002088, allocations: 67.27 kB / 1.154 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4985/0.5006, 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.003892/0.5045, allocations: 1.436 MB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.5057, allocations: 0.4905 MB / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.919e-05/0.5057, allocations: 0 / 1.328 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.5058, allocations: 3.938 kB / 1.328 GB, free: 32 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.799e-05/0.5059, allocations: 15.86 kB / 1.328 GB, free: 16 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.507, allocations: 242.4 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.5072, allocations: 159.6 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 5.599e-05/0.5073, allocations: 4 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.356e-05/0.5074, allocations: 59.91 kB / 1.328 GB, free: 15.56 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.5075, allocations: 43.81 kB / 1.328 GB, free: 15.52 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.5075, allocations: 12 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003431/0.5079, allocations: 195.7 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 8.12e-05/0.5079, allocations: 35.91 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.878e-05/0.508, allocations: 55.72 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.5084, allocations: 235.5 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.5084, allocations: 0 / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.024e-06/0.5084, allocations: 0 / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.221e-06/0.5084, 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.0006449/0.5091, allocations: 371 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.5091, allocations: 12.03 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.701e-05/0.5092, allocations: 38.73 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.212e-05/0.5092, allocations: 16.84 kB / 1.329 GB, free: 14.52 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002461/0.5095, allocations: 150.3 kB / 1.329 GB, free: 14.35 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.953e-05/0.5095, allocations: 8.375 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.459e-05/0.5095, allocations: 16.31 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.5097, allocations: 87.89 kB / 1.329 GB, free: 14.23 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.5097, allocations: 7.922 kB / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.5097, allocations: 0 / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.5097, allocations: 0 / 1.329 GB, free: 14.22 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.406e-05/0.5098, allocations: 39.97 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002945/0.5101, allocations: 197.6 kB / 1.33 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001364/0.5103, allocations: 77.23 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.07e-05/0.5104, allocations: 53.81 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.5104, allocations: 0 / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002945/0.5107, allocations: 109 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of pre-optimization done (n=14): time 1.072e-06/0.5107, allocations: 4 kB / 1.33 GB, free: 13.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=14): time 0.0004239/0.5111, allocations: 189.5 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/0.5112, allocations: 89.09 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.5113, allocations: 147 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.5114, allocations: 33.7 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.843e-05/0.5115, allocations: 100.5 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 6.922e-05/0.5115, allocations: 43.69 kB / 1.33 GB, free: 13.03 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.815e-05/0.5116, allocations: 45.7 kB / 1.331 GB, free: 12.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001716/0.5118, allocations: 334.8 kB / 1.331 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.367e-05/0.5119, allocations: 43.98 kB / 1.331 GB, free: 12.6 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.5121, allocations: 203.3 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.5123, allocations: 97.62 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.5123, allocations: 0 / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002388/0.5125, allocations: 165.3 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.5125, allocations: 4 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.518e-05/0.5125, allocations: 7.984 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.5126, allocations: 0 / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.392e-05/0.5126, allocations: 12 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.5127, allocations: 0.625 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002633/0.5129, allocations: 75.8 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.5129, allocations: 8 kB / 1.331 GB, free: 11.97 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.0001441/0.5131, allocations: 139 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.041e-05/0.5131, allocations: 11.89 kB / 1.332 GB, free: 11.81 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.5131, allocations: 12.72 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.5131, allocations: 3.984 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5131, allocations: 4 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.5131, allocations: 0 / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.5133, allocations: 164.6 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5133, allocations: 0 / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.957e-05/0.5134, allocations: 16.08 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.5134, allocations: 7.984 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.5134, allocations: 4 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5134, allocations: 0 / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.5134, allocations: 3.938 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.5136, allocations: 192.1 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.277e-05/0.5137, allocations: 11.91 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.5137, allocations: 0 / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.629e-05/0.5137, allocations: 15.98 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.487e-05/0.5138, allocations: 0 / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-06/0.5138, allocations: 4 kB / 1.332 GB, free: 11.31 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001074/0.5139, allocations: 112.8 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.5139, allocations: 0 / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003183/0.5142, 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.0008201/0.515, allocations: 0.7789 MB / 1.333 GB, free: 10.32 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002967/0.5153, allocations: 155.3 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5153, allocations: 0 / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 7.406e-05/0.5154, allocations: 43.92 kB / 1.333 GB, free: 10.11 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.5156, allocations: 9.656 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.002062/0.5176, allocations: 1.726 MB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.518, allocations: 0.704 MB / 1.336 GB, free: 7.547 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.498e-05/0.518, allocations: 8.609 kB / 1.336 GB, free: 7.535 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.031e-05/0.5181, allocations: 35.42 kB / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of SimCode: time 4.51e-07/0.5181, allocations: 0 / 1.336 GB, free: 7.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03622/0.5543, allocations: 4.157 MB / 1.34 GB, free: 3.508 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/12.02, allocations: 6.438 kB / 1.34 GB, free: 3.504 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --stepSize=518.4 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.580603975104168]