Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.001219, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002024/0.002024, allocations: 184.2 kB / 16.92 MB, free: 6.684 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.518/1.518, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.721/2.721, allocations: 437.8 MB / 0.7128 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003764, allocations: 12 kB / 0.8735 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7828/0.7832, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003182/0.7864, allocations: 2.715 MB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002596/0.7891, allocations: 2.085 MB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.7892, allocations: 4 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.7905, allocations: 482 kB / 1.029 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.7908, allocations: 131.1 kB / 1.029 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001102/0.7909, allocations: 51.97 kB / 1.029 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004594/0.7914, allocations: 465.8 kB / 1.029 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.7916, allocations: 128.4 kB / 1.03 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.7918, allocations: 135.4 kB / 1.03 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.7921, allocations: 171.1 kB / 1.03 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.7921, allocations: 20 kB / 1.03 GB, free: 9.504 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.919e-05/0.7922, allocations: 16 kB / 1.03 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.7923, allocations: 75.67 kB / 1.03 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.7925, allocations: 228.5 kB / 1.03 GB, free: 9.184 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003641/0.7928, allocations: 442.7 kB / 1.031 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.7929, allocations: 0 / 1.031 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.833e-06/0.7929, allocations: 4 kB / 1.031 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.341e-06/0.7929, allocations: 0 / 1.031 GB, free: 8.746 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.000887/0.7938, allocations: 0.6385 MB / 1.031 GB, free: 8.055 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.7938, allocations: 12.03 kB / 1.031 GB, free: 8.043 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.767e-05/0.7939, allocations: 48.38 kB / 1.031 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004237/0.7943, allocations: 366.1 kB / 1.032 GB, free: 7.598 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.7944, allocations: 20.75 kB / 1.032 GB, free: 7.578 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.7944, allocations: 24.38 kB / 1.032 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003998/0.7948, allocations: 211.6 kB / 1.032 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.7948, allocations: 0 / 1.032 GB, free: 7.344 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.7949, allocations: 12 kB / 1.032 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.7949, allocations: 8 kB / 1.032 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003861/0.7953, allocations: 173.7 kB / 1.032 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.7964, allocations: 0.8739 MB / 1.033 GB, free: 6.211 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.7967, allocations: 154.6 kB / 1.033 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000213/0.797, allocations: 123.1 kB / 1.033 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.797, allocations: 3.984 kB / 1.033 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.797, allocations: 38.56 kB / 1.033 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=18): time 1.422e-06/0.797, allocations: 0 / 1.033 GB, free: 5.879 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18): time 0.0005959/0.7976, allocations: 274.7 kB / 1.034 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.7977, allocations: 55.41 kB / 1.034 GB, free: 5.539 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004429/0.7981, allocations: 413.6 kB / 1.034 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.7981, allocations: 33.7 kB / 1.034 GB, free: 5.09 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.7983, allocations: 212.1 kB / 1.034 GB, free: 4.879 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.691e-05/0.7984, allocations: 59.11 kB / 1.034 GB, free: 4.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.569e-05/0.7984, allocations: 21.7 kB / 1.034 GB, free: 4.793 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.7985, allocations: 346.8 kB / 1.035 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.7987, allocations: 59.97 kB / 1.035 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000144/0.7988, allocations: 63.97 kB / 1.035 GB, free: 4.324 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.7991, allocations: 152 kB / 1.035 GB, free: 4.176 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.7992, allocations: 3.938 kB / 1.035 GB, free: 4.172 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004008/0.7996, allocations: 213.1 kB / 1.035 GB, free: 3.957 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.7996, allocations: 12 kB / 1.035 GB, free: 3.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7996, allocations: 3.984 kB / 1.035 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.7996, allocations: 3.938 kB / 1.035 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002623/0.7999, allocations: 55.97 kB / 1.035 GB, free: 3.883 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.7999, allocations: 3.938 kB / 1.035 GB, free: 3.879 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001687/0.8001, allocations: 23.83 kB / 1.035 GB, free: 3.855 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.8001, allocations: 16 kB / 1.035 GB, free: 3.84 MB / 0.7794 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 (20): * Single equations (assignments): 20 * 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.0001498/0.8003, allocations: 161.8 kB / 1.035 GB, free: 3.672 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.431e-05/0.8003, allocations: 35.53 kB / 1.035 GB, free: 3.637 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.704e-05/0.8004, allocations: 43.53 kB / 1.035 GB, free: 3.59 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.8004, allocations: 4 kB / 1.035 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.8004, allocations: 0 / 1.035 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.8004, allocations: 3.984 kB / 1.035 GB, free: 3.582 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.8008, allocations: 373.3 kB / 1.036 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.8008, allocations: 0 / 1.036 GB, free: 3.168 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.8011, allocations: 59.91 kB / 1.036 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8011, allocations: 0 / 1.036 GB, free: 3.109 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.8011, allocations: 15.92 kB / 1.036 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.8011, allocations: 0 / 1.036 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.8011, allocations: 0 / 1.036 GB, free: 3.094 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006002/0.8017, allocations: 395.5 kB / 1.036 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/0.8018, allocations: 112.7 kB / 1.036 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.8019, allocations: 11.94 kB / 1.036 GB, free: 2.551 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/0.8021, allocations: 20.05 kB / 1.036 GB, free: 2.531 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.8021, allocations: 7.984 kB / 1.036 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.986e-06/0.8021, allocations: 11.88 kB / 1.036 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0003218/0.8025, allocations: 307.1 kB / 1.037 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8025, allocations: 0 / 1.037 GB, free: 2.211 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000296/0.8028, allocations: 71.84 kB / 1.037 GB, free: 2.141 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0001324/0.8029, allocations: 107.2 kB / 1.037 GB, free: 2.023 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003688/0.8033, allocations: 163.7 kB / 1.037 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.8033, allocations: 0 / 1.037 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.8034, allocations: 83.91 kB / 1.037 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006103/0.8041, allocations: 92.38 kB / 1.037 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001252/0.8053, allocations: 0.9677 MB / 1.038 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.8057, allocations: 0.7992 MB / 1.039 GB, free: 15.88 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.958e-05/0.8058, allocations: 23.44 kB / 1.039 GB, free: 15.86 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.8058, allocations: 0 / 1.039 GB, free: 15.86 MB / 0.795 GB Notification: Performance of Templates: time 0.006718/0.8125, allocations: 4.294 MB / 1.043 GB, free: 11.61 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches