Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_9_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.005053/0.005053, allocations: 105 kB / 15.74 MB, free: 5.992 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.001129/0.001129, allocations: 198.2 kB / 16.68 MB, free: 5.918 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 63.89 kB / 0.9503 GB, free: 8.168 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.048/1.049, allocations: 140.4 MB / 1.087 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002367/1.051, allocations: 1.326 MB / 1.089 GB, free: 4.344 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0007574/1.052, allocations: 353.6 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.801e-05/1.052, allocations: 0 / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.359e-05/1.052, allocations: 1.219 kB / 1.089 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.58e-05/1.052, allocations: 9.719 kB / 1.089 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004386/1.053, allocations: 86.42 kB / 1.089 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001204/1.053, allocations: 63.09 kB / 1.089 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.343e-05/1.053, allocations: 11.19 kB / 1.089 GB, free: 4.035 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.487e-05/1.053, allocations: 15.19 kB / 1.089 GB, free: 4.031 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.74e-05/1.053, allocations: 18.75 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.635e-05/1.053, allocations: 4.344 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/1.053, allocations: 84.08 kB / 1.089 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.106e-05/1.053, allocations: 27.55 kB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.64e-05/1.053, allocations: 52.44 kB / 1.089 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002697/1.054, allocations: 155.4 kB / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/1.054, allocations: 0 / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.024e-06/1.054, allocations: 0 / 1.09 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.733e-06/1.054, allocations: 0 / 1.09 GB, free: 3.902 MB / 0.8575 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.000529/1.054, allocations: 0.51 MB / 1.09 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/1.054, allocations: 17.66 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.202e-05/1.054, allocations: 45.56 kB / 1.09 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/1.055, allocations: 14.08 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001003/1.055, allocations: 180.3 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/1.055, allocations: 2.562 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/1.055, allocations: 3.859 kB / 1.09 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/1.055, allocations: 248.2 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/1.055, allocations: 5.062 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/1.055, allocations: 0.9062 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/1.055, allocations: 1.125 kB / 1.091 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/1.055, allocations: 148 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000181/1.055, allocations: 192 kB / 1.091 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004833/1.056, allocations: 0.5341 MB / 1.091 GB, free: 2.43 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/1.056, allocations: 0.5236 MB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/1.056, allocations: 1.516 kB / 1.092 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004981/1.057, allocations: 404.7 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=39): time 1.343e-06/1.057, allocations: 4 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of matching and sorting (n=39): time 0.001039/1.058, allocations: 0.6871 MB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/1.058, allocations: 103.5 kB / 1.093 GB, free: 1.492 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.945e-05/1.058, allocations: 100.3 kB / 1.093 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/1.058, allocations: 27.11 kB / 1.093 GB, free: 1.359 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/1.058, allocations: 86.33 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.407e-05/1.058, allocations: 69.47 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.449e-05/1.058, allocations: 36.62 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.495e-05/1.058, allocations: 327.8 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001072/1.059, allocations: 87.44 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001067/1.059, allocations: 83.5 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004098/1.059, allocations: 351.9 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/1.059, allocations: 0 / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004651/1.06, allocations: 334.3 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/1.06, allocations: 86.64 kB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/1.06, allocations: 1.797 kB / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/1.06, allocations: 0 / 1.095 GB, free: 448 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.832e-05/1.06, allocations: 6.25 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/1.06, allocations: 4.734 kB / 1.095 GB, free: 440 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/1.06, allocations: 21.39 kB / 1.095 GB, free: 428 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/1.06, allocations: 6.781 kB / 1.095 GB, free: 428 kB / 0.8575 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.0003268/1.06, allocations: 269.6 kB / 1.095 GB, free: 244 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/1.06, allocations: 23.56 kB / 1.095 GB, free: 236 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.4e-05/1.06, allocations: 10.02 kB / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/1.06, allocations: 1.125 kB / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/1.06, allocations: 0 / 1.095 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/1.06, allocations: 4.188 kB / 1.095 GB, free: 224 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/1.061, allocations: 253 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/1.061, allocations: 0.5625 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.933e-06/1.061, allocations: 1.031 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/1.061, allocations: 7.922 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/1.061, allocations: 11.28 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/1.061, allocations: 0.6875 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/1.061, allocations: 0.6562 kB / 1.095 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/1.062, allocations: 1.275 MB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-05/1.062, allocations: 110.5 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001365/1.063, allocations: 72.09 kB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.813e-05/1.063, allocations: 7.812 kB / 1.097 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.086e-05/1.063, allocations: 13.66 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/1.063, allocations: 19.58 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.46e-05/1.063, allocations: 83.17 kB / 1.097 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/1.063, allocations: 3.938 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003464/1.063, allocations: 69.34 kB / 1.097 GB, free: 15.32 MB / 0.8731 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.002221/1.065, allocations: 1.955 MB / 1.099 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001975/1.067, allocations: 1.967 MB / 1.101 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.501e-06/1.067, allocations: 0 / 1.101 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001647/1.069, allocations: 2.017 MB / 1.103 GB, free: 12.09 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002496/1.069, allocations: 22.5 kB / 1.103 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007698/1.07, allocations: 384.5 kB / 1.103 GB, free: 11.87 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002893/1.07, allocations: 0.7172 MB / 1.104 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.508e-05/1.07, allocations: 0 / 1.104 GB, free: 11.16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.387e-05/1.071, allocations: 31.25 kB / 1.104 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of SimCode: time 3.91e-07/1.071, allocations: 4 kB / 1.104 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/1.095, allocations: 4.251 MB / 1.108 GB, free: 10.46 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/9.09, allocations: 14.31 kB / 1.108 GB, free: 10.45 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy_fmu --startTime=0 --stopTime=36000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,occ.occ Variables in the result:occ.occ,occ.one_mu,occ.seed,occ.zero_mu,time