Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.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_10_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_10_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.001457/0.001457, allocations: 108 kB / 15.6 MB, free: 132 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.001583/0.001583, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.563/2.563, allocations: 437 MB / 0.7104 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 63.91 kB / 0.8693 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.585/0.5871, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005204/0.5923, allocations: 4.156 MB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00329/0.5956, allocations: 2.419 MB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000339/0.596, allocations: 8 kB / 1.024 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.5974, allocations: 0.541 MB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004377/0.5979, allocations: 253.9 kB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.5981, allocations: 135.9 kB / 1.025 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006979/0.5988, allocations: 0.8051 MB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000423/0.5993, allocations: 330.5 kB / 1.026 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.5996, allocations: 287 kB / 1.026 GB, free: 9.551 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000328/0.5999, allocations: 330.6 kB / 1.026 GB, free: 9.227 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.001e-05/0.6, allocations: 76 kB / 1.026 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.6001, allocations: 76 kB / 1.026 GB, free: 9.078 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001523/0.6003, allocations: 167.4 kB / 1.027 GB, free: 8.914 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.6006, allocations: 386.2 kB / 1.027 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007537/0.6013, allocations: 0.985 MB / 1.028 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.6014, allocations: 0 / 1.028 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6014, allocations: 0 / 1.028 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.847e-06/0.6014, allocations: 0 / 1.028 GB, free: 7.547 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001317/0.6027, allocations: 0.9463 MB / 1.029 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.6027, allocations: 8.031 kB / 1.029 GB, free: 6.539 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.6029, allocations: 72.09 kB / 1.029 GB, free: 6.469 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/0.6034, allocations: 457.7 kB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.6034, allocations: 37.38 kB / 1.029 GB, free: 5.945 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.614e-05/0.6035, allocations: 56.31 kB / 1.029 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007003/0.6042, allocations: 430.8 kB / 1.03 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.6042, allocations: 0 / 1.03 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.866e-05/0.6043, allocations: 20 kB / 1.03 GB, free: 5.445 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.6043, allocations: 15.98 kB / 1.03 GB, free: 5.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006718/0.605, allocations: 363.8 kB / 1.03 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.6069, allocations: 1.543 MB / 1.032 GB, free: 3.461 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005138/0.6075, allocations: 338.9 kB / 1.032 GB, free: 3.121 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004595/0.6079, allocations: 325.4 kB / 1.032 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.608, allocations: 4.688 kB / 1.032 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.608, allocations: 46.5 kB / 1.032 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 1.553e-06/0.608, allocations: 0 / 1.032 GB, free: 2.742 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.0009234/0.6089, allocations: 0.4924 MB / 1.033 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.609, allocations: 63.12 kB / 1.033 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005169/0.6095, allocations: 489.9 kB / 1.033 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.6095, allocations: 29.7 kB / 1.034 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.6097, allocations: 276.4 kB / 1.034 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.6098, allocations: 141.9 kB / 1.034 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.232e-05/0.6099, allocations: 62.08 kB / 1.034 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.6101, allocations: 358.8 kB / 1.034 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.6103, allocations: 128.7 kB / 1.034 GB, free: 0.6719 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002348/0.6106, allocations: 129.2 kB / 1.035 GB, free: 0.5469 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.6111, allocations: 286.4 kB / 1.035 GB, free: 272 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.6111, allocations: 4 kB / 1.035 GB, free: 268 kB / 0.7794 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006578/0.6118, allocations: 404.1 kB / 1.035 GB, free: 15.86 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.6118, allocations: 8 kB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.6118, allocations: 0 / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.6118, allocations: 0 / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005034/0.6123, allocations: 123.9 kB / 1.035 GB, free: 15.73 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.6124, allocations: 7.984 kB / 1.035 GB, free: 15.72 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002047/0.6126, allocations: 31.67 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.6126, allocations: 12 kB / 1.035 GB, free: 15.68 MB / 0.795 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.0002023/0.6128, allocations: 203.3 kB / 1.036 GB, free: 15.47 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-05/0.6129, allocations: 55.28 kB / 1.036 GB, free: 15.42 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.613, allocations: 57.11 kB / 1.036 GB, free: 15.36 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.613, allocations: 8 kB / 1.036 GB, free: 15.35 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.613, allocations: 0 / 1.036 GB, free: 15.35 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.613, allocations: 3.984 kB / 1.036 GB, free: 15.35 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006084/0.6136, allocations: 0.5751 MB / 1.036 GB, free: 14.72 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6137, allocations: 0 / 1.036 GB, free: 14.72 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005393/0.6142, allocations: 135.7 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-06/0.6142, allocations: 0 / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.6142, allocations: 8 kB / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6142, allocations: 0 / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6142, allocations: 0 / 1.036 GB, free: 14.58 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009569/0.6152, allocations: 0.6518 MB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.6153, allocations: 136.5 kB / 1.037 GB, free: 13.76 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.146e-05/0.6154, allocations: 12 kB / 1.037 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.6156, allocations: 11.98 kB / 1.037 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.209e-05/0.6157, allocations: 23.97 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.6157, allocations: 8 kB / 1.037 GB, free: 13.71 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003642/0.6161, allocations: 355.1 kB / 1.038 GB, free: 13.37 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6161, allocations: 0 / 1.038 GB, free: 13.37 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003871/0.6165, allocations: 147.5 kB / 1.038 GB, free: 13.22 MB / 0.795 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.0001204/0.6166, allocations: 119.1 kB / 1.038 GB, free: 13.1 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007206/0.6173, allocations: 343.4 kB / 1.038 GB, free: 12.76 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.6174, allocations: 0 / 1.038 GB, free: 12.76 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002847/0.6177, allocations: 183.6 kB / 1.038 GB, free: 12.58 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006751/0.6183, allocations: 120.8 kB / 1.038 GB, free: 12.47 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001777/0.6201, allocations: 1.22 MB / 1.04 GB, free: 11.22 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.6205, allocations: 0.8665 MB / 1.04 GB, free: 10.33 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001727/0.6207, allocations: 52.39 kB / 1.041 GB, free: 10.28 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.162e-05/0.6208, allocations: 35.44 kB / 1.041 GB, free: 10.24 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.6208, allocations: 0 / 1.041 GB, free: 10.24 MB / 0.795 GB Notification: Performance of Templates: time 0.01059/0.6314, allocations: 5.921 MB / 1.046 GB, free: 4.457 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches