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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007886/0.007886, allocations: 102 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001566, allocations: 194.5 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.864/2.864, allocations: 461.9 MB / 0.7348 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 64.12 kB / 1.054 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056/1.057, allocations: 157.4 MB / 1.207 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.SetPoints.Examples.OccupancySchedule): time 0.003443/1.061, allocations: 1.421 MB / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001096/1.062, allocations: 0.4944 MB / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.686e-05/1.062, allocations: 0 / 1.209 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 9.492e-05/1.062, allocations: 7.922 kB / 1.209 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.823e-05/1.062, allocations: 7.938 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001134/1.064, allocations: 234.8 kB / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0003169/1.064, allocations: 147.8 kB / 1.209 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.61e-05/1.064, allocations: 11.95 kB / 1.21 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001183/1.064, allocations: 55.84 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/1.064, allocations: 43.83 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/1.064, allocations: 8 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004249/1.065, allocations: 175.8 kB / 1.21 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/1.065, allocations: 31.91 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001071/1.065, allocations: 47.8 kB / 1.21 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005259/1.066, allocations: 233.8 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/1.066, allocations: 4 kB / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.335e-06/1.066, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.225e-06/1.066, allocations: 0 / 1.21 GB, free: 10.7 MB / 0.9356 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.00078/1.066, allocations: 450.9 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/1.066, allocations: 11.97 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.64e-05/1.066, allocations: 38.75 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.626e-05/1.067, allocations: 16.83 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/1.067, allocations: 208 kB / 1.211 GB, free: 9.887 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/1.067, allocations: 8.375 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/1.067, allocations: 12.38 kB / 1.211 GB, free: 9.867 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/1.067, allocations: 79.95 kB / 1.211 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/1.067, allocations: 3.938 kB / 1.211 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/1.067, allocations: 4 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/1.067, allocations: 4 kB / 1.211 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.295e-05/1.067, allocations: 39.91 kB / 1.211 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/1.068, allocations: 226.5 kB / 1.211 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/1.068, allocations: 81.23 kB / 1.211 GB, free: 9.355 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.045e-05/1.068, allocations: 57.75 kB / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/1.068, allocations: 0 / 1.211 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/1.068, allocations: 117 kB / 1.211 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/1.068, allocations: 0 / 1.211 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of matching and sorting (n=14): time 0.0003988/1.069, allocations: 197.3 kB / 1.212 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/1.069, allocations: 81.11 kB / 1.212 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/1.069, allocations: 149.6 kB / 1.212 GB, free: 8.711 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/1.069, allocations: 37.7 kB / 1.212 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.382e-05/1.069, allocations: 100.5 kB / 1.212 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.219e-05/1.069, allocations: 31.56 kB / 1.212 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.381e-05/1.069, allocations: 57.69 kB / 1.212 GB, free: 8.469 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001482/1.069, allocations: 322.8 kB / 1.212 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.4e-05/1.069, allocations: 43.92 kB / 1.212 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/1.07, allocations: 201.3 kB / 1.213 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/1.07, allocations: 97.62 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.07, allocations: 3.938 kB / 1.213 GB, free: 7.746 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002533/1.07, allocations: 161.4 kB / 1.213 GB, free: 7.582 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/1.07, allocations: 7.984 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.354e-05/1.07, allocations: 4 kB / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/1.07, allocations: 0 / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.991e-05/1.07, allocations: 15.94 kB / 1.213 GB, free: 7.555 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/1.07, allocations: 4 kB / 1.213 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/1.07, allocations: 74.7 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/1.07, allocations: 8 kB / 1.213 GB, free: 7.473 MB / 0.9356 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.0001347/1.071, allocations: 137.8 kB / 1.213 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.574e-05/1.071, allocations: 11.84 kB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/1.071, allocations: 16.7 kB / 1.213 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/1.071, allocations: 3.938 kB / 1.213 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.071, allocations: 0 / 1.213 GB, free: 7.289 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/1.071, allocations: 7.938 kB / 1.213 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/1.071, allocations: 197.4 kB / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/1.071, allocations: 0 / 1.213 GB, free: 7.039 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.968e-05/1.071, allocations: 11.94 kB / 1.213 GB, free: 7.027 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/1.071, allocations: 4 kB / 1.213 GB, free: 7.023 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/1.071, allocations: 4 kB / 1.213 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/1.071, allocations: 0 / 1.213 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.071, allocations: 4 kB / 1.213 GB, free: 7.016 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/1.071, allocations: 181.8 kB / 1.213 GB, free: 6.816 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/1.071, allocations: 85.02 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/1.071, allocations: 7.984 kB / 1.214 GB, free: 6.707 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.263e-05/1.071, allocations: 4 kB / 1.214 GB, free: 6.703 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.286e-05/1.071, allocations: 8 kB / 1.214 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/1.072, allocations: 11.92 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.367e-05/1.072, allocations: 103.3 kB / 1.214 GB, free: 6.582 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.61e-07/1.072, allocations: 4 kB / 1.214 GB, free: 6.578 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003644/1.072, allocations: 71.92 kB / 1.214 GB, free: 6.508 MB / 0.9356 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.0008122/1.073, allocations: 0.7866 MB / 1.215 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003148/1.073, allocations: 164.1 kB / 1.215 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.073, allocations: 0 / 1.215 GB, free: 5.52 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 8.047e-05/1.073, allocations: 43.92 kB / 1.215 GB, free: 5.477 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/1.073, allocations: 8 kB / 1.215 GB, free: 5.469 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/1.076, allocations: 1.728 MB / 1.216 GB, free: 3.652 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/1.076, allocations: 0.7041 MB / 1.217 GB, free: 2.922 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.353e-05/1.076, allocations: 8.672 kB / 1.217 GB, free: 2.91 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.533e-05/1.076, allocations: 31.36 kB / 1.217 GB, free: 2.879 MB / 0.9356 GB Notification: Performance of SimCode: time 3.2e-07/1.076, allocations: 0 / 1.217 GB, free: 2.879 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02622/1.102, allocations: 4.025 MB / 1.221 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.144/9.247, allocations: 11.88 kB / 1.221 GB, free: 14.97 MB / 0.9512 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule_fmu --startTime=-86400 --stopTime=1.2096e+06 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_SetPoints_Examples_OccupancySchedule.fmu > Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.SetPoints.Examples.OccupancySchedule_res.mat","/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) "" Variables in the reference:time,occSchDay.tNexNonOcc,occSchWee.tNexNonOcc,occSchDay.occupied,occSchWee.occupied Variables in the result:occSchDay.firstEntryOccupied,occSchDay.occupancy[1],occSchDay.occupancy[2],occSchDay.occupied,occSchDay.period,occSchDay.tNexNonOcc,occSchDay.tNexOcc,occSchWee.firstEntryOccupied,occSchWee.occupancy[10],occSchWee.occupancy[11],occSchWee.occupancy[12],occSchWee.occupancy[1],occSchWee.occupancy[2],occSchWee.occupancy[3],occSchWee.occupancy[4],occSchWee.occupancy[5],occSchWee.occupancy[6],occSchWee.occupancy[7],occSchWee.occupancy[8],occSchWee.occupancy[9],occSchWee.occupied,occSchWee.period,occSchWee.tNexNonOcc,occSchWee.tNexOcc,time