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.001054/0.001054, allocations: 99.5 kB / 16.02 MB, free: 76 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.001141/0.001141, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.42/1.42, allocations: 223.3 MB / 241 MB, free: 5.32 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.653/2.653, allocations: 437.8 MB / 0.7128 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000423/0.0004231, allocations: 8 kB / 0.8735 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8969/0.8974, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004504/0.9019, allocations: 3.777 MB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003757/0.9057, allocations: 2.353 MB / 1.03 GB, free: 9.676 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006745/0.9064, allocations: 8 kB / 1.03 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001855/0.9083, allocations: 0.5014 MB / 1.03 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0009331/0.9092, allocations: 222.4 kB / 1.03 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003756/0.9096, allocations: 119.9 kB / 1.031 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001142/0.9108, allocations: 0.802 MB / 1.031 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004959/0.9113, allocations: 276.2 kB / 1.032 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004228/0.9117, allocations: 238.9 kB / 1.032 GB, free: 7.52 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003248/0.9121, allocations: 290.6 kB / 1.032 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.53e-05/0.9121, allocations: 36 kB / 1.032 GB, free: 7.199 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.448e-05/0.9122, allocations: 32 kB / 1.032 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001412/0.9123, allocations: 123.5 kB / 1.032 GB, free: 7.047 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.9127, allocations: 367.9 kB / 1.033 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0006505/0.9133, allocations: 0.7868 MB / 1.033 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.9133, allocations: 0 / 1.033 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.164e-06/0.9134, allocations: 0 / 1.033 GB, free: 5.891 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.859e-06/0.9134, allocations: 4 kB / 1.033 GB, free: 5.887 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.001275/0.9146, allocations: 0.8335 MB / 1.034 GB, free: 5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.9147, allocations: 12.03 kB / 1.034 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.9148, allocations: 80 kB / 1.034 GB, free: 4.91 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000567/0.9154, allocations: 457.7 kB / 1.035 GB, free: 4.426 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.9155, allocations: 37.31 kB / 1.035 GB, free: 4.387 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.922e-05/0.9155, allocations: 48.38 kB / 1.035 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008008/0.9163, allocations: 442.8 kB / 1.035 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.695e-05/0.9164, allocations: 0 / 1.035 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.9164, allocations: 20 kB / 1.035 GB, free: 3.883 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.9164, allocations: 12 kB / 1.035 GB, free: 3.871 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006967/0.9171, allocations: 383.7 kB / 1.036 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.9192, allocations: 1.535 MB / 1.037 GB, free: 1.887 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.9197, allocations: 342.9 kB / 1.037 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004691/0.9202, allocations: 320.6 kB / 1.038 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.9202, allocations: 12.67 kB / 1.038 GB, free: 1.211 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.9202, allocations: 46.44 kB / 1.038 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.9202, allocations: 0 / 1.038 GB, free: 1.156 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.0009438/0.9212, allocations: 0.5042 MB / 1.038 GB, free: 0.6445 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.9212, allocations: 63.95 kB / 1.038 GB, free: 0.5703 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005348/0.9218, allocations: 485.9 kB / 1.039 GB, free: 96 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.9218, allocations: 29.7 kB / 1.039 GB, free: 60 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.922, allocations: 276.4 kB / 1.039 GB, free: 15.78 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001178/0.9221, allocations: 145.8 kB / 1.039 GB, free: 15.64 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.245e-05/0.9222, allocations: 37.7 kB / 1.039 GB, free: 15.59 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.9223, allocations: 362.8 kB / 1.04 GB, free: 15.23 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.9226, allocations: 128.6 kB / 1.04 GB, free: 15.1 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002422/0.9228, allocations: 137.4 kB / 1.04 GB, free: 14.97 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005182/0.9234, allocations: 306.6 kB / 1.04 GB, free: 14.67 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.9234, allocations: 0 / 1.04 GB, free: 14.67 MB / 0.795 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006379/0.924, allocations: 408.4 kB / 1.041 GB, free: 14.26 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.924, allocations: 6.031 kB / 1.041 GB, free: 14.26 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-06/0.9241, allocations: 0 / 1.041 GB, free: 14.26 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.9241, allocations: 8 kB / 1.041 GB, free: 14.25 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004856/0.9246, allocations: 123.9 kB / 1.041 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.9246, allocations: 4 kB / 1.041 GB, free: 14.12 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.9249, allocations: 51.66 kB / 1.041 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.9249, allocations: 12 kB / 1.041 GB, free: 14.06 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.0002153/0.9251, allocations: 198.2 kB / 1.041 GB, free: 13.86 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.565e-05/0.9252, allocations: 55.28 kB / 1.041 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.9253, allocations: 57.11 kB / 1.041 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.9253, allocations: 4 kB / 1.041 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.9253, allocations: 0 / 1.041 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.9253, allocations: 3.984 kB / 1.041 GB, free: 13.74 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006351/0.926, allocations: 0.5752 MB / 1.042 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.926, allocations: 0 / 1.042 GB, free: 13.11 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005049/0.9265, allocations: 131.8 kB / 1.042 GB, free: 12.98 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.9265, allocations: 3.938 kB / 1.042 GB, free: 12.98 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.513e-05/0.9266, allocations: 12 kB / 1.042 GB, free: 12.97 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.9266, allocations: 0 / 1.042 GB, free: 12.97 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.9266, allocations: 0 / 1.042 GB, free: 12.97 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009714/0.9275, allocations: 0.6635 MB / 1.042 GB, free: 12.29 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.9277, allocations: 148.2 kB / 1.043 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.773e-05/0.9277, allocations: 12 kB / 1.043 GB, free: 12.11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.928, allocations: 23.98 kB / 1.043 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.928, allocations: 23.95 kB / 1.043 GB, free: 12.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.76e-05/0.9281, allocations: 12 kB / 1.043 GB, free: 12.05 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003721/0.9284, allocations: 355.1 kB / 1.043 GB, free: 11.71 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9285, allocations: 0 / 1.043 GB, free: 11.71 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003895/0.9289, allocations: 147.5 kB / 1.043 GB, free: 11.57 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.0001915/0.9291, allocations: 119.2 kB / 1.043 GB, free: 11.45 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005945/0.9297, allocations: 327.7 kB / 1.044 GB, free: 11.12 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.9297, allocations: 4 kB / 1.044 GB, free: 11.12 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002912/0.93, allocations: 187.6 kB / 1.044 GB, free: 10.94 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007255/0.9307, allocations: 128.7 kB / 1.044 GB, free: 10.82 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.9327, allocations: 1.532 MB / 1.045 GB, free: 9.246 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.9331, allocations: 0.8706 MB / 1.046 GB, free: 8.352 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.9333, allocations: 39.44 kB / 1.046 GB, free: 8.312 MB / 0.795 GB Notification: Performance of SimCode: time 6.02e-07/0.9333, allocations: 0 / 1.046 GB, free: 8.312 MB / 0.795 GB Notification: Performance of Templates: time 0.01045/0.9437, allocations: 6.727 MB / 1.053 GB, free: 1.645 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/jenkins1/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