Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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: 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_latest_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_latest_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.004533/0.004533, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001035/0.001035, allocations: 196.2 kB / 16.67 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.304/1.304, 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 11.0.1-master/package.mo): time 2.788/2.788, allocations: 461.9 MB / 0.7348 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 64.12 kB / 1.054 GB, free: 7.059 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2639, allocations: 157.4 MB / 1.208 GB, free: 9.551 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00492/0.2688, allocations: 4.166 MB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003199/0.2721, allocations: 2.413 MB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003134/0.2724, allocations: 8 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.2738, allocations: 0.5389 MB / 1.215 GB, free: 2.387 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005058/0.2744, allocations: 250 kB / 1.215 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002445/0.2746, allocations: 143.8 kB / 1.215 GB, free: 2 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0008533/0.2755, allocations: 0.802 MB / 1.216 GB, free: 1.195 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004387/0.2759, allocations: 326.5 kB / 1.216 GB, free: 0.875 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004096/0.2763, allocations: 302.9 kB / 1.216 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004431/0.2768, allocations: 326.6 kB / 1.217 GB, free: 264 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001116/0.2769, allocations: 76 kB / 1.217 GB, free: 188 kB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.277, allocations: 76 kB / 1.217 GB, free: 112 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001567/0.2772, allocations: 175.4 kB / 1.217 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.2775, allocations: 382.2 kB / 1.217 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000765/0.2783, allocations: 0.9928 MB / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2783, allocations: 0 / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2783, allocations: 0 / 1.218 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.2783, allocations: 0 / 1.218 GB, free: 14.57 MB / 0.9825 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.001318/0.2796, allocations: 0.9385 MB / 1.219 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2797, allocations: 16.62 kB / 1.219 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.2798, allocations: 76 kB / 1.219 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.2804, allocations: 461.6 kB / 1.22 GB, free: 13 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.2804, allocations: 41.36 kB / 1.22 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.386e-05/0.2805, allocations: 48.38 kB / 1.22 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007141/0.2812, allocations: 434.7 kB / 1.22 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.2812, allocations: 0 / 1.22 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.763e-05/0.2813, allocations: 20 kB / 1.22 GB, free: 12.46 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.087e-05/0.2813, allocations: 16 kB / 1.22 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006686/0.282, allocations: 371.7 kB / 1.221 GB, free: 12.08 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.2839, allocations: 1.512 MB / 1.222 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005019/0.2844, allocations: 337 kB / 1.223 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004594/0.2849, allocations: 328.7 kB / 1.223 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.2849, allocations: 4.688 kB / 1.223 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.285, allocations: 42.44 kB / 1.223 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=42): time 1.673e-06/0.285, allocations: 0 / 1.223 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of matching and sorting (n=42): time 0.000922/0.2859, allocations: 0.4897 MB / 1.223 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.286, allocations: 59.19 kB / 1.223 GB, free: 9.211 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005101/0.2865, allocations: 485.9 kB / 1.224 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.2865, allocations: 33.7 kB / 1.224 GB, free: 8.68 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.2867, allocations: 280.3 kB / 1.224 GB, free: 8.402 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.826e-05/0.2868, allocations: 145.8 kB / 1.224 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.2869, allocations: 66.08 kB / 1.224 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.287, allocations: 358.8 kB / 1.225 GB, free: 7.824 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.2873, allocations: 124.7 kB / 1.225 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.2875, allocations: 125.4 kB / 1.225 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005083/0.288, allocations: 294.2 kB / 1.225 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2881, allocations: 0 / 1.225 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006305/0.2887, allocations: 408.1 kB / 1.226 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.2887, allocations: 9.562 kB / 1.226 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2887, allocations: 0 / 1.226 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.2888, allocations: 4 kB / 1.226 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005083/0.2893, allocations: 123.9 kB / 1.226 GB, free: 6.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.2893, allocations: 4 kB / 1.226 GB, free: 6.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.2895, allocations: 31.67 kB / 1.226 GB, free: 6.719 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.2895, allocations: 16 kB / 1.226 GB, free: 6.703 MB / 0.9825 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.0002/0.2897, allocations: 197.7 kB / 1.226 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.984e-05/0.2898, allocations: 55.28 kB / 1.226 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.2899, allocations: 61.09 kB / 1.226 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2899, allocations: 4 kB / 1.226 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.29, allocations: 0 / 1.226 GB, free: 6.383 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.29, allocations: 3.984 kB / 1.226 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000639/0.2906, allocations: 0.5674 MB / 1.227 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2906, allocations: 0 / 1.227 GB, free: 5.762 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005492/0.2912, allocations: 135.8 kB / 1.227 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2912, allocations: 4 kB / 1.227 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.2912, allocations: 4 kB / 1.227 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.2912, allocations: 4 kB / 1.227 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2912, allocations: 0 / 1.227 GB, free: 5.617 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009584/0.2922, allocations: 0.6469 MB / 1.228 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/0.2923, allocations: 144.3 kB / 1.228 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.757e-05/0.2924, allocations: 15.94 kB / 1.228 GB, free: 4.777 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.2926, allocations: 11.98 kB / 1.228 GB, free: 4.766 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.661e-05/0.2927, allocations: 23.97 kB / 1.228 GB, free: 4.742 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.2927, allocations: 8 kB / 1.228 GB, free: 4.734 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000362/0.2931, allocations: 351.1 kB / 1.228 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2931, allocations: 0 / 1.228 GB, free: 4.395 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003809/0.2935, allocations: 143.7 kB / 1.228 GB, free: 4.254 MB / 0.9825 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.0001348/0.2936, allocations: 116.6 kB / 1.228 GB, free: 4.133 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005881/0.2942, allocations: 315.6 kB / 1.229 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2942, allocations: 0 / 1.229 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.2945, allocations: 183.9 kB / 1.229 GB, free: 3.645 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/0.2951, allocations: 129.8 kB / 1.229 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.2969, allocations: 1.195 MB / 1.23 GB, free: 2.293 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004519/0.2974, allocations: 0.8743 MB / 1.231 GB, free: 1.395 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001833/0.2976, allocations: 56.33 kB / 1.231 GB, free: 1.336 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.562e-05/0.2977, allocations: 35.44 kB / 1.231 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.2977, allocations: 0 / 1.231 GB, free: 1.301 MB / 0.9825 GB Notification: Performance of Templates: time 0.01143/0.3091, allocations: 6.178 MB / 1.237 GB, free: 11.26 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches