Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.007482/0.007482, allocations: 98.95 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.002006/0.002006, allocations: 202.9 kB / 16.68 MB, free: 5.977 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.774/2.774, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 75.89 kB / 1.083 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2861, allocations: 162.2 MB / 1.242 GB, free: 10.16 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004452/0.2906, allocations: 3.039 MB / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002915/0.2936, allocations: 2.133 MB / 1.247 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002111/0.2938, allocations: 8 kB / 1.247 GB, free: 4.949 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.2953, allocations: 0.5132 MB / 1.247 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.2956, allocations: 142.9 kB / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001317/0.2957, allocations: 55.94 kB / 1.247 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0004992/0.2962, allocations: 449.8 kB / 1.248 GB, free: 3.797 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002488/0.2965, allocations: 147.2 kB / 1.248 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.2967, allocations: 159.4 kB / 1.248 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000228/0.297, allocations: 171.2 kB / 1.248 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 5.229e-05/0.297, allocations: 36 kB / 1.248 GB, free: 3.289 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.439e-05/0.2971, allocations: 40 kB / 1.248 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.2972, allocations: 95.61 kB / 1.248 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002104/0.2974, allocations: 218.9 kB / 1.249 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0005826/0.298, allocations: 0.5524 MB / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.298, allocations: 0 / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.302e-06/0.298, allocations: 0 / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.2981, allocations: 0 / 1.249 GB, free: 2.387 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001042/0.2991, allocations: 0.7217 MB / 1.25 GB, free: 1.617 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.2991, allocations: 8.031 kB / 1.25 GB, free: 1.609 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.561e-05/0.2992, allocations: 54.73 kB / 1.25 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.213e-05/0.2993, allocations: 44.66 kB / 1.25 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005468/0.2999, allocations: 374.5 kB / 1.25 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.2999, allocations: 16.81 kB / 1.25 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.2999, allocations: 24.38 kB / 1.25 GB, free: 1.062 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004201/0.3004, allocations: 199.4 kB / 1.25 GB, free: 0.8594 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3004, allocations: 3.953 kB / 1.25 GB, free: 0.8555 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.494e-05/0.3004, allocations: 12 kB / 1.25 GB, free: 0.8438 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/0.3004, allocations: 4 kB / 1.25 GB, free: 0.8398 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003905/0.3008, allocations: 169.6 kB / 1.251 GB, free: 0.6758 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4937/0.7945, allocations: 0.853 MB / 1.251 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003568/0.7949, allocations: 159.3 kB / 1.252 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002148/0.7952, allocations: 113.4 kB / 1.252 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.7952, allocations: 2.125 kB / 1.252 GB, free: 15.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.7952, allocations: 36.47 kB / 1.252 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=18): time 1.773e-06/0.7952, allocations: 0 / 1.252 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18): time 0.0005937/0.7958, allocations: 260.6 kB / 1.252 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.499e-05/0.7959, allocations: 55.16 kB / 1.252 GB, free: 14.96 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004661/0.7963, allocations: 419.6 kB / 1.252 GB, free: 14.85 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.7964, allocations: 30.45 kB / 1.252 GB, free: 14.82 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.7965, allocations: 205 kB / 1.253 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.887e-05/0.7965, allocations: 61.36 kB / 1.253 GB, free: 14.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.7966, allocations: 36.52 kB / 1.253 GB, free: 14.69 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 6.869e-05/0.7967, allocations: 346.1 kB / 1.253 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.7968, allocations: 60.98 kB / 1.253 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/0.797, allocations: 57.27 kB / 1.253 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.7972, allocations: 135.2 kB / 1.253 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7973, allocations: 0 / 1.253 GB, free: 14.36 MB / 0.9981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003692/0.7976, allocations: 209.2 kB / 1.254 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.7977, allocations: 11.34 kB / 1.254 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.7977, allocations: 1.719 kB / 1.254 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.7977, allocations: 0.7812 kB / 1.254 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002491/0.7979, allocations: 54.78 kB / 1.254 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.798, allocations: 2.594 kB / 1.254 GB, free: 14.31 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001418/0.7981, allocations: 20.77 kB / 1.254 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.7981, allocations: 4.844 kB / 1.254 GB, free: 14.3 MB / 0.9981 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 (20): * Single equations (assignments): 20 * 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 0.0001383/0.7983, allocations: 167.1 kB / 1.254 GB, free: 14.19 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.7983, allocations: 40.08 kB / 1.254 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.99e-05/0.7984, allocations: 39.25 kB / 1.254 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.7984, allocations: 2.312 kB / 1.254 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.7984, allocations: 0.7031 kB / 1.254 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.7984, allocations: 1.516 kB / 1.254 GB, free: 14.15 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003758/0.7988, allocations: 375.7 kB / 1.254 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.7988, allocations: 7.688 kB / 1.254 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.7991, allocations: 62.67 kB / 1.254 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.7991, allocations: 5 kB / 1.254 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.7991, allocations: 5.531 kB / 1.254 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.7991, allocations: 0.9062 kB / 1.254 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.7991, allocations: 0.875 kB / 1.254 GB, free: 13.87 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005565/0.7997, allocations: 374.4 kB / 1.255 GB, free: 13.65 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.409e-05/0.7998, allocations: 130 kB / 1.255 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.192e-05/0.7998, allocations: 9 kB / 1.255 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.8, allocations: 6.734 kB / 1.255 GB, free: 13.52 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.337e-05/0.8, allocations: 13.47 kB / 1.255 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/0.8, allocations: 3.594 kB / 1.255 GB, free: 13.51 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0003013/0.8003, allocations: 299.5 kB / 1.255 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.8003, allocations: 0.8438 kB / 1.255 GB, free: 13.37 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003071/0.8007, allocations: 82.28 kB / 1.255 GB, free: 13.35 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * 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 (18): * Single equations (assignments): 18 * 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.0007309/0.8014, allocations: 0.9233 MB / 1.256 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003452/0.8018, allocations: 142.9 kB / 1.256 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8018, allocations: 0 / 1.256 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.8019, allocations: 80.36 kB / 1.256 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005227/0.8025, allocations: 102.7 kB / 1.256 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004024/0.8065, allocations: 3.481 MB / 1.26 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002334/0.8067, allocations: 0.7973 MB / 1.261 GB, free: 9.746 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001458/0.8069, allocations: 31.81 kB / 1.261 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.807, allocations: 120.2 kB / 1.261 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of SimCode: time 4.21e-07/0.807, allocations: 0 / 1.261 GB, free: 9.656 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.838, allocations: 7.957 MB / 1.269 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.082/8.92, allocations: 11.33 kB / 1.269 GB, free: 8.832 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches