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.006164/0.006169, allocations: 100.8 kB / 15.73 MB, free: 6.012 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.001237/0.001237, allocations: 187.8 kB / 16.67 MB, free: 5.949 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.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.321/2.321, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 63.16 kB / 0.9509 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2872, allocations: 140.4 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005915/0.2931, allocations: 4.146 MB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003804/0.297, allocations: 2.417 MB / 1.094 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004888/0.2975, allocations: 8 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001841/0.2994, allocations: 0.5441 MB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007693/0.3002, allocations: 246 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.3006, allocations: 135.9 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001133/0.3017, allocations: 0.8098 MB / 1.096 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004918/0.3022, allocations: 326.5 kB / 1.096 GB, free: 8.809 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004256/0.3027, allocations: 298.9 kB / 1.097 GB, free: 8.516 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003673/0.303, allocations: 326.6 kB / 1.097 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001585/0.3032, allocations: 76 kB / 1.097 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001085/0.3033, allocations: 76 kB / 1.097 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.3035, allocations: 171.4 kB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003131/0.3038, allocations: 390.2 kB / 1.098 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009345/0.3048, allocations: 0.9889 MB / 1.099 GB, free: 6.504 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3048, allocations: 3.984 kB / 1.099 GB, free: 6.5 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.723e-06/0.3048, allocations: 0 / 1.099 GB, free: 6.5 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.065e-05/0.3048, allocations: 0 / 1.099 GB, free: 6.5 MB / 0.8575 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.001351/0.3062, allocations: 0.9502 MB / 1.1 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3062, allocations: 8.031 kB / 1.1 GB, free: 5.488 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.3063, allocations: 72.09 kB / 1.1 GB, free: 5.418 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000604/0.3069, allocations: 461.6 kB / 1.1 GB, free: 4.93 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.767e-05/0.307, allocations: 37.31 kB / 1.1 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.757e-05/0.3071, allocations: 48.38 kB / 1.1 GB, free: 4.844 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006938/0.3078, allocations: 438.7 kB / 1.101 GB, free: 4.406 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.3078, allocations: 7.906 kB / 1.101 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.631e-05/0.3078, allocations: 16 kB / 1.101 GB, free: 4.383 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.3079, allocations: 12 kB / 1.101 GB, free: 4.371 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006639/0.3085, allocations: 363.8 kB / 1.101 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002089/0.3106, allocations: 1.512 MB / 1.102 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.3111, allocations: 344.4 kB / 1.103 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004407/0.3116, allocations: 320.7 kB / 1.103 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.3116, allocations: 4 kB / 1.103 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.586e-05/0.3116, allocations: 46.5 kB / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=42): time 1.873e-06/0.3117, allocations: 0 / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42): time 0.0009955/0.3127, allocations: 0.4892 MB / 1.104 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.3127, allocations: 59.41 kB / 1.104 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005468/0.3133, allocations: 481.9 kB / 1.104 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.3133, allocations: 33.7 kB / 1.104 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.3135, allocations: 284.3 kB / 1.104 GB, free: 352 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.3136, allocations: 149.8 kB / 1.105 GB, free: 200 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.762e-05/0.3137, allocations: 58.08 kB / 1.105 GB, free: 132 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3139, allocations: 362.8 kB / 1.105 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.3141, allocations: 120.7 kB / 1.105 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.3143, allocations: 129.2 kB / 1.105 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00048/0.3148, allocations: 302 kB / 1.105 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3148, allocations: 4 kB / 1.105 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006581/0.3155, allocations: 392.4 kB / 1.106 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.3155, allocations: 4 kB / 1.106 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3155, allocations: 0 / 1.106 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.3155, allocations: 4 kB / 1.106 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.3161, allocations: 127.8 kB / 1.106 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3161, allocations: 4 kB / 1.106 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.3163, allocations: 39.58 kB / 1.106 GB, free: 14.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.304e-05/0.3163, allocations: 11.98 kB / 1.106 GB, free: 14.64 MB / 0.8731 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.0002582/0.3166, allocations: 199.7 kB / 1.106 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/0.3167, allocations: 51.38 kB / 1.106 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.3168, allocations: 61.11 kB / 1.106 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.3168, allocations: 4 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.3168, allocations: 4 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.3168, allocations: 7.984 kB / 1.106 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006141/0.3174, allocations: 0.579 MB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3174, allocations: 0 / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.318, allocations: 127.8 kB / 1.107 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.318, allocations: 0 / 1.107 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.498e-05/0.318, allocations: 12 kB / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-06/0.318, allocations: 0 / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.318, allocations: 0 / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009804/0.319, allocations: 0.6523 MB / 1.108 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.3191, allocations: 140.5 kB / 1.108 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.103e-05/0.3192, allocations: 7.984 kB / 1.108 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002071/0.3194, allocations: 11.98 kB / 1.108 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.3195, allocations: 23.97 kB / 1.108 GB, free: 12.68 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.071e-05/0.3196, allocations: 12 kB / 1.108 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003566/0.3199, allocations: 355.1 kB / 1.108 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2e-07/0.3199, allocations: 0 / 1.108 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003959/0.3203, allocations: 143.6 kB / 1.108 GB, free: 12.18 MB / 0.8731 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.0001513/0.3205, allocations: 123.1 kB / 1.108 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005694/0.3211, allocations: 323.5 kB / 1.109 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3211, allocations: 0 / 1.109 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002696/0.3214, allocations: 187.8 kB / 1.109 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006101/0.322, allocations: 130.4 kB / 1.109 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.3238, allocations: 1.19 MB / 1.11 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004206/0.3243, allocations: 0.8626 MB / 1.111 GB, free: 9.32 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000166/0.3244, allocations: 60.31 kB / 1.111 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.82e-05/0.3245, allocations: 35.44 kB / 1.111 GB, free: 9.227 MB / 0.8731 GB Notification: Performance of SimCode: time 3.21e-07/0.3245, allocations: 4 kB / 1.111 GB, free: 9.223 MB / 0.8731 GB Notification: Performance of Templates: time 0.01075/0.3353, allocations: 6.165 MB / 1.117 GB, free: 3.199 MB / 0.8731 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/jenkins/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