Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.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.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",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.001204/0.001204, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.866/2.866, allocations: 461.9 MB / 0.7347 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 61.72 kB / 0.8992 GB, free: 37.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2915, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002788/0.2943, allocations: 1.297 MB / 1.054 GB, free: 6.945 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.004467/0.2988, allocations: 3.77 MB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.91e-05/0.2989, allocations: 0 / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.424e-05/0.2989, allocations: 3.938 kB / 1.058 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006968/0.2996, allocations: 95.48 kB / 1.058 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.3, allocations: 139.5 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.351e-05/0.3001, allocations: 23.92 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.918e-05/0.3002, allocations: 3.984 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.3003, allocations: 23.92 kB / 1.058 GB, free: 2.875 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001039/0.3004, allocations: 43.83 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.428e-06/0.3004, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004725/0.3009, allocations: 303.6 kB / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.091e-05/0.3009, allocations: 0 / 1.058 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.662e-05/0.3009, allocations: 11.94 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.3012, allocations: 124 kB / 1.059 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3012, allocations: 0 / 1.059 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3012, allocations: 0 / 1.059 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.639e-06/0.3012, allocations: 0 / 1.059 GB, free: 2.402 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003655/0.3016, allocations: 359.4 kB / 1.059 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3016, allocations: 8.625 kB / 1.059 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.964e-05/0.3016, allocations: 38.67 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.3017, allocations: 4.938 kB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.3018, allocations: 168.4 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.3018, allocations: 384 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.227e-06/0.3018, allocations: 384 / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.361e-05/0.3019, allocations: 33.64 kB / 1.059 GB, free: 1.703 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.3019, allocations: 3.938 kB / 1.059 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.3019, allocations: 11.97 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.3019, allocations: 4 kB / 1.059 GB, free: 1.684 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.581e-05/0.302, allocations: 4 kB / 1.059 GB, free: 1.68 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001428/0.3021, allocations: 153.7 kB / 1.059 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.839e-05/0.3022, allocations: 26.52 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.119e-05/0.3022, allocations: 8.922 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002843/0.3025, allocations: 101 kB / 1.059 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.623e-05/0.3026, allocations: 34.55 kB / 1.06 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3026, allocations: 4 kB / 1.06 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.000137/0.3028, allocations: 45.55 kB / 1.06 GB, free: 1.219 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.3028, allocations: 59.34 kB / 1.06 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.3029, allocations: 101.8 kB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.086e-05/0.3029, allocations: 25.7 kB / 1.06 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.483e-05/0.3029, allocations: 84.14 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.045e-05/0.3029, allocations: 3.906 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.303, allocations: 13.72 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.7e-05/0.3031, allocations: 319 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.546e-05/0.3031, allocations: 7.984 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.046e-05/0.3031, allocations: 4 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.873e-05/0.3032, allocations: 8.859 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3032, allocations: 0 / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.091e-05/0.3032, allocations: 45.58 kB / 1.06 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.3033, allocations: 8 kB / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3033, allocations: 0 / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.3033, allocations: 96 / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.212e-05/0.3033, allocations: 11.98 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.3034, allocations: 3.984 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.668e-05/0.3034, allocations: 0 / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-06/0.3034, allocations: 0 / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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 6.541e-05/0.3035, allocations: 111.4 kB / 1.06 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.02e-05/0.3035, allocations: 3.938 kB / 1.06 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3036, allocations: 56.75 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.3036, allocations: 4.031 kB / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3036, allocations: 0 / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3036, allocations: 0 / 1.06 GB, free: 300 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.3037, allocations: 157.6 kB / 1.061 GB, free: 92 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.3037, allocations: 7.875 kB / 1.061 GB, free: 84 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.567e-05/0.3038, allocations: 4 kB / 1.061 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3038, allocations: 256 / 1.061 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.3038, allocations: 0 / 1.061 GB, free: 80 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.3038, allocations: 4 kB / 1.061 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3038, allocations: 0 / 1.061 GB, free: 76 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.818e-05/0.3039, allocations: 77.03 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.915e-05/0.304, allocations: 81.05 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.304, allocations: 4 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.52e-05/0.304, allocations: 3.938 kB / 1.061 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.304, allocations: 3.984 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.304, allocations: 0 / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.437e-05/0.3041, allocations: 79.28 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3041, allocations: 0 / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000212/0.3043, allocations: 32.03 kB / 1.061 GB, free: 15.76 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * 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.0004021/0.3047, allocations: 0.628 MB / 1.061 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.346e-05/0.3048, allocations: 8 kB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3048, allocations: 0 / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.04e-05/0.3048, allocations: 20.03 kB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.3051, allocations: 5.188 kB / 1.061 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003971/0.3055, allocations: 157.4 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.3059, allocations: 0.6768 MB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.936e-05/0.3059, allocations: 8.062 kB / 1.062 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.663e-05/0.306, allocations: 7.438 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of SimCode: time 6.41e-07/0.306, allocations: 0 / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.818/3.124, allocations: 1.639 MB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/13.86, allocations: 12.61 kB / 1.064 GB, free: 12.64 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches