Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy,fileNamePrefix="Buildings_11_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.005154/0.005154, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001552/0.001552, allocations: 194.5 kB / 16.68 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.848/2.848, allocations: 469.8 MB / 0.7425 GB, free: 7.266 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00198/0.00198, allocations: 63.91 kB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2718, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy): time 0.002424/0.2742, allocations: 1.338 MB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007621/0.275, allocations: 343 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.36e-05/0.2751, allocations: 3.938 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 7.101e-05/0.2752, allocations: 0 / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 2.336e-05/0.2752, allocations: 7.938 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004212/0.2756, allocations: 95.69 kB / 1.222 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.2757, allocations: 47.92 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.358e-05/0.2758, allocations: 4 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 3.674e-05/0.2758, allocations: 27.92 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.963e-05/0.2759, allocations: 19.91 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.2759, allocations: 4 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001859/0.2761, allocations: 87.84 kB / 1.222 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.288e-05/0.2761, allocations: 23.92 kB / 1.222 GB, free: 12.32 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 6.23e-05/0.2762, allocations: 51.67 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.2765, allocations: 155.4 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.2765, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2765, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.2765, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 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.0005593/0.2771, allocations: 0.5238 MB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.2771, allocations: 12.03 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.636e-05/0.2772, allocations: 42.73 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.208e-05/0.2773, allocations: 16.84 kB / 1.223 GB, free: 11.45 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000138/0.2774, allocations: 180.2 kB / 1.223 GB, free: 11.24 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.886e-05/0.2774, allocations: 4.375 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.2775, allocations: 4.375 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000303/0.2778, allocations: 238.2 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.2778, allocations: 7.938 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.184e-05/0.2778, allocations: 7.922 kB / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.2778, allocations: 0 / 1.223 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001658/0.278, allocations: 144 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001932/0.2782, allocations: 193.5 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004754/0.2787, allocations: 0.5298 MB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004491/0.2791, allocations: 0.5243 MB / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.2791, allocations: 0 / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004462/0.2796, allocations: 407.5 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=39): time 1.222e-06/0.2796, allocations: 0 / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of matching and sorting (n=39): time 0.0008457/0.2804, allocations: 0.6855 MB / 1.226 GB, free: 8.41 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.2805, allocations: 109.1 kB / 1.226 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.341e-05/0.2806, allocations: 97.86 kB / 1.226 GB, free: 8.18 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.2807, allocations: 25.7 kB / 1.226 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.2807, allocations: 80.8 kB / 1.226 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.804e-05/0.2808, allocations: 83.41 kB / 1.226 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.2808, allocations: 33.7 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.281, allocations: 330.8 kB / 1.226 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.2811, allocations: 79.98 kB / 1.226 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.196e-05/0.2812, allocations: 83.91 kB / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.2816, allocations: 353.4 kB / 1.227 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2816, allocations: 0 / 1.227 GB, free: 7.09 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003916/0.282, allocations: 336.2 kB / 1.227 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.767e-05/0.2821, allocations: 91.23 kB / 1.227 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2821, allocations: 4.062 kB / 1.227 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.2821, allocations: 0 / 1.227 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.833e-05/0.2821, allocations: 4 kB / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.2821, allocations: 0 / 1.227 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.195e-05/0.2822, allocations: 19.83 kB / 1.227 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.97e-05/0.2823, allocations: 8 kB / 1.227 GB, free: 6.621 MB / 0.9825 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.0002659/0.2825, allocations: 265.7 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.994e-05/0.2826, allocations: 27.83 kB / 1.228 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.045e-05/0.2826, allocations: 9.156 kB / 1.228 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2826, allocations: 4.188 kB / 1.228 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.2826, allocations: 4 kB / 1.228 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.2826, allocations: 3.984 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.2829, allocations: 245.4 kB / 1.228 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2829, allocations: 4 kB / 1.228 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.11e-07/0.2829, allocations: 0 / 1.228 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.2829, allocations: 3.938 kB / 1.228 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.2829, allocations: 19.98 kB / 1.228 GB, free: 5.984 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2829, allocations: 3.984 kB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2829, allocations: 0 / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00139/0.2843, allocations: 1.279 MB / 1.229 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.294e-05/0.2844, allocations: 100.9 kB / 1.229 GB, free: 4.559 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001089/0.2845, allocations: 75.95 kB / 1.229 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.62e-05/0.2846, allocations: 8 kB / 1.229 GB, free: 4.477 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.2846, allocations: 7.984 kB / 1.229 GB, free: 4.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.2847, allocations: 12 kB / 1.229 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.642e-05/0.2847, allocations: 87.27 kB / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.196e-06/0.2847, allocations: 0 / 1.229 GB, free: 4.371 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003019/0.285, allocations: 71.97 kB / 1.23 GB, free: 4.301 MB / 0.9825 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.00205/0.2871, allocations: 1.959 MB / 1.231 GB, free: 2.32 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001811/0.2889, allocations: 1.964 MB / 1.233 GB, free: 352 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2889, allocations: 4.094 kB / 1.233 GB, free: 348 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.001709/0.2906, allocations: 2.015 MB / 1.235 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002179/0.2909, allocations: 19.98 kB / 1.235 GB, free: 14.29 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007014/0.2916, allocations: 407.6 kB / 1.236 GB, free: 13.86 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003415/0.2919, allocations: 0.7127 MB / 1.236 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.238e-05/0.292, allocations: 4.062 kB / 1.236 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.215e-05/0.292, allocations: 31.44 kB / 1.236 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of SimCode: time 2.5e-07/0.292, allocations: 0 / 1.236 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.317, allocations: 4.138 MB / 1.24 GB, free: 9.078 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/7.965, allocations: 10.59 kB / 1.24 GB, free: 9.07 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv --start-time 0 --stop-time 36000 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 14.4 Buildings_11_Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.fmu > Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Occupancy.Validation.Wang2005Occupancy_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Occupancy_Validation_Wang2005Occupancy.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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