Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.InternalResistancesOneUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|intRes1UTub.capFil1.T|intRes1UTub.capFil2.T",fileNamePrefix="Buildings_9_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_9_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.0009093/0.0009095, allocations: 97.41 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.006538/0.006538, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.396/1.396, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.465/2.465, allocations: 390.9 MB / 0.6663 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000388/0.0003881, allocations: 12 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7031/0.7035, allocations: 142.4 MB / 0.9551 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003016/0.7065, allocations: 2.702 MB / 0.9577 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002509/0.7091, allocations: 2.081 MB / 0.9598 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.7093, allocations: 9.438 kB / 0.9598 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001598/0.7109, allocations: 484.8 kB / 0.9602 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002941/0.7112, allocations: 130.5 kB / 0.9603 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001153/0.7114, allocations: 49.47 kB / 0.9604 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004371/0.7118, allocations: 475.2 kB / 0.9608 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.712, allocations: 133.6 kB / 0.961 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.7122, allocations: 132.5 kB / 0.9611 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.7124, allocations: 175.7 kB / 0.9613 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.889e-05/0.7125, allocations: 17.97 kB / 0.9613 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.641e-05/0.7126, allocations: 19.12 kB / 0.9613 GB, free: 2.988 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.298e-05/0.7127, allocations: 74.86 kB / 0.9614 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.7128, allocations: 216.9 kB / 0.9616 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003689/0.7132, allocations: 0.5179 MB / 0.9621 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.7132, allocations: 0 / 0.9621 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7132, allocations: 7.938 kB / 0.9621 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.7132, allocations: 0 / 0.9621 GB, free: 2.383 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008445/0.7141, allocations: 0.6436 MB / 0.9627 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.7141, allocations: 13.31 kB / 0.9627 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.565e-05/0.7142, allocations: 45.94 kB / 0.9628 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004165/0.7146, allocations: 372.1 kB / 0.9631 GB, free: 1.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.7147, allocations: 13.66 kB / 0.9631 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.7147, allocations: 25.44 kB / 0.9632 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003911/0.7151, allocations: 207.9 kB / 0.9634 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.7152, allocations: 5.094 kB / 0.9634 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.7152, allocations: 9.188 kB / 0.9634 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.7152, allocations: 5.625 kB / 0.9634 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003784/0.7156, allocations: 176.5 kB / 0.9636 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009955/0.7166, allocations: 0.871 MB / 0.9644 GB, free: 476 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.7169, allocations: 165 kB / 0.9646 GB, free: 380 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.7171, allocations: 115.3 kB / 0.9647 GB, free: 324 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.7171, allocations: 2.906 kB / 0.9647 GB, free: 324 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.7171, allocations: 38.56 kB / 0.9647 GB, free: 276 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.7171, allocations: 3.75 kB / 0.9647 GB, free: 276 kB / 0.7169 GB Notification: Performance of matching and sorting (n=18): time 0.0005891/0.7177, allocations: 269.6 kB / 0.965 GB, free: 132 kB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.7178, allocations: 58.05 kB / 0.965 GB, free: 64 kB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.7183, allocations: 416.7 kB / 0.9654 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.7183, allocations: 26.77 kB / 0.9655 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.7185, allocations: 212.6 kB / 0.9657 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.7185, allocations: 58.14 kB / 0.9657 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.43e-05/0.7186, allocations: 18.5 kB / 0.9657 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.7187, allocations: 347.5 kB / 0.9661 GB, free: 15.18 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.7189, allocations: 74.06 kB / 0.9661 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.719, allocations: 62.44 kB / 0.9662 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.7194, allocations: 146.8 kB / 0.9663 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.7194, allocations: 0 / 0.9663 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004319/0.7198, allocations: 224 kB / 0.9665 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.7198, allocations: 9.234 kB / 0.9666 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.7199, allocations: 4 kB / 0.9666 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.7199, allocations: 4.969 kB / 0.9666 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.7201, allocations: 52.19 kB / 0.9666 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.7202, allocations: 1.062 kB / 0.9666 GB, free: 14.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.7203, allocations: 27.23 kB / 0.9666 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.7204, allocations: 7.969 kB / 0.9666 GB, free: 14.89 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 (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.0001592/0.7205, allocations: 166.2 kB / 0.9668 GB, free: 14.74 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.256e-05/0.7206, allocations: 35.53 kB / 0.9668 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.309e-05/0.7207, allocations: 44.16 kB / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.7207, allocations: 1.969 kB / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.7207, allocations: 0 / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.7207, allocations: 0 / 0.9669 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004215/0.7211, allocations: 378.1 kB / 0.9672 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.7212, allocations: 1.375 kB / 0.9672 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000262/0.7214, allocations: 59 kB / 0.9673 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.7214, allocations: 1.062 kB / 0.9673 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.712e-05/0.7215, allocations: 5.875 kB / 0.9673 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.7215, allocations: 8.969 kB / 0.9673 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.7215, allocations: 0 / 0.9673 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006395/0.7221, allocations: 394.7 kB / 0.9677 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001003/0.7222, allocations: 120.3 kB / 0.9678 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.7223, allocations: 4.906 kB / 0.9678 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.7225, allocations: 19.83 kB / 0.9678 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.7225, allocations: 9.672 kB / 0.9678 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.7225, allocations: 6.938 kB / 0.9678 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003316/0.7229, allocations: 302.9 kB / 0.9681 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7229, allocations: 0 / 0.9681 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003237/0.7232, allocations: 71.31 kB / 0.9682 GB, free: 13.72 MB / 0.7325 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.000135/0.7234, allocations: 110.4 kB / 0.9683 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003866/0.7238, allocations: 154.6 kB / 0.9685 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.7238, allocations: 1 kB / 0.9685 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.724, allocations: 90.02 kB / 0.9685 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000616/0.7246, allocations: 94.05 kB / 0.9686 GB, free: 13.47 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.7259, allocations: 0.9329 MB / 0.9695 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.7263, allocations: 0.7929 MB / 0.9703 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001312/0.7264, allocations: 34.75 kB / 0.9704 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.915e-05/0.7265, allocations: 23 kB / 0.9704 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of SimCode: time 3.71e-07/0.7265, allocations: 1.031 kB / 0.9704 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of Templates: time 0.00811/0.7346, allocations: 3.688 MB / 0.974 GB, free: 10.27 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches