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.001362/0.001362, allocations: 108 kB / 15.61 MB, free: 152 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.001339/0.001339, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.425/1.425, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.681/2.681, allocations: 437 MB / 0.7104 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 67.89 kB / 0.8693 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.616/0.6179, allocations: 151.6 MB / 1.017 GB, free: 2.598 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.007996/0.626, allocations: 4.146 MB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004796/0.6308, allocations: 2.423 MB / 1.024 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.6311, allocations: 8 kB / 1.024 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001742/0.6329, allocations: 0.5363 MB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006415/0.6335, allocations: 246 kB / 1.025 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.6339, allocations: 139.8 kB / 1.025 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001123/0.635, allocations: 0.806 MB / 1.025 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006121/0.6356, allocations: 326.4 kB / 1.026 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/0.636, allocations: 294.9 kB / 1.026 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005169/0.6365, allocations: 326.6 kB / 1.026 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.6367, allocations: 76 kB / 1.026 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.6369, allocations: 76 kB / 1.026 GB, free: 9.18 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002376/0.6371, allocations: 167.4 kB / 1.027 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0005017/0.6376, allocations: 394.2 kB / 1.027 GB, free: 8.629 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00123/0.6389, allocations: 0.9811 MB / 1.028 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.015e-06/0.6389, allocations: 0 / 1.028 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.052e-06/0.6389, allocations: 0 / 1.028 GB, free: 7.645 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.6389, allocations: 4 kB / 1.028 GB, free: 7.641 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.001988/0.6409, allocations: 0.9384 MB / 1.029 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.641, allocations: 8.031 kB / 1.029 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001743/0.6411, allocations: 76.09 kB / 1.029 GB, free: 6.566 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008534/0.642, allocations: 453.7 kB / 1.029 GB, free: 6.086 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.6421, allocations: 45.31 kB / 1.029 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.6422, allocations: 48.38 kB / 1.03 GB, free: 5.992 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.6434, allocations: 426.8 kB / 1.03 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.6434, allocations: 0 / 1.03 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.301e-05/0.6435, allocations: 24 kB / 1.03 GB, free: 5.547 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.362e-05/0.6435, allocations: 15.98 kB / 1.03 GB, free: 5.531 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001/0.6445, allocations: 367.8 kB / 1.03 GB, free: 5.176 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003178/0.6477, allocations: 1.547 MB / 1.032 GB, free: 3.555 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000802/0.6485, allocations: 342.9 kB / 1.032 GB, free: 3.211 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007267/0.6493, allocations: 317.4 kB / 1.032 GB, free: 2.898 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.6493, allocations: 8.672 kB / 1.032 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.6494, allocations: 46.44 kB / 1.033 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 2.255e-06/0.6494, allocations: 0 / 1.033 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.00143/0.6508, allocations: 496.3 kB / 1.033 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.6509, allocations: 59.19 kB / 1.033 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008517/0.6517, allocations: 485.9 kB / 1.033 GB, free: 1.789 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.135e-05/0.6518, allocations: 37.64 kB / 1.034 GB, free: 1.746 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002895/0.6521, allocations: 276.4 kB / 1.034 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001788/0.6523, allocations: 145.8 kB / 1.034 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.6524, allocations: 62.06 kB / 1.034 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002346/0.6527, allocations: 366.8 kB / 1.034 GB, free: 0.8867 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003773/0.6531, allocations: 116.7 kB / 1.034 GB, free: 0.7734 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000367/0.6534, allocations: 129.2 kB / 1.035 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/0.6542, allocations: 302.1 kB / 1.035 GB, free: 360 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6543, allocations: 0 / 1.035 GB, free: 360 kB / 0.7794 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001022/0.6553, allocations: 396.5 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.6553, allocations: 4 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.6553, allocations: 0 / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.6554, allocations: 4 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.6561, allocations: 119.9 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.6561, allocations: 4 kB / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003127/0.6565, allocations: 35.67 kB / 1.035 GB, free: 15.79 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.6565, allocations: 8 kB / 1.035 GB, free: 15.78 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.0003206/0.6568, allocations: 205.7 kB / 1.036 GB, free: 15.57 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.657, allocations: 55.28 kB / 1.036 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001515/0.6571, allocations: 65.09 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.6571, allocations: 4 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.6572, allocations: 0 / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.6572, allocations: 0 / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009825/0.6582, allocations: 0.575 MB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.6582, allocations: 0 / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007661/0.6589, allocations: 131.8 kB / 1.036 GB, free: 14.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.659, allocations: 7.875 kB / 1.036 GB, free: 14.69 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.659, allocations: 8 kB / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.659, allocations: 0 / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.659, allocations: 0 / 1.036 GB, free: 14.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001527/0.6605, allocations: 0.6521 MB / 1.037 GB, free: 14.01 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.6608, allocations: 136.5 kB / 1.037 GB, free: 13.86 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.467e-05/0.6609, allocations: 4 kB / 1.037 GB, free: 13.86 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003505/0.6612, allocations: 15.98 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.763e-05/0.6613, allocations: 27.91 kB / 1.037 GB, free: 13.81 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.401e-05/0.6614, allocations: 12 kB / 1.037 GB, free: 13.8 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0006255/0.662, allocations: 351.1 kB / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.61e-07/0.662, allocations: 0 / 1.038 GB, free: 13.46 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0007034/0.6627, allocations: 147.5 kB / 1.038 GB, free: 13.32 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.0001804/0.6629, allocations: 115.2 kB / 1.038 GB, free: 13.2 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001188/0.6641, allocations: 347.8 kB / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.6642, allocations: 0 / 1.038 GB, free: 12.86 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004683/0.6646, allocations: 179.6 kB / 1.038 GB, free: 12.68 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.6657, allocations: 135.6 kB / 1.038 GB, free: 12.56 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003022/0.6688, allocations: 1.208 MB / 1.04 GB, free: 11.32 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007291/0.6695, allocations: 0.8704 MB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002811/0.6698, allocations: 48.39 kB / 1.041 GB, free: 10.38 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.67, allocations: 35.44 kB / 1.041 GB, free: 10.34 MB / 0.795 GB Notification: Performance of SimCode: time 3.21e-07/0.67, allocations: 0 / 1.041 GB, free: 10.34 MB / 0.795 GB Notification: Performance of Templates: time 0.01742/0.6874, allocations: 5.934 MB / 1.046 GB, free: 4.551 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=400 -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