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.005593/0.005593, allocations: 103.8 kB / 15.73 MB, free: 6.039 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.001522/0.001522, allocations: 193.8 kB / 16.67 MB, free: 5.973 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.309/1.309, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.602/2.602, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.89 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2901, allocations: 157.4 MB / 1.208 GB, free: 9.625 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005173/0.2954, allocations: 4.161 MB / 1.212 GB, free: 5.438 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00301/0.2984, allocations: 2.409 MB / 1.214 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002248/0.2986, allocations: 12 kB / 1.214 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.2999, allocations: 0.5324 MB / 1.215 GB, free: 2.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004036/0.3004, allocations: 250 kB / 1.215 GB, free: 2.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.3006, allocations: 147.8 kB / 1.215 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0007264/0.3013, allocations: 0.802 MB / 1.216 GB, free: 1.273 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004207/0.3017, allocations: 330.5 kB / 1.216 GB, free: 0.9492 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003071/0.3021, allocations: 306.8 kB / 1.216 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.3024, allocations: 330.6 kB / 1.217 GB, free: 332 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 8.073e-05/0.3025, allocations: 76 kB / 1.217 GB, free: 256 kB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.574e-05/0.3026, allocations: 76 kB / 1.217 GB, free: 180 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001491/0.3028, allocations: 171.4 kB / 1.217 GB, free: 8 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003091/0.3031, allocations: 378.4 kB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007942/0.3039, allocations: 0.9995 MB / 1.218 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3039, allocations: 0 / 1.218 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.403e-06/0.3039, allocations: 0 / 1.218 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.331e-05/0.3039, allocations: 0 / 1.218 GB, free: 14.64 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.001328/0.3053, allocations: 0.9385 MB / 1.219 GB, free: 13.65 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.3053, allocations: 12.62 kB / 1.219 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.3054, allocations: 80 kB / 1.219 GB, free: 13.56 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005847/0.306, allocations: 461.6 kB / 1.22 GB, free: 13.07 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.306, allocations: 37.38 kB / 1.22 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-05/0.3061, allocations: 48.38 kB / 1.22 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007308/0.3069, allocations: 430.8 kB / 1.22 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.3069, allocations: 0 / 1.22 GB, free: 12.56 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.3069, allocations: 20 kB / 1.22 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.3069, allocations: 16 kB / 1.22 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006703/0.3076, allocations: 371.7 kB / 1.221 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.3095, allocations: 1.52 MB / 1.222 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005111/0.3101, allocations: 336.2 kB / 1.223 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004719/0.3105, allocations: 325.5 kB / 1.223 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.3106, allocations: 4.688 kB / 1.223 GB, free: 9.902 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.646e-05/0.3106, allocations: 38.5 kB / 1.223 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=42): time 2.946e-06/0.3106, allocations: 0 / 1.223 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of matching and sorting (n=42): time 0.0009184/0.3115, allocations: 0.4974 MB / 1.223 GB, free: 9.352 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.3116, allocations: 59.19 kB / 1.223 GB, free: 9.281 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005258/0.3121, allocations: 489.9 kB / 1.224 GB, free: 8.785 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.3122, allocations: 29.7 kB / 1.224 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.3123, allocations: 280.3 kB / 1.224 GB, free: 8.473 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001098/0.3124, allocations: 145.8 kB / 1.224 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.632e-05/0.3126, allocations: 62.08 kB / 1.224 GB, free: 8.258 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001424/0.3127, allocations: 362.8 kB / 1.225 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.313, allocations: 124.7 kB / 1.225 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/0.3132, allocations: 121.5 kB / 1.225 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005022/0.3137, allocations: 298.1 kB / 1.225 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3137, allocations: 0 / 1.225 GB, free: 7.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006304/0.3144, allocations: 404.1 kB / 1.226 GB, free: 6.961 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3144, allocations: 8 kB / 1.226 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3144, allocations: 0 / 1.226 GB, free: 6.953 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.3144, allocations: 3.938 kB / 1.226 GB, free: 6.949 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005147/0.3149, allocations: 123.9 kB / 1.226 GB, free: 6.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.3149, allocations: 4 kB / 1.226 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000204/0.3152, allocations: 35.67 kB / 1.226 GB, free: 6.789 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.3152, allocations: 12 kB / 1.226 GB, free: 6.777 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.0001932/0.3154, allocations: 197.8 kB / 1.226 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.3155, allocations: 55.28 kB / 1.226 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.3156, allocations: 61.09 kB / 1.226 GB, free: 6.461 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.3156, allocations: 7.938 kB / 1.226 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.3156, allocations: 0 / 1.226 GB, free: 6.453 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3156, allocations: 7.984 kB / 1.226 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006071/0.3162, allocations: 0.5635 MB / 1.227 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3162, allocations: 0 / 1.227 GB, free: 5.832 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005166/0.3168, allocations: 135.8 kB / 1.227 GB, free: 5.699 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3168, allocations: 4 kB / 1.227 GB, free: 5.695 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.211e-05/0.3168, allocations: 4 kB / 1.227 GB, free: 5.691 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3168, allocations: 4 kB / 1.227 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3168, allocations: 0 / 1.227 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009587/0.3178, allocations: 0.6508 MB / 1.228 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001164/0.3179, allocations: 144.3 kB / 1.228 GB, free: 4.859 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.318, allocations: 12 kB / 1.228 GB, free: 4.848 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.3182, allocations: 11.98 kB / 1.228 GB, free: 4.836 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.366e-05/0.3183, allocations: 23.97 kB / 1.228 GB, free: 4.812 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.3183, allocations: 8 kB / 1.228 GB, free: 4.805 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003769/0.3187, allocations: 355.1 kB / 1.228 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3187, allocations: 0 / 1.228 GB, free: 4.461 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003725/0.3191, allocations: 139.7 kB / 1.228 GB, free: 4.324 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.0001471/0.3192, allocations: 121.4 kB / 1.228 GB, free: 4.199 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005848/0.3198, allocations: 315.6 kB / 1.229 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3198, allocations: 0 / 1.229 GB, free: 3.891 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002968/0.3201, allocations: 183.9 kB / 1.229 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006284/0.3208, allocations: 129 kB / 1.229 GB, free: 3.586 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.3225, allocations: 1.195 MB / 1.23 GB, free: 2.363 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.3229, allocations: 0.8704 MB / 1.231 GB, free: 1.469 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001721/0.3231, allocations: 56.39 kB / 1.231 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.885e-05/0.3232, allocations: 35.44 kB / 1.231 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of SimCode: time 2.2e-07/0.3232, allocations: 0 / 1.231 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of Templates: time 0.01038/0.3336, allocations: 6.033 MB / 1.237 GB, free: 11.48 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