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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: 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.001194/0.001194, allocations: 102 kB / 16.35 MB, free: 5.824 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.001258/0.001258, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.276/1.276, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.419/2.419, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001248, allocations: 63.88 kB / 0.8774 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2647, allocations: 153 MB / 1.027 GB, free: 1.996 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004893/0.2696, allocations: 4.172 MB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003009/0.2727, allocations: 2.425 MB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000217/0.2729, allocations: 8 kB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001379/0.2743, allocations: 0.5324 MB / 1.034 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004325/0.2747, allocations: 246 kB / 1.034 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002231/0.275, allocations: 143.8 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007866/0.2758, allocations: 0.8097 MB / 1.035 GB, free: 9.621 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004061/0.2762, allocations: 326.5 kB / 1.035 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.2765, allocations: 287 kB / 1.035 GB, free: 9.02 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003228/0.2768, allocations: 330.6 kB / 1.036 GB, free: 8.695 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.196e-05/0.2769, allocations: 72 kB / 1.036 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.659e-05/0.277, allocations: 76 kB / 1.036 GB, free: 8.551 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.2772, allocations: 171.4 kB / 1.036 GB, free: 8.383 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003102/0.2775, allocations: 390.2 kB / 1.036 GB, free: 8 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007625/0.2782, allocations: 0.985 MB / 1.037 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2783, allocations: 7.984 kB / 1.037 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2783, allocations: 0 / 1.037 GB, free: 7.004 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.203e-05/0.2783, allocations: 4 kB / 1.037 GB, free: 7 MB / 0.8106 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.9463 MB / 1.038 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.2796, allocations: 8.031 kB / 1.038 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.2798, allocations: 72.09 kB / 1.038 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006114/0.2804, allocations: 469.5 kB / 1.039 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.064e-05/0.2804, allocations: 41.38 kB / 1.039 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.022e-05/0.2805, allocations: 48.38 kB / 1.039 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006908/0.2812, allocations: 430.8 kB / 1.039 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.2812, allocations: 3.906 kB / 1.039 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.825e-05/0.2813, allocations: 20 kB / 1.039 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2813, allocations: 15.94 kB / 1.039 GB, free: 4.875 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006547/0.2819, allocations: 363.8 kB / 1.04 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.2838, allocations: 1.512 MB / 1.041 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.2843, allocations: 336.2 kB / 1.042 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004492/0.2848, allocations: 328.7 kB / 1.042 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.71e-05/0.2848, allocations: 4 kB / 1.042 GB, free: 2.266 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.2849, allocations: 42.5 kB / 1.042 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=42): time 1.743e-06/0.2849, allocations: 0 / 1.042 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of matching and sorting (n=42): time 0.0008941/0.2858, allocations: 498.3 kB / 1.042 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.2858, allocations: 55.41 kB / 1.042 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005099/0.2863, allocations: 489.9 kB / 1.043 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.2864, allocations: 29.7 kB / 1.043 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.2865, allocations: 280.3 kB / 1.043 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.723e-05/0.2866, allocations: 141.9 kB / 1.043 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.039e-05/0.2867, allocations: 62.08 kB / 1.043 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.2869, allocations: 358.8 kB / 1.044 GB, free: 288 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.2871, allocations: 128.6 kB / 1.044 GB, free: 160 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002174/0.2874, allocations: 129.4 kB / 1.044 GB, free: 32 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004923/0.2879, allocations: 298 kB / 1.044 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2879, allocations: 0 / 1.044 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006105/0.2885, allocations: 400.1 kB / 1.045 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2885, allocations: 7.938 kB / 1.045 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.2885, allocations: 0 / 1.045 GB, free: 15.33 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.2885, allocations: 8 kB / 1.045 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004852/0.289, allocations: 127.9 kB / 1.045 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.289, allocations: 3.938 kB / 1.045 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001948/0.2892, allocations: 39.52 kB / 1.045 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.2893, allocations: 12 kB / 1.045 GB, free: 15.14 MB / 0.8262 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.000192/0.2895, allocations: 197.8 kB / 1.045 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.271e-05/0.2895, allocations: 51.38 kB / 1.045 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.812e-05/0.2896, allocations: 61.11 kB / 1.045 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.2897, allocations: 4 kB / 1.045 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.2897, allocations: 0 / 1.045 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.2897, allocations: 3.984 kB / 1.045 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005934/0.2903, allocations: 0.5711 MB / 1.046 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.2903, allocations: 0 / 1.046 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000499/0.2908, allocations: 127.8 kB / 1.046 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2908, allocations: 0 / 1.046 GB, free: 14.08 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.27e-05/0.2908, allocations: 12 kB / 1.046 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.2908, allocations: 4 kB / 1.046 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2908, allocations: 4 kB / 1.046 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009142/0.2918, allocations: 0.6468 MB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.2919, allocations: 140.4 kB / 1.047 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.908e-05/0.292, allocations: 4 kB / 1.047 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.2922, allocations: 23.98 kB / 1.047 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.2922, allocations: 19.97 kB / 1.047 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.2923, allocations: 8 kB / 1.047 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003636/0.2926, allocations: 355.1 kB / 1.047 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2926, allocations: 0 / 1.047 GB, free: 12.84 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003801/0.293, allocations: 143.6 kB / 1.047 GB, free: 12.7 MB / 0.8262 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.0001218/0.2932, allocations: 115.3 kB / 1.047 GB, free: 12.58 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005551/0.2937, allocations: 323.6 kB / 1.048 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2937, allocations: 4 kB / 1.048 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002793/0.294, allocations: 179.9 kB / 1.048 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.2946, allocations: 129.9 kB / 1.048 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.2963, allocations: 1.194 MB / 1.049 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.2967, allocations: 0.8704 MB / 1.05 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001946/0.2969, allocations: 60.38 kB / 1.05 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.212e-05/0.297, allocations: 35.44 kB / 1.05 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.297, allocations: 4 kB / 1.05 GB, free: 9.738 MB / 0.8262 GB Notification: Performance of Templates: time 0.01022/0.3073, allocations: 5.923 MB / 1.056 GB, free: 3.957 MB / 0.8262 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 -s gbode -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/jenkins1/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