Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|TPip3.T|TPip4.T|intRes2UTub.capFil1.T|intRes2UTub.capFil2.T|intRes2UTub.capFil3.T|intRes2UTub.capFil4.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|TPip3.T|TPip4.T|intRes2UTub.capFil1.T|intRes2UTub.capFil2.T|intRes2UTub.capFil3.T|intRes2UTub.capFil4.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001745/0.001745, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0022/0.002199, allocations: 191.8 kB / 16.13 MB, free: 6.703 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.345/1.345, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.532/2.532, allocations: 437 MB / 0.7099 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 63.89 kB / 0.8686 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5621/0.5633, allocations: 151.6 MB / 1.017 GB, free: 2.77 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005111/0.5684, allocations: 4.186 MB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00333/0.5718, allocations: 2.381 MB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004955/0.5723, allocations: 8 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001843/0.5742, allocations: 0.4978 MB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.00102/0.5752, allocations: 218.5 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004172/0.5757, allocations: 115.9 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001283/0.577, allocations: 0.8095 MB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006866/0.5777, allocations: 280.1 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005758/0.5783, allocations: 262.9 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006712/0.5789, allocations: 326.5 kB / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001521/0.5791, allocations: 48 kB / 1.026 GB, free: 9.621 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002132/0.5793, allocations: 48 kB / 1.026 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.5795, allocations: 135.5 kB / 1.026 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005501/0.5801, allocations: 362.2 kB / 1.026 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.5813, allocations: 0.9616 MB / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.5813, allocations: 0 / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5813, allocations: 0 / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.914e-05/0.5814, allocations: 0 / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.002394/0.5838, allocations: 0.954 MB / 1.028 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.5838, allocations: 12.03 kB / 1.028 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002236/0.5841, allocations: 72.09 kB / 1.028 GB, free: 7.031 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009069/0.585, allocations: 449.7 kB / 1.028 GB, free: 6.555 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.393e-05/0.585, allocations: 33.38 kB / 1.028 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.5852, allocations: 48.38 kB / 1.029 GB, free: 6.473 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.5864, allocations: 438.8 kB / 1.029 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.5864, allocations: 8 kB / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.173e-05/0.5865, allocations: 20 kB / 1.029 GB, free: 6.012 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.774e-05/0.5865, allocations: 12 kB / 1.029 GB, free: 6 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.5877, allocations: 363.8 kB / 1.029 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00306/0.5908, allocations: 1.539 MB / 1.031 GB, free: 4.031 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008142/0.5916, allocations: 335 kB / 1.031 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00076/0.5924, allocations: 321.4 kB / 1.031 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.716e-05/0.5925, allocations: 4.688 kB / 1.031 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.5925, allocations: 50.48 kB / 1.031 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 3.026e-06/0.5925, allocations: 0 / 1.031 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.00152/0.5941, allocations: 496.3 kB / 1.032 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.5941, allocations: 63.12 kB / 1.032 GB, free: 2.75 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008367/0.595, allocations: 485.9 kB / 1.032 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.353e-05/0.595, allocations: 29.7 kB / 1.033 GB, free: 2.238 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.5953, allocations: 276.4 kB / 1.033 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.5955, allocations: 149.8 kB / 1.033 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.5956, allocations: 62.08 kB / 1.033 GB, free: 1.742 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5958, allocations: 362.8 kB / 1.033 GB, free: 1.379 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003614/0.5962, allocations: 120.7 kB / 1.033 GB, free: 1.262 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003629/0.5966, allocations: 129.2 kB / 1.034 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008213/0.5974, allocations: 294.4 kB / 1.034 GB, free: 0.8477 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5974, allocations: 3.938 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00104/0.5985, allocations: 400.1 kB / 1.034 GB, free: 456 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.5985, allocations: 6.344 kB / 1.034 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.5985, allocations: 0 / 1.034 GB, free: 452 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.5985, allocations: 4 kB / 1.034 GB, free: 448 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007741/0.5993, allocations: 127.8 kB / 1.034 GB, free: 320 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.5994, allocations: 4 kB / 1.034 GB, free: 316 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004205/0.5998, allocations: 47.66 kB / 1.034 GB, free: 268 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.5998, allocations: 8 kB / 1.034 GB, free: 260 kB / 0.7794 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 (46): * Single equations (assignments): 46 * 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.0003116/0.6001, allocations: 198.3 kB / 1.035 GB, free: 52 kB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.6003, allocations: 55.48 kB / 1.035 GB, free: 15.99 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.6005, allocations: 65.11 kB / 1.035 GB, free: 15.93 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.707e-06/0.6005, allocations: 7.984 kB / 1.035 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.6005, allocations: 0 / 1.035 GB, free: 15.92 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.6005, allocations: 3.984 kB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009876/0.6015, allocations: 0.5751 MB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.6015, allocations: 3.938 kB / 1.035 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007992/0.6023, allocations: 127.8 kB / 1.035 GB, free: 15.16 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.156e-06/0.6024, allocations: 7.938 kB / 1.035 GB, free: 15.15 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.368e-05/0.6024, allocations: 8 kB / 1.035 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.6024, allocations: 4 kB / 1.035 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.6024, allocations: 0 / 1.035 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001495/0.6039, allocations: 0.6442 MB / 1.036 GB, free: 14.48 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001896/0.6041, allocations: 136.5 kB / 1.036 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.525e-05/0.6042, allocations: 8 kB / 1.036 GB, free: 14.32 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.6046, allocations: 27.98 kB / 1.036 GB, free: 14.29 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.489e-05/0.6047, allocations: 27.95 kB / 1.036 GB, free: 14.27 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.6048, allocations: 4 kB / 1.036 GB, free: 14.26 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006089/0.6054, allocations: 351.1 kB / 1.037 GB, free: 13.93 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.8e-07/0.6054, allocations: 4 kB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000673/0.6061, allocations: 147.5 kB / 1.037 GB, free: 13.78 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.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 (42): * Single equations (assignments): 42 * 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.0001795/0.6063, allocations: 119.2 kB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009282/0.6072, allocations: 323.7 kB / 1.037 GB, free: 13.34 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.6072, allocations: 0 / 1.037 GB, free: 13.34 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000476/0.6077, allocations: 179.6 kB / 1.037 GB, free: 13.16 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.6088, allocations: 125.8 kB / 1.037 GB, free: 13.04 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.6117, allocations: 1.419 MB / 1.039 GB, free: 11.59 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.6123, allocations: 0.8707 MB / 1.04 GB, free: 10.7 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.000307/0.6126, allocations: 48.41 kB / 1.04 GB, free: 10.65 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.6128, allocations: 35.44 kB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of SimCode: time 4.91e-07/0.6128, allocations: 3.938 kB / 1.04 GB, free: 10.61 MB / 0.795 GB Notification: Performance of Templates: time 0.01386/0.6267, allocations: 5.598 MB / 1.045 GB, free: 5.145 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches