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.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.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.01023/0.01023, allocations: 95.02 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.002115/0.002115, allocations: 196.2 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.33/1.33, allocations: 222.9 MB / 240.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.511/2.511, allocations: 469.4 MB / 0.7421 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 67.72 kB / 1.064 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.862/0.8635, allocations: 159.1 MB / 1.22 GB, free: 2.324 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002408/0.8659, allocations: 1.284 MB / 1.221 GB, free: 1.031 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.004549/0.8705, allocations: 3.759 MB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.536e-05/0.8706, allocations: 0 / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.8706, allocations: 3.938 kB / 1.225 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0005068/0.8711, allocations: 107.5 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004141/0.8716, allocations: 131.5 kB / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.402e-05/0.8716, allocations: 31.86 kB / 1.225 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.747e-05/0.8717, allocations: 7.984 kB / 1.225 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.8718, allocations: 19.92 kB / 1.225 GB, free: 12.95 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 9.769e-05/0.8719, allocations: 43.84 kB / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.8719, allocations: 0 / 1.225 GB, free: 12.91 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004785/0.8724, allocations: 307.6 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.8724, allocations: 4 kB / 1.225 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.8725, allocations: 11.92 kB / 1.225 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.8727, allocations: 115.4 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.8727, allocations: 4 kB / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.203e-06/0.8727, allocations: 0 / 1.225 GB, free: 12.48 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.197e-06/0.8727, allocations: 0 / 1.225 GB, free: 12.48 MB / 0.9512 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.0003928/0.8731, allocations: 359.1 kB / 1.226 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.8732, allocations: 8.625 kB / 1.226 GB, free: 12.07 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.433e-05/0.8732, allocations: 34.75 kB / 1.226 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.89e-05/0.8733, allocations: 8.922 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.8734, allocations: 172.2 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.8734, allocations: 384 / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.8734, allocations: 4.375 kB / 1.226 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.746e-05/0.8735, allocations: 33.64 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.8735, allocations: 4 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.8735, allocations: 0 / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.8735, allocations: 0 / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.204e-05/0.8736, allocations: 4 kB / 1.226 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001515/0.8737, allocations: 157.7 kB / 1.226 GB, free: 11.56 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.116e-05/0.8738, allocations: 26.52 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.8738, allocations: 16.91 kB / 1.226 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002575/0.8741, allocations: 101 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.8741, allocations: 34.56 kB / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.8741, allocations: 0 / 1.226 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0001411/0.8743, allocations: 49.64 kB / 1.226 GB, free: 11.29 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.8743, allocations: 55.34 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.643e-05/0.8744, allocations: 97.86 kB / 1.227 GB, free: 11.12 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.8744, allocations: 29.83 kB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 3.312e-05/0.8745, allocations: 84.08 kB / 1.227 GB, free: 11 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.8745, allocations: 15.94 kB / 1.227 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-05/0.8745, allocations: 9.719 kB / 1.227 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.8746, allocations: 318.8 kB / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.247e-05/0.8747, allocations: 0 / 1.227 GB, free: 10.65 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.198e-05/0.8747, allocations: 8 kB / 1.227 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.957e-05/0.8747, allocations: 8.922 kB / 1.227 GB, free: 10.63 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.8747, allocations: 4 kB / 1.227 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.957e-05/0.8748, allocations: 49.62 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.8748, allocations: 4 kB / 1.227 GB, free: 10.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.8748, allocations: 3.938 kB / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.8748, allocations: 0 / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.016e-05/0.8749, allocations: 4 kB / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.8749, allocations: 0 / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.755e-05/0.8749, allocations: 0 / 1.227 GB, free: 10.56 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.8749, allocations: 4 kB / 1.227 GB, free: 10.55 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: 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.926e-05/0.875, allocations: 109.9 kB / 1.227 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.096e-05/0.875, allocations: 7.922 kB / 1.227 GB, free: 10.43 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.8751, allocations: 44.83 kB / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.8751, allocations: 0 / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.8751, allocations: 0 / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.8752, allocations: 3.984 kB / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001042/0.8753, allocations: 153.6 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.8753, allocations: 3.938 kB / 1.227 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.655e-05/0.8753, allocations: 15.95 kB / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.8753, allocations: 0 / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.063e-06/0.8753, allocations: 4 kB / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.8753, allocations: 0 / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.8753, allocations: 0 / 1.227 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.961e-05/0.8754, allocations: 57.14 kB / 1.227 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.249e-05/0.8755, allocations: 89.03 kB / 1.228 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.28e-05/0.8755, allocations: 256 / 1.228 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.599e-05/0.8755, allocations: 8.031 kB / 1.228 GB, free: 9.969 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.198e-05/0.8755, allocations: 4 kB / 1.228 GB, free: 9.965 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-06/0.8755, allocations: 4 kB / 1.228 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.882e-05/0.8756, allocations: 83.27 kB / 1.228 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8756, allocations: 0 / 1.228 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002258/0.8758, allocations: 27.81 kB / 1.228 GB, free: 9.852 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: 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.0004337/0.8763, allocations: 0.6396 MB / 1.228 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.886e-05/0.8764, allocations: 8 kB / 1.228 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.8764, allocations: 0 / 1.228 GB, free: 9.176 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.483e-05/0.8764, allocations: 11.92 kB / 1.228 GB, free: 9.164 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.8766, allocations: 4 kB / 1.228 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004021/0.877, allocations: 171.2 kB / 1.228 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.8773, allocations: 0.6768 MB / 1.229 GB, free: 8.25 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.769e-05/0.8773, allocations: 4 kB / 1.229 GB, free: 8.246 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.767e-05/0.8773, allocations: 7.438 kB / 1.229 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of SimCode: time 2.1e-07/0.8773, allocations: 0 / 1.229 GB, free: 8.238 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.8952, allocations: 1.66 MB / 1.231 GB, free: 6.723 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.2/8.095, allocations: 14.61 kB / 1.231 GB, free: 6.711 MB / 0.9512 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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