Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001479/0.001479, allocations: 105.8 kB / 16.27 MB, free: 5.984 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.001918/0.001918, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.506/1.506, allocations: 222.9 MB / 240.9 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.444/2.444, allocations: 390.2 MB / 0.6653 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.001301, allocations: 63.62 kB / 0.8132 GB, free: 32.9 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2949, allocations: 140.4 MB / 0.9503 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005254/0.3002, allocations: 4.16 MB / 0.9544 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003373/0.3036, allocations: 2.421 MB / 0.9567 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003521/0.304, allocations: 12 kB / 0.9567 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.3057, allocations: 0.5363 MB / 0.9573 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005027/0.3062, allocations: 242 kB / 0.9575 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002366/0.3064, allocations: 139.8 kB / 0.9576 GB, free: 1.34 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007809/0.3072, allocations: 0.8098 MB / 0.9584 GB, free: 0.5273 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004274/0.3076, allocations: 326.5 kB / 0.9587 GB, free: 212 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003255/0.308, allocations: 279.1 kB / 0.959 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003456/0.3083, allocations: 334.4 kB / 0.9593 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 7.915e-05/0.3084, allocations: 72 kB / 0.9594 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.3085, allocations: 76 kB / 0.9595 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001586/0.3087, allocations: 171.4 kB / 0.9596 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003067/0.309, allocations: 386.2 kB / 0.96 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007697/0.3098, allocations: 1.001 MB / 0.961 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3098, allocations: 0 / 0.961 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.302e-06/0.3098, allocations: 0 / 0.961 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.3098, allocations: 0 / 0.961 GB, free: 13.91 MB / 0.7481 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.00136/0.3112, allocations: 0.9385 MB / 0.9619 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3112, allocations: 8.031 kB / 0.9619 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.3114, allocations: 76.09 kB / 0.962 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005318/0.3119, allocations: 461.6 kB / 0.9624 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.3119, allocations: 37.38 kB / 0.9624 GB, free: 12.31 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.805e-05/0.312, allocations: 48.38 kB / 0.9625 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006873/0.3127, allocations: 438.7 kB / 0.9629 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.994e-05/0.3127, allocations: 4 kB / 0.9629 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.3128, allocations: 16 kB / 0.9629 GB, free: 11.8 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.3128, allocations: 12 kB / 0.9629 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006549/0.3135, allocations: 363.8 kB / 0.9633 GB, free: 11.44 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.3154, allocations: 1.547 MB / 0.9648 GB, free: 9.816 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.316, allocations: 335 kB / 0.9651 GB, free: 9.48 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004972/0.3165, allocations: 316.8 kB / 0.9654 GB, free: 9.168 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.95e-05/0.3165, allocations: 4 kB / 0.9654 GB, free: 9.164 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.3166, allocations: 46.5 kB / 0.9655 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.3166, allocations: 0 / 0.9655 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42): time 0.00106/0.3176, allocations: 0.4949 MB / 0.9659 GB, free: 8.609 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.3177, allocations: 55.41 kB / 0.966 GB, free: 8.543 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006231/0.3183, allocations: 489.9 kB / 0.9665 GB, free: 8.059 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.3184, allocations: 29.7 kB / 0.9665 GB, free: 8.023 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002182/0.3186, allocations: 280.3 kB / 0.9668 GB, free: 7.746 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001473/0.3188, allocations: 137.9 kB / 0.9669 GB, free: 7.609 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.3189, allocations: 62.08 kB / 0.967 GB, free: 7.539 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001728/0.3191, allocations: 366.7 kB / 0.9673 GB, free: 7.172 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002447/0.3193, allocations: 120.7 kB / 0.9674 GB, free: 7.055 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002317/0.3196, allocations: 129.4 kB / 0.9675 GB, free: 6.93 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005013/0.3201, allocations: 294.2 kB / 0.9678 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3201, allocations: 0 / 0.9678 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000634/0.3207, allocations: 400.1 kB / 0.9682 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.3207, allocations: 4 kB / 0.9682 GB, free: 6.238 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.3208, allocations: 0 / 0.9682 GB, free: 6.238 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3208, allocations: 7.938 kB / 0.9682 GB, free: 6.23 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005096/0.3213, allocations: 123.9 kB / 0.9683 GB, free: 6.109 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3213, allocations: 0 / 0.9683 GB, free: 6.109 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002414/0.3216, allocations: 43.61 kB / 0.9684 GB, free: 6.066 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.3216, allocations: 12 kB / 0.9684 GB, free: 6.055 MB / 0.7481 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.0002563/0.3219, allocations: 201.3 kB / 0.9686 GB, free: 5.852 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/0.322, allocations: 59.22 kB / 0.9686 GB, free: 5.793 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.3221, allocations: 61.11 kB / 0.9687 GB, free: 5.73 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.575e-06/0.3221, allocations: 4 kB / 0.9687 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.3221, allocations: 0 / 0.9687 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3221, allocations: 3.984 kB / 0.9687 GB, free: 5.723 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007175/0.3229, allocations: 0.5749 MB / 0.9693 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3229, allocations: 0 / 0.9693 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005079/0.3234, allocations: 131.8 kB / 0.9694 GB, free: 4.969 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3234, allocations: 0 / 0.9694 GB, free: 4.969 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.3234, allocations: 12 kB / 0.9694 GB, free: 4.957 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.3234, allocations: 0 / 0.9694 GB, free: 4.957 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3234, allocations: 4 kB / 0.9694 GB, free: 4.953 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009869/0.3244, allocations: 0.6506 MB / 0.97 GB, free: 4.285 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.3246, allocations: 140.4 kB / 0.9702 GB, free: 4.129 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.842e-05/0.3246, allocations: 4 kB / 0.9702 GB, free: 4.125 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3249, allocations: 19.98 kB / 0.9702 GB, free: 4.105 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.824e-05/0.3249, allocations: 15.97 kB / 0.9702 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.325, allocations: 12 kB / 0.9702 GB, free: 4.078 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003954/0.3254, allocations: 351.1 kB / 0.9706 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.81e-07/0.3254, allocations: 0 / 0.9706 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004142/0.3258, allocations: 147.6 kB / 0.9707 GB, free: 3.594 MB / 0.7481 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.0001887/0.326, allocations: 125 kB / 0.9708 GB, free: 3.461 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000721/0.3267, allocations: 332.2 kB / 0.9711 GB, free: 3.137 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3267, allocations: 0 / 0.9711 GB, free: 3.137 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.327, allocations: 183.5 kB / 0.9713 GB, free: 2.957 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006889/0.3277, allocations: 130.4 kB / 0.9714 GB, free: 2.832 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.3298, allocations: 1.243 MB / 0.9726 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004671/0.3302, allocations: 0.8742 MB / 0.9735 GB, free: 0.6523 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.3304, allocations: 39.44 kB / 0.9735 GB, free: 0.6133 MB / 0.7481 GB Notification: Performance of SimCode: time 5.51e-07/0.3304, allocations: 0 / 0.9735 GB, free: 0.6133 MB / 0.7481 GB Notification: Performance of Templates: time 0.0121/0.3425, allocations: 6.826 MB / 0.9802 GB, free: 9.852 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches