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 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: 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.001445/0.001445, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001656/0.001656, allocations: 192.1 kB / 16.26 MB, free: 6.625 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.299/1.299, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.646/2.646, allocations: 472.6 MB / 0.7448 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 66.38 kB / 0.9116 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2807, allocations: 159.9 MB / 1.068 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004823/0.2855, allocations: 4.175 MB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002967/0.2885, allocations: 2.379 MB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002092/0.2888, allocations: 12 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001381/0.2902, allocations: 0.5135 MB / 1.075 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003549/0.2905, allocations: 206.5 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.2907, allocations: 123.9 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006574/0.2914, allocations: 0.8021 MB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003907/0.2918, allocations: 330.5 kB / 1.076 GB, free: 2.113 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.2921, allocations: 290.9 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.2924, allocations: 334.6 kB / 1.077 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.277e-05/0.2925, allocations: 72 kB / 1.077 GB, free: 1.43 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.701e-05/0.2926, allocations: 79.94 kB / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001457/0.2927, allocations: 163.5 kB / 1.077 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.293, allocations: 394.2 kB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006996/0.2938, allocations: 0.985 MB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2938, allocations: 0 / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2938, allocations: 0 / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.2938, allocations: 0 / 1.078 GB, free: 15.82 MB / 0.8419 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.001286/0.2951, allocations: 0.9424 MB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.2951, allocations: 8.031 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.2952, allocations: 76.09 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004926/0.2957, allocations: 453.7 kB / 1.08 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.2958, allocations: 41.31 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.04e-05/0.2958, allocations: 48.38 kB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007056/0.2966, allocations: 426.8 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.2966, allocations: 3.906 kB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.2966, allocations: 16 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.541e-05/0.2966, allocations: 12 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006397/0.2973, allocations: 367.8 kB / 1.081 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.2991, allocations: 1.543 MB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004801/0.2996, allocations: 338.9 kB / 1.082 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000438/0.3001, allocations: 318.6 kB / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.3001, allocations: 4 kB / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.207e-05/0.3001, allocations: 38.5 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=42): time 1.703e-06/0.3002, allocations: 3.938 kB / 1.083 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of matching and sorting (n=42): time 0.0008963/0.3011, allocations: 494.2 kB / 1.083 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.66e-05/0.3011, allocations: 67.41 kB / 1.083 GB, free: 10.47 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004889/0.3016, allocations: 478.7 kB / 1.084 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.3016, allocations: 37.7 kB / 1.084 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.3018, allocations: 272.3 kB / 1.084 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.3019, allocations: 145.9 kB / 1.084 GB, free: 9.535 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.015e-05/0.302, allocations: 58.08 kB / 1.084 GB, free: 9.469 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3021, allocations: 366.8 kB / 1.085 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.3024, allocations: 124.7 kB / 1.085 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.3026, allocations: 129.4 kB / 1.085 GB, free: 8.855 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004993/0.3031, allocations: 290.2 kB / 1.085 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3031, allocations: 0 / 1.085 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006005/0.3037, allocations: 408.1 kB / 1.086 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3038, allocations: 8 kB / 1.086 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3038, allocations: 0 / 1.086 GB, free: 8.156 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.388e-05/0.3038, allocations: 4 kB / 1.086 GB, free: 8.152 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004947/0.3043, allocations: 123.9 kB / 1.086 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.3043, allocations: 0 / 1.086 GB, free: 8.031 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002562/0.3046, allocations: 55.59 kB / 1.086 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.3046, allocations: 12 kB / 1.086 GB, free: 7.965 MB / 0.8419 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.0001888/0.3048, allocations: 193.8 kB / 1.086 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.3049, allocations: 55.28 kB / 1.086 GB, free: 7.711 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.305, allocations: 61.11 kB / 1.086 GB, free: 7.652 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.305, allocations: 4 kB / 1.086 GB, free: 7.648 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.305, allocations: 3.984 kB / 1.086 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.305, allocations: 0 / 1.086 GB, free: 7.645 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005959/0.3056, allocations: 0.5749 MB / 1.087 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3056, allocations: 0 / 1.087 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005137/0.3061, allocations: 127.8 kB / 1.087 GB, free: 6.895 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3062, allocations: 4 kB / 1.087 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.3062, allocations: 8 kB / 1.087 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.3062, allocations: 4 kB / 1.087 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3062, allocations: 0 / 1.087 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009203/0.3071, allocations: 0.6507 MB / 1.087 GB, free: 6.211 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.3072, allocations: 140.4 kB / 1.088 GB, free: 6.055 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.678e-05/0.3073, allocations: 11.94 kB / 1.088 GB, free: 6.043 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.3076, allocations: 19.98 kB / 1.088 GB, free: 6.023 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.3076, allocations: 27.95 kB / 1.088 GB, free: 5.996 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.3077, allocations: 8 kB / 1.088 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003585/0.308, allocations: 351.1 kB / 1.088 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.308, allocations: 0 / 1.088 GB, free: 5.645 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003801/0.3084, allocations: 151.5 kB / 1.088 GB, free: 5.496 MB / 0.8419 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.0001386/0.3086, allocations: 111.1 kB / 1.088 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006712/0.3092, allocations: 339.5 kB / 1.089 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3093, allocations: 4 kB / 1.089 GB, free: 5.043 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002774/0.3095, allocations: 183.9 kB / 1.089 GB, free: 4.863 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007024/0.3103, allocations: 129 kB / 1.089 GB, free: 4.738 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.3121, allocations: 1.426 MB / 1.09 GB, free: 3.285 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003728/0.3125, allocations: 0.8665 MB / 1.091 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000185/0.3127, allocations: 48.38 kB / 1.091 GB, free: 2.344 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.975e-05/0.3128, allocations: 39.42 kB / 1.091 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of SimCode: time 3.71e-07/0.3128, allocations: 0 / 1.091 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of Templates: time 0.00996/0.3228, allocations: 5.86 MB / 1.097 GB, free: 12.59 MB / 0.8575 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