Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",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.005327/0.005327, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001209/0.001209, allocations: 195.1 kB / 16.67 MB, free: 5.969 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.508/1.508, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.609/2.609, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 55.91 kB / 1.064 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7632/0.7645, allocations: 159.1 MB / 1.22 GB, free: 2.293 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002315/0.7669, allocations: 1.32 MB / 1.221 GB, free: 0.9609 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0007401/0.7677, allocations: 354.9 kB / 1.221 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.509e-05/0.7677, allocations: 4 kB / 1.221 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 8.201e-05/0.7678, allocations: 3.938 kB / 1.221 GB, free: 0.6055 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.6e-05/0.7678, allocations: 3.938 kB / 1.221 GB, free: 0.6016 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004504/0.7683, allocations: 87.78 kB / 1.221 GB, free: 0.5156 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.7684, allocations: 55.89 kB / 1.221 GB, free: 472 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.686e-05/0.7685, allocations: 7.938 kB / 1.221 GB, free: 464 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.429e-05/0.7685, allocations: 19.92 kB / 1.222 GB, free: 444 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 5.069e-05/0.7686, allocations: 23.97 kB / 1.222 GB, free: 420 kB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.7686, allocations: 4 kB / 1.222 GB, free: 416 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.7688, allocations: 75.92 kB / 1.222 GB, free: 340 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.915e-05/0.7688, allocations: 31.84 kB / 1.222 GB, free: 308 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.42e-05/0.7689, allocations: 47.75 kB / 1.222 GB, free: 260 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002303/0.7691, allocations: 159 kB / 1.222 GB, free: 104 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.7691, allocations: 11.94 kB / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Performance of FrontEnd: time 1.522e-06/0.7692, allocations: 0 / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.7692, allocations: 0 / 1.222 GB, free: 92 kB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0004947/0.7697, allocations: 0.516 MB / 1.222 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.7697, allocations: 12.62 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.876e-05/0.7698, allocations: 42.73 kB / 1.222 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.893e-05/0.7699, allocations: 16.84 kB / 1.222 GB, free: 15.44 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.77, allocations: 176.2 kB / 1.223 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.77, allocations: 4.375 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.77, allocations: 4.375 kB / 1.223 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002598/0.7703, allocations: 242.2 kB / 1.223 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.7703, allocations: 3.938 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.7703, allocations: 4 kB / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.7703, allocations: 0 / 1.223 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001405/0.7705, allocations: 144 kB / 1.223 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001592/0.7707, allocations: 201.5 kB / 1.223 GB, free: 14.58 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.771, allocations: 0.5337 MB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003371/0.7714, allocations: 0.5243 MB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.191e-05/0.7714, allocations: 3.984 kB / 1.224 GB, free: 13.51 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000407/0.7718, allocations: 411.5 kB / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=39): time 1.723e-06/0.7718, allocations: 0 / 1.225 GB, free: 13.08 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39): time 0.0007137/0.7725, allocations: 0.6855 MB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/0.7726, allocations: 105.1 kB / 1.225 GB, free: 12.26 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.628e-05/0.7727, allocations: 101.8 kB / 1.225 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.7727, allocations: 29.73 kB / 1.225 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.136e-05/0.7727, allocations: 80.8 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.278e-05/0.7728, allocations: 79.38 kB / 1.226 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.794e-05/0.7729, allocations: 29.7 kB / 1.226 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.773, allocations: 326.8 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.333e-05/0.7731, allocations: 87.97 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.599e-05/0.7732, allocations: 75.98 kB / 1.226 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.7735, allocations: 357.3 kB / 1.226 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7735, allocations: 32 / 1.226 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003351/0.7738, allocations: 344.1 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/0.7739, allocations: 81.59 kB / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.7739, allocations: 0 / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.774, allocations: 0 / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.936e-05/0.774, allocations: 7.922 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.774, allocations: 4 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.735e-05/0.7741, allocations: 11.95 kB / 1.227 GB, free: 10.61 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.859e-05/0.7741, allocations: 15.88 kB / 1.227 GB, free: 10.59 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 40 (occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,occ.hold_time,occ.tNext,$PRE.occ.tNext,occ.mu,occ.occ,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * 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.0002343/0.7744, allocations: 260.4 kB / 1.227 GB, free: 10.32 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.422e-05/0.7744, allocations: 31.84 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.047e-05/0.7745, allocations: 5.219 kB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.7745, allocations: 0 / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.7745, allocations: 0 / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.7745, allocations: 0 / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.7747, allocations: 261.3 kB / 1.227 GB, free: 9.984 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.7747, allocations: 3.984 kB / 1.227 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.61e-07/0.7747, allocations: 0 / 1.227 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.7747, allocations: 7.938 kB / 1.227 GB, free: 9.973 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.775e-05/0.7747, allocations: 12 kB / 1.227 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.7747, allocations: 0 / 1.227 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.7747, allocations: 4 kB / 1.227 GB, free: 9.957 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.7759, allocations: 1.283 MB / 1.229 GB, free: 8.648 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.575e-05/0.7759, allocations: 92.94 kB / 1.229 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.691e-05/0.776, allocations: 71.95 kB / 1.229 GB, free: 8.469 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.7761, allocations: 11.98 kB / 1.229 GB, free: 8.457 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.771e-05/0.7762, allocations: 8 kB / 1.229 GB, free: 8.449 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.7762, allocations: 15.98 kB / 1.229 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.584e-05/0.7762, allocations: 83.31 kB / 1.229 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7762, allocations: 0 / 1.229 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002946/0.7765, allocations: 68 kB / 1.229 GB, free: 8.285 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 39 ($whenCondition1,occ.occ,occ.mu,occ.tNext,occ.hold_time,occ.r,occ.state[1],occ.state[2],occ.state[3],occ.state[4],occ.state[5],occ.state[6],occ.state[7],occ.state[8],occ.state[9],occ.state[10],occ.state[11],occ.state[12],occ.state[13],occ.state[14],occ.state[15],occ.state[16],occ.state[17],occ.state[18],occ.state[19],occ.state[20],occ.state[21],occ.state[22],occ.state[23],occ.state[24],occ.state[25],occ.state[26],occ.state[27],occ.state[28],occ.state[29],occ.state[30],occ.state[31],occ.state[32],occ.state[33]) * Number of discrete states: 39 (occ.tNext,occ.hold_time,occ.mu,occ.occ,occ.state[33],occ.state[32],occ.state[31],occ.state[30],occ.state[29],occ.state[28],occ.state[27],occ.state[26],occ.state[25],occ.state[24],occ.state[23],occ.state[22],occ.state[21],occ.state[20],occ.state[19],occ.state[18],occ.state[17],occ.state[16],occ.state[15],occ.state[14],occ.state[13],occ.state[12],occ.state[11],occ.state[10],occ.state[9],occ.state[8],occ.state[7],occ.state[6],occ.state[5],occ.state[4],occ.state[3],occ.state[2],occ.state[1],occ.r,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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.001649/0.7782, allocations: 1.971 MB / 1.231 GB, free: 6.293 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.7797, allocations: 1.971 MB / 1.233 GB, free: 4.309 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7797, allocations: 0 / 1.233 GB, free: 4.309 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.781, allocations: 2.011 MB / 1.235 GB, free: 2.285 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002251/0.7812, allocations: 16 kB / 1.235 GB, free: 2.27 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006393/0.7819, allocations: 396.7 kB / 1.235 GB, free: 1.844 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.7821, allocations: 0.7167 MB / 1.236 GB, free: 1.098 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 1.772e-05/0.7821, allocations: 7.844 kB / 1.236 GB, free: 1.09 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.7822, allocations: 35.36 kB / 1.236 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.7822, allocations: 0 / 1.236 GB, free: 1.055 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.8023, allocations: 4.152 MB / 1.24 GB, free: 13.06 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/8.066, allocations: 8.688 kB / 1.24 GB, free: 13.05 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv --start-time 0 --stop-time 36000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 14.4 Buildings_latest_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[535]=36000.000000 File[108]=2030.400000 " Variables in the reference:time,occ.occ Variables in the result:time,occ.one_mu,occ.zero_mu,occ.seed,occ.occ