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.0008285/0.0008288, allocations: 91.61 kB / 15.36 MB, free: 0.7344 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.005871/0.005871, allocations: 172.8 kB / 16.26 MB, free: 6.68 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.324 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.394/2.394, allocations: 390.9 MB / 0.6663 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003895/0.0003895, allocations: 8 kB / 0.816 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6543/0.6547, allocations: 142.4 MB / 0.9551 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00456/0.6593, allocations: 3.777 MB / 0.9588 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003266/0.6626, allocations: 2.332 MB / 0.961 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006188/0.6633, allocations: 11 kB / 0.9611 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001672/0.665, allocations: 0.4967 MB / 0.9615 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0007074/0.6657, allocations: 228.8 kB / 0.9618 GB, free: 2.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.6659, allocations: 114.9 kB / 0.9619 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001022/0.667, allocations: 0.8096 MB / 0.9627 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004436/0.6674, allocations: 275.8 kB / 0.9629 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004357/0.6679, allocations: 232.9 kB / 0.9631 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004805/0.6684, allocations: 291.4 kB / 0.9634 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.6685, allocations: 34.84 kB / 0.9635 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.6687, allocations: 38.38 kB / 0.9635 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001411/0.6688, allocations: 130.5 kB / 0.9636 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0003878/0.6692, allocations: 361.5 kB / 0.964 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007758/0.67, allocations: 0.939 MB / 0.9649 GB, free: 404 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.67, allocations: 0 / 0.9649 GB, free: 404 kB / 0.7169 GB Notification: Performance of FrontEnd: time 2.054e-06/0.67, allocations: 1.438 kB / 0.9649 GB, free: 404 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.13e-05/0.67, allocations: 0 / 0.9649 GB, free: 404 kB / 0.7169 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.00152/0.6716, allocations: 0.8447 MB / 0.9657 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.6716, allocations: 10 kB / 0.9657 GB, free: 15.7 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002052/0.6718, allocations: 76.44 kB / 0.9658 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000739/0.6726, allocations: 452.8 kB / 0.9662 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.478e-05/0.6726, allocations: 37.19 kB / 0.9663 GB, free: 15.24 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-05/0.6727, allocations: 48.16 kB / 0.9663 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009452/0.6737, allocations: 435.7 kB / 0.9667 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.278e-05/0.6737, allocations: 9.047 kB / 0.9667 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.705e-05/0.6738, allocations: 19.91 kB / 0.9667 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.6738, allocations: 11.16 kB / 0.9668 GB, free: 14.95 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007994/0.6746, allocations: 374.8 kB / 0.9671 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002655/0.6773, allocations: 1.544 MB / 0.9686 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007641/0.678, allocations: 341.7 kB / 0.9689 GB, free: 13.39 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005579/0.6786, allocations: 326.1 kB / 0.9693 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.6786, allocations: 3.969 kB / 0.9693 GB, free: 13.24 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.6787, allocations: 48.52 kB / 0.9693 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.904e-06/0.6787, allocations: 0.9688 kB / 0.9693 GB, free: 13.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.001097/0.6798, allocations: 0.5036 MB / 0.9698 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.6799, allocations: 55.56 kB / 0.9699 GB, free: 12.87 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006424/0.6805, allocations: 494.3 kB / 0.9703 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.69e-05/0.6805, allocations: 30.73 kB / 0.9704 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002072/0.6808, allocations: 275.3 kB / 0.9706 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.6809, allocations: 142.9 kB / 0.9708 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.757e-05/0.681, allocations: 36.61 kB / 0.9708 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.6811, allocations: 363 kB / 0.9711 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.6814, allocations: 127.3 kB / 0.9713 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.6817, allocations: 136.8 kB / 0.9714 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/0.6823, allocations: 302.2 kB / 0.9717 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6823, allocations: 4 kB / 0.9717 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007531/0.683, allocations: 403.8 kB / 0.9721 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.6831, allocations: 5.156 kB / 0.9721 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.6831, allocations: 1.406 kB / 0.9721 GB, free: 11.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.6831, allocations: 9.344 kB / 0.9721 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005168/0.6836, allocations: 133.4 kB / 0.9722 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.13e-05/0.6837, allocations: 2.188 kB / 0.9722 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.684, allocations: 55.81 kB / 0.9723 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.6841, allocations: 15.78 kB / 0.9723 GB, free: 11.23 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 (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.0002969/0.6844, allocations: 191.9 kB / 0.9725 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.6845, allocations: 59.78 kB / 0.9725 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00014/0.6847, allocations: 55.39 kB / 0.9726 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.6847, allocations: 4.125 kB / 0.9726 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.6847, allocations: 1.094 kB / 0.9726 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.6847, allocations: 3.984 kB / 0.9726 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000871/0.6856, allocations: 0.5703 MB / 0.9731 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.6856, allocations: 1.094 kB / 0.9731 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/0.6861, allocations: 134.2 kB / 0.9733 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.6862, allocations: 1.312 kB / 0.9733 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.6862, allocations: 10.5 kB / 0.9733 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.6862, allocations: 1.156 kB / 0.9733 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6862, allocations: 1.312 kB / 0.9733 GB, free: 10.47 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001202/0.6874, allocations: 0.6701 MB / 0.9739 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.6876, allocations: 140.2 kB / 0.9741 GB, free: 9.926 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.176e-05/0.6877, allocations: 6.438 kB / 0.9741 GB, free: 9.922 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.688, allocations: 28.3 kB / 0.9741 GB, free: 9.906 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.6881, allocations: 22.67 kB / 0.9741 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.6881, allocations: 11.56 kB / 0.9741 GB, free: 9.891 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004884/0.6886, allocations: 351.3 kB / 0.9745 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.412e-06/0.6886, allocations: 0 / 0.9745 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004665/0.6891, allocations: 148.7 kB / 0.9746 GB, free: 9.648 MB / 0.7325 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.000167/0.6893, allocations: 123.1 kB / 0.9747 GB, free: 9.539 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006442/0.6899, allocations: 328.7 kB / 0.975 GB, free: 9.402 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6899, allocations: 5.031 kB / 0.975 GB, free: 9.398 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.6903, allocations: 188.5 kB / 0.9752 GB, free: 9.316 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007733/0.691, allocations: 124.1 kB / 0.9753 GB, free: 9.25 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002423/0.6935, allocations: 1.502 MB / 0.9768 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.694, allocations: 0.872 MB / 0.9777 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002288/0.6942, allocations: 49.38 kB / 0.9777 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.6943, allocations: 35.53 kB / 0.9777 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of SimCode: time 6.11e-07/0.6943, allocations: 0 / 0.9777 GB, free: 7.352 MB / 0.7325 GB Notification: Performance of Templates: time 0.01126/0.7056, allocations: 5.563 MB / 0.9832 GB, free: 2.371 MB / 0.7325 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