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.001186/0.001186, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001007/0.001007, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.455/2.455, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 66.05 kB / 0.8774 GB, free: 10.91 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2998/0.3011, allocations: 153 MB / 1.027 GB, free: 1.984 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005452/0.3065, allocations: 4.172 MB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003525/0.3101, allocations: 2.417 MB / 1.033 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003189/0.3105, allocations: 8 kB / 1.033 GB, free: 11.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001526/0.312, allocations: 0.5363 MB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004938/0.3125, allocations: 246 kB / 1.034 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.3128, allocations: 139.8 kB / 1.034 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007604/0.3135, allocations: 0.813 MB / 1.035 GB, free: 9.617 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004221/0.314, allocations: 326.5 kB / 1.035 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003142/0.3143, allocations: 287 kB / 1.035 GB, free: 9.016 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003574/0.3147, allocations: 330.6 kB / 1.036 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.657e-05/0.3148, allocations: 76 kB / 1.036 GB, free: 8.617 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.3149, allocations: 72 kB / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.3151, allocations: 175.4 kB / 1.036 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003189/0.3154, allocations: 378.3 kB / 1.036 GB, free: 8.004 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0008115/0.3162, allocations: 1.001 MB / 1.037 GB, free: 7 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3162, allocations: 0 / 1.037 GB, free: 7 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3162, allocations: 0 / 1.037 GB, free: 7 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.333e-05/0.3162, allocations: 0 / 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.001438/0.3177, allocations: 0.9463 MB / 1.038 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3177, allocations: 12.03 kB / 1.038 GB, free: 5.992 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.3179, allocations: 76.09 kB / 1.038 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00067/0.3185, allocations: 461.6 kB / 1.039 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.3186, allocations: 37.38 kB / 1.039 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.618e-05/0.3186, allocations: 48.38 kB / 1.039 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007168/0.3194, allocations: 430.8 kB / 1.039 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.3194, allocations: 3.906 kB / 1.039 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.401e-05/0.3195, allocations: 23.94 kB / 1.039 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.3195, allocations: 12 kB / 1.039 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006578/0.3201, allocations: 367.8 kB / 1.04 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.3221, allocations: 1.512 MB / 1.041 GB, free: 2.934 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/0.3226, allocations: 355.4 kB / 1.042 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.3231, allocations: 328.7 kB / 1.042 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.3232, allocations: 4 kB / 1.042 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.775e-05/0.3232, allocations: 38.5 kB / 1.042 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.3232, allocations: 0 / 1.042 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of matching and sorting (n=42): time 0.0009068/0.3241, allocations: 498.2 kB / 1.042 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.3242, allocations: 55.41 kB / 1.042 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005385/0.3247, allocations: 489.9 kB / 1.043 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.3248, allocations: 33.7 kB / 1.043 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001777/0.3249, allocations: 276.3 kB / 1.043 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001129/0.3251, allocations: 145.9 kB / 1.043 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.467e-05/0.3252, allocations: 58.08 kB / 1.043 GB, free: 0.625 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3253, allocations: 366.7 kB / 1.044 GB, free: 264 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002336/0.3256, allocations: 124.7 kB / 1.044 GB, free: 140 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/0.3258, allocations: 126.2 kB / 1.044 GB, free: 16 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004991/0.3263, allocations: 294 kB / 1.044 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.3263, allocations: 0 / 1.044 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006676/0.327, allocations: 404.1 kB / 1.045 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.327, allocations: 7.984 kB / 1.045 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.327, allocations: 4 kB / 1.045 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.137e-05/0.327, allocations: 0 / 1.045 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.3276, allocations: 131.7 kB / 1.045 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3276, allocations: 0 / 1.045 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.3278, allocations: 39.53 kB / 1.045 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.3279, allocations: 12 kB / 1.045 GB, free: 15.13 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.0002248/0.3281, allocations: 197.8 kB / 1.045 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.3282, allocations: 55.38 kB / 1.045 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.3283, allocations: 61.09 kB / 1.045 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.3283, allocations: 4 kB / 1.045 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3283, allocations: 0 / 1.045 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3283, allocations: 0 / 1.045 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006297/0.329, allocations: 0.5673 MB / 1.046 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.329, allocations: 0 / 1.046 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005141/0.3295, allocations: 131.8 kB / 1.046 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.902e-06/0.3295, allocations: 4 kB / 1.046 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.3295, allocations: 7.984 kB / 1.046 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.499e-06/0.3295, allocations: 4 kB / 1.046 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.3295, allocations: 4 kB / 1.046 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009533/0.3305, allocations: 0.6429 MB / 1.046 GB, free: 13.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001406/0.3307, allocations: 148.4 kB / 1.047 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.988e-05/0.3307, allocations: 12 kB / 1.047 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.3309, allocations: 8 kB / 1.047 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.331, allocations: 23.97 kB / 1.047 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.3311, allocations: 11.98 kB / 1.047 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003974/0.3315, allocations: 351.1 kB / 1.047 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.3315, allocations: 0 / 1.047 GB, free: 12.83 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003939/0.3319, allocations: 143.6 kB / 1.047 GB, free: 12.69 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.0001508/0.332, allocations: 123.1 kB / 1.047 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005891/0.3326, allocations: 319.6 kB / 1.048 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3326, allocations: 0 / 1.048 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002861/0.3329, allocations: 183.9 kB / 1.048 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006204/0.3335, allocations: 124.6 kB / 1.048 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.3354, allocations: 1.194 MB / 1.049 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3359, allocations: 0.8782 MB / 1.05 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001934/0.3361, allocations: 52.39 kB / 1.05 GB, free: 9.766 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.553e-05/0.3362, allocations: 35.44 kB / 1.05 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.3362, allocations: 0 / 1.05 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of Templates: time 0.01106/0.3472, allocations: 5.924 MB / 1.056 GB, free: 3.945 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 cvode -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