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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008315/0.0008316, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0009964/0.0009966, allocations: 168.7 kB / 15.95 MB, free: 204 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.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.538/2.538, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.0003821, allocations: 8 kB / 0.8722 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7769/0.7773, allocations: 153.8 MB / 1.022 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004183/0.7815, allocations: 3.597 MB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002799/0.7843, allocations: 2.211 MB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002234/0.7846, allocations: 8 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001095/0.7857, allocations: 461.8 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003504/0.786, allocations: 218.4 kB / 1.029 GB, free: 9.535 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001597/0.7862, allocations: 83.88 kB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006832/0.7869, allocations: 0.7589 MB / 1.03 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.7873, allocations: 245.4 kB / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002451/0.7875, allocations: 227.1 kB / 1.03 GB, free: 8.227 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002971/0.7878, allocations: 278.8 kB / 1.03 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.614e-05/0.7879, allocations: 32 kB / 1.03 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.656e-05/0.788, allocations: 36 kB / 1.03 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.7881, allocations: 123.5 kB / 1.03 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.7883, allocations: 165.3 kB / 1.031 GB, free: 7.598 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006188/0.7889, allocations: 0.7868 MB / 1.031 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.7889, allocations: 0 / 1.031 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.054e-06/0.7889, allocations: 4 kB / 1.031 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.133e-05/0.7889, allocations: 0 / 1.031 GB, free: 6.805 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.00121/0.7901, allocations: 0.845 MB / 1.032 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.7902, allocations: 8.562 kB / 1.032 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.7903, allocations: 79.05 kB / 1.032 GB, free: 5.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005288/0.7908, allocations: 432.8 kB / 1.033 GB, free: 5.359 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.7909, allocations: 37 kB / 1.033 GB, free: 5.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.141e-05/0.791, allocations: 51.91 kB / 1.033 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/0.7917, allocations: 438.3 kB / 1.033 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.951e-05/0.7917, allocations: 0 / 1.033 GB, free: 4.836 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/0.7918, allocations: 20 kB / 1.033 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.313e-05/0.7918, allocations: 12 kB / 1.033 GB, free: 4.805 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006694/0.7925, allocations: 375.8 kB / 1.034 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.7944, allocations: 1.539 MB / 1.035 GB, free: 2.824 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005036/0.7949, allocations: 339 kB / 1.035 GB, free: 2.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004836/0.7954, allocations: 356.5 kB / 1.036 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.7955, allocations: 4.688 kB / 1.036 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.7955, allocations: 38.56 kB / 1.036 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 1.834e-06/0.7955, allocations: 0 / 1.036 GB, free: 2.078 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.0009296/0.7964, allocations: 0.508 MB / 1.036 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.7965, allocations: 63.12 kB / 1.036 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005308/0.797, allocations: 486.7 kB / 1.037 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.7971, allocations: 33.7 kB / 1.037 GB, free: 0.9688 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.7973, allocations: 272.4 kB / 1.037 GB, free: 0.6992 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001151/0.7974, allocations: 149.8 kB / 1.037 GB, free: 0.5508 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.7974, allocations: 4 kB / 1.037 GB, free: 0.5469 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001385/0.7975, allocations: 362.8 kB / 1.038 GB, free: 188 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.7978, allocations: 128.7 kB / 1.038 GB, free: 56 kB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.7981, allocations: 133.1 kB / 1.038 GB, free: 15.93 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002678/0.7983, allocations: 145.9 kB / 1.038 GB, free: 15.78 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.7983, allocations: 0 / 1.038 GB, free: 15.78 MB / 0.795 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006169/0.799, allocations: 408.5 kB / 1.038 GB, free: 15.38 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.799, allocations: 4 kB / 1.038 GB, free: 15.38 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.799, allocations: 3.984 kB / 1.038 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.799, allocations: 4 kB / 1.038 GB, free: 15.37 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004955/0.7995, allocations: 135.8 kB / 1.039 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.7995, allocations: 7.953 kB / 1.039 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.7998, allocations: 47.67 kB / 1.039 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.7998, allocations: 16 kB / 1.039 GB, free: 15.16 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002086/0.8, allocations: 193.8 kB / 1.039 GB, free: 14.96 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.8001, allocations: 51.34 kB / 1.039 GB, free: 14.91 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.8003, allocations: 65.09 kB / 1.039 GB, free: 14.85 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.8003, allocations: 4 kB / 1.039 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.8003, allocations: 0 / 1.039 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.8003, allocations: 3.953 kB / 1.039 GB, free: 14.84 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006097/0.8009, allocations: 0.5752 MB / 1.039 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.8009, allocations: 4 kB / 1.039 GB, free: 14.21 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.8014, allocations: 127.9 kB / 1.04 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.8014, allocations: 0 / 1.04 GB, free: 14.09 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.8015, allocations: 8 kB / 1.04 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.8015, allocations: 0 / 1.04 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.8015, allocations: 0 / 1.04 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009519/0.8024, allocations: 0.6751 MB / 1.04 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.8025, allocations: 132.4 kB / 1.04 GB, free: 13.24 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/0.8026, allocations: 11.94 kB / 1.04 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.8028, allocations: 27.97 kB / 1.04 GB, free: 13.2 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.437e-05/0.8029, allocations: 23.97 kB / 1.04 GB, free: 13.18 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.8029, allocations: 8 kB / 1.04 GB, free: 13.17 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003683/0.8033, allocations: 351.1 kB / 1.041 GB, free: 12.83 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8033, allocations: 0 / 1.041 GB, free: 12.83 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004196/0.8037, allocations: 147.5 kB / 1.041 GB, free: 12.69 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 (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.0001486/0.8039, allocations: 123.1 kB / 1.041 GB, free: 12.56 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005474/0.8045, allocations: 327.7 kB / 1.041 GB, free: 12.24 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.8045, allocations: 0 / 1.041 GB, free: 12.24 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.00027/0.8047, allocations: 191.8 kB / 1.042 GB, free: 12.05 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006744/0.8054, allocations: 125.8 kB / 1.042 GB, free: 11.93 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.8073, allocations: 1.438 MB / 1.043 GB, free: 10.46 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.8078, allocations: 0.8707 MB / 1.044 GB, free: 9.566 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001713/0.8079, allocations: 52.39 kB / 1.044 GB, free: 9.516 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.544e-05/0.808, allocations: 35.44 kB / 1.044 GB, free: 9.484 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.8081, allocations: 0 / 1.044 GB, free: 9.484 MB / 0.795 GB Notification: Performance of Templates: time 0.009785/0.8178, allocations: 5.368 MB / 1.049 GB, free: 4.254 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