Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_9_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_9_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.008051/0.008051, allocations: 108 kB / 15.74 MB, free: 6.02 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.001903/0.001903, allocations: 193.3 kB / 16.67 MB, free: 5.934 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.12 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.244/2.244, allocations: 390.3 MB / 0.6648 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 63.91 kB / 0.9504 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8151/0.8167, allocations: 140.4 MB / 1.088 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003972/0.8207, allocations: 3.039 MB / 1.09 GB, free: 3.145 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002606/0.8234, allocations: 2.142 MB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002052/0.8236, allocations: 5.906 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001309/0.8249, allocations: 0.4981 MB / 1.093 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002837/0.8252, allocations: 157.6 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001358/0.8254, allocations: 57.27 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005122/0.8259, allocations: 444.6 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.8261, allocations: 158.2 kB / 1.094 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002123/0.8264, allocations: 159.7 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.8266, allocations: 181.7 kB / 1.094 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.781e-05/0.8267, allocations: 39.11 kB / 1.094 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.12e-05/0.8267, allocations: 34.56 kB / 1.094 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.8269, allocations: 94.25 kB / 1.094 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002149/0.8271, allocations: 222.4 kB / 1.095 GB, free: 0.543 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0006924/0.8278, allocations: 0.5494 MB / 1.095 GB, free: 352 kB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.8278, allocations: 0.625 kB / 1.095 GB, free: 352 kB / 0.8575 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8278, allocations: 0 / 1.095 GB, free: 352 kB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.151e-05/0.8278, allocations: 1 kB / 1.095 GB, free: 352 kB / 0.8575 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.00116/0.829, allocations: 0.709 MB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.829, allocations: 14.38 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.137e-05/0.8291, allocations: 58.27 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.807e-05/0.8292, allocations: 50.3 kB / 1.096 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006347/0.8299, allocations: 384.9 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/0.8299, allocations: 13.38 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.962e-05/0.8299, allocations: 22.06 kB / 1.096 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.8304, allocations: 208.2 kB / 1.096 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.8305, allocations: 0.7031 kB / 1.096 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.8305, allocations: 5.938 kB / 1.096 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.8305, allocations: 5.281 kB / 1.097 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004465/0.831, allocations: 168.9 kB / 1.097 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001378/0.8323, allocations: 0.8618 MB / 1.098 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003279/0.8327, allocations: 166.1 kB / 1.098 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.8329, allocations: 108.5 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.8329, allocations: 2.156 kB / 1.098 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.833, allocations: 32.75 kB / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.833, allocations: 0 / 1.098 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of matching and sorting (n=18): time 0.0006803/0.8337, allocations: 266.8 kB / 1.098 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.8337, allocations: 54.2 kB / 1.098 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005919/0.8343, allocations: 418.9 kB / 1.099 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.8343, allocations: 25.7 kB / 1.099 GB, free: 14 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.8345, allocations: 208.6 kB / 1.099 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 6.501e-05/0.8346, allocations: 63.88 kB / 1.099 GB, free: 13.78 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.604e-05/0.8347, allocations: 35.52 kB / 1.099 GB, free: 13.75 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.8348, allocations: 347 kB / 1.099 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.835, allocations: 57.33 kB / 1.099 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.8352, allocations: 59.47 kB / 1.099 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003109/0.8355, allocations: 130.8 kB / 1.099 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.8355, allocations: 0 / 1.099 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004146/0.8359, allocations: 218.3 kB / 1.1 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.8359, allocations: 5.906 kB / 1.1 GB, free: 13.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.8359, allocations: 3.938 kB / 1.1 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.836, allocations: 4.938 kB / 1.1 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002556/0.8362, allocations: 50.77 kB / 1.1 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.8362, allocations: 2 kB / 1.1 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.8364, allocations: 19.34 kB / 1.1 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.8364, allocations: 12.88 kB / 1.1 GB, free: 13.19 MB / 0.8731 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.0001618/0.8366, allocations: 169.1 kB / 1.1 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.441e-05/0.8366, allocations: 35.86 kB / 1.1 GB, free: 13.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.166e-05/0.8367, allocations: 45.06 kB / 1.1 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.8367, allocations: 6.141 kB / 1.1 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.8368, allocations: 0.7031 kB / 1.1 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.8368, allocations: 1.797 kB / 1.1 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004771/0.8372, allocations: 379.2 kB / 1.1 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.8373, allocations: 0 / 1.1 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.8375, allocations: 59.22 kB / 1.1 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.8376, allocations: 6.172 kB / 1.1 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.8376, allocations: 8.625 kB / 1.1 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.8376, allocations: 0.75 kB / 1.1 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8376, allocations: 1.125 kB / 1.1 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006593/0.8383, allocations: 368.5 kB / 1.101 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001246/0.8384, allocations: 127.5 kB / 1.101 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.12e-05/0.8385, allocations: 11.06 kB / 1.101 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.8386, allocations: 5.938 kB / 1.101 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.8387, allocations: 13.22 kB / 1.101 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.138e-06/0.8387, allocations: 3.656 kB / 1.101 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003786/0.8391, allocations: 300.7 kB / 1.101 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.512e-06/0.8391, allocations: 1 kB / 1.101 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003227/0.8394, allocations: 79.36 kB / 1.101 GB, free: 12.16 MB / 0.8731 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.0009389/0.8404, allocations: 0.9161 MB / 1.102 GB, free: 11.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003896/0.8408, allocations: 148.5 kB / 1.102 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.8408, allocations: 4.062 kB / 1.102 GB, free: 11.35 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.841, allocations: 77.55 kB / 1.102 GB, free: 11.32 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005962/0.8416, allocations: 96.88 kB / 1.102 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/0.8466, allocations: 3.5 MB / 1.106 GB, free: 9.191 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.8471, allocations: 0.798 MB / 1.107 GB, free: 8.48 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001743/0.8473, allocations: 31.66 kB / 1.107 GB, free: 8.477 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.8474, allocations: 123.1 kB / 1.107 GB, free: 8.383 MB / 0.8731 GB Notification: Performance of SimCode: time 4.71e-07/0.8474, allocations: 4 kB / 1.107 GB, free: 8.379 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02935/0.8768, allocations: 7.974 MB / 1.115 GB, free: 7.535 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.863, allocations: 3.188 kB / 1.115 GB, free: 7.535 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches