Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Rgb|Rgg1|Rgg2|RCondGro|x",fileNamePrefix="Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001193, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001286/0.001286, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.598/2.598, allocations: 390.3 MB / 0.6653 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8741/0.8744, allocations: 142.3 MB / 0.9536 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.001507/0.876, allocations: 1.122 MB / 0.9547 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003722/0.8797, allocations: 2.578 MB / 0.9572 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.594e-05/0.8798, allocations: 1.281 kB / 0.9572 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.134e-05/0.8798, allocations: 7.922 kB / 0.9572 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.926e-05/0.8799, allocations: 14.28 kB / 0.9572 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003469/0.8834, allocations: 1.241 MB / 0.9584 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.889e-05/0.8835, allocations: 44.12 kB / 0.9585 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.925e-05/0.8835, allocations: 1.812 kB / 0.9585 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.439e-05/0.8836, allocations: 15.14 kB / 0.9585 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.517e-05/0.8836, allocations: 11.06 kB / 0.9585 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.8836, allocations: 5.844 kB / 0.9585 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.8859, allocations: 1.195 MB / 0.9597 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.789e-05/0.8859, allocations: 0.9688 kB / 0.9597 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.495e-05/0.8859, allocations: 34.52 kB / 0.9597 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.8871, allocations: 0.7178 MB / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.8871, allocations: 0 / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.864e-06/0.8871, allocations: 0.9688 kB / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.728e-06/0.8871, allocations: 0 / 0.9604 GB, free: 3.285 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005509/0.8877, allocations: 0.5139 MB / 0.9609 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.8877, allocations: 13.28 kB / 0.9609 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.105e-05/0.8878, allocations: 85.41 kB / 0.961 GB, free: 2.695 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.8879, allocations: 251.9 kB / 0.9612 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.888, allocations: 150.6 kB / 0.9614 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.888, allocations: 155.5 kB / 0.9615 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.516e-05/0.888, allocations: 106 kB / 0.9616 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.8881, allocations: 79.22 kB / 0.9617 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.8881, allocations: 159.5 kB / 0.9618 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.327e-05/0.8881, allocations: 150.6 kB / 0.962 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.276e-05/0.8881, allocations: 151.6 kB / 0.9621 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000205/0.8884, allocations: 466 kB / 0.9626 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 5.773e-05/0.8884, allocations: 166.2 kB / 0.9627 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.8884, allocations: 83.16 kB / 0.9628 GB, free: 0.7227 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.8885, allocations: 110.9 kB / 0.9629 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.8885, allocations: 0 / 0.9629 GB, free: 0.6055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 6.759e-05/0.8885, allocations: 36.92 kB / 0.963 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.8886, allocations: 134.6 kB / 0.9631 GB, free: 432 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.8887, allocations: 128.5 kB / 0.9632 GB, free: 316 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.287e-06/0.8888, allocations: 25.7 kB / 0.9632 GB, free: 284 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.218e-05/0.8888, allocations: 91.14 kB / 0.9633 GB, free: 192 kB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-06/0.8888, allocations: 0 / 0.9633 GB, free: 192 kB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.8888, allocations: 0 / 0.9633 GB, free: 192 kB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.889, allocations: 320.8 kB / 0.9636 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.215e-05/0.889, allocations: 3.469 kB / 0.9636 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.654e-05/0.889, allocations: 16 kB / 0.9636 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.741e-05/0.889, allocations: 3.5 kB / 0.9636 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.889, allocations: 0.875 kB / 0.9637 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001328/0.8892, allocations: 51.41 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.8892, allocations: 5.188 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.8892, allocations: 3.031 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.8892, allocations: 0.8125 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.8893, allocations: 0 / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.226e-06/0.8893, allocations: 1 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.561e-05/0.8893, allocations: 4.828 kB / 0.9637 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.8893, allocations: 4.844 kB / 0.9637 GB, free: 15.8 MB / 0.7325 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001109/0.8894, allocations: 187.3 kB / 0.9639 GB, free: 15.61 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.254e-05/0.8895, allocations: 115.9 kB / 0.964 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.867e-05/0.8895, allocations: 110.9 kB / 0.9641 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.505e-05/0.8896, allocations: 177.2 kB / 0.9643 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.054e-05/0.8897, allocations: 185.2 kB / 0.9645 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.824e-05/0.8897, allocations: 185.6 kB / 0.9646 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.89, allocations: 419.8 kB / 0.965 GB, free: 14.37 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.675e-05/0.89, allocations: 106 kB / 0.9651 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.872e-05/0.8901, allocations: 104.9 kB / 0.9652 GB, free: 14.15 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.156e-05/0.8902, allocations: 177.4 kB / 0.9654 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.822e-05/0.8903, allocations: 189.7 kB / 0.9656 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.939e-05/0.8904, allocations: 185.2 kB / 0.9658 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.596e-05/0.8904, allocations: 181.3 kB / 0.9659 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001683/0.8906, allocations: 316.3 kB / 0.9662 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.455e-05/0.8907, allocations: 188.5 kB / 0.9664 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.533e-05/0.8908, allocations: 181.2 kB / 0.9666 GB, free: 12.69 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.8909, allocations: 102 kB / 0.9667 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.895e-05/0.891, allocations: 181.3 kB / 0.9669 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.803e-05/0.891, allocations: 102.1 kB / 0.967 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 7.455e-05/0.8911, allocations: 109.5 kB / 0.9671 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8911, allocations: 4 kB / 0.9671 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0009856/0.8921, allocations: 275.7 kB / 0.9673 GB, free: 12.12 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001036/0.8932, allocations: 0.4928 MB / 0.9678 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001078/0.8933, allocations: 42.59 kB / 0.9679 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8933, allocations: 0 / 0.9679 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 6.081e-06/0.8933, allocations: 7.938 kB / 0.9679 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.8937, allocations: 0.5306 MB / 0.9684 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.894, allocations: 254.4 kB / 0.9686 GB, free: 11 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.8943, allocations: 0.6897 MB / 0.9693 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.468e-05/0.8943, allocations: 5.125 kB / 0.9693 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.201e-05/0.8943, allocations: 9.531 kB / 0.9693 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.8943, allocations: 0 / 0.9693 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of Templates: time 0.01076/0.9051, allocations: 5.599 MB / 0.9748 GB, free: 7.43 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Rgb,Rgg1,Rgg2,RCondGro,x Variables in the result:RCondGro,Rb,Rgb,Rgg1,Rgg2,cpMed,eTub,hSeg,kFil,kMed,kSoi,kTub,m_flow_nominal,muMed,rBor,rTub,sha,time,x