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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0009139/0.0009139, allocations: 87.98 kB / 16.02 MB, free: 80 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.001741/0.001741, allocations: 177.4 kB / 16.92 MB, free: 6.23 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.413/1.413, allocations: 223.3 MB / 241 MB, free: 5.027 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 390.9 MB / 0.667 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004674/0.0004673, allocations: 12 kB / 0.8167 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.73/0.7305, allocations: 142.4 MB / 0.9557 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004137/0.7347, allocations: 3.777 MB / 0.9594 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003373/0.7381, allocations: 2.329 MB / 0.9617 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006779/0.7389, allocations: 13.56 kB / 0.9617 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.7406, allocations: 0.5058 MB / 0.9622 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0008698/0.7415, allocations: 215.7 kB / 0.9624 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003572/0.7419, allocations: 119.1 kB / 0.9625 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.001192/0.7431, allocations: 0.8064 MB / 0.9633 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000492/0.7436, allocations: 280.2 kB / 0.9636 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005398/0.7441, allocations: 232.9 kB / 0.9638 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005694/0.7447, allocations: 287 kB / 0.9641 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001269/0.7449, allocations: 34.62 kB / 0.9641 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002455/0.7451, allocations: 35.5 kB / 0.9642 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.7453, allocations: 130.7 kB / 0.9643 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005748/0.7459, allocations: 361 kB / 0.9646 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0006941/0.7466, allocations: 0.7927 MB / 0.9654 GB, free: 308 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.7466, allocations: 0 / 0.9654 GB, free: 308 kB / 0.7169 GB Notification: Performance of FrontEnd: time 3.006e-06/0.7466, allocations: 1.188 kB / 0.9654 GB, free: 308 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.954e-05/0.7467, allocations: 0 / 0.9654 GB, free: 308 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.001761/0.7484, allocations: 0.8414 MB / 0.9662 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.7485, allocations: 9.438 kB / 0.9662 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.7487, allocations: 76.34 kB / 0.9663 GB, free: 15.56 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008779/0.7496, allocations: 453 kB / 0.9667 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.516e-05/0.7497, allocations: 41.03 kB / 0.9668 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.985e-05/0.7498, allocations: 51.41 kB / 0.9668 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.7508, allocations: 440.6 kB / 0.9672 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.7509, allocations: 5.109 kB / 0.9672 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.529e-05/0.7509, allocations: 19.31 kB / 0.9673 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.7509, allocations: 13.81 kB / 0.9673 GB, free: 14.85 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008808/0.7518, allocations: 376.5 kB / 0.9676 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003027/0.7549, allocations: 1.533 MB / 0.9691 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006687/0.7555, allocations: 353.5 kB / 0.9695 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005705/0.7561, allocations: 329 kB / 0.9698 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.7562, allocations: 3.281 kB / 0.9698 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.7562, allocations: 41.5 kB / 0.9698 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 3.196e-06/0.7562, allocations: 0.7656 kB / 0.9698 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.001167/0.7574, allocations: 0.4998 MB / 0.9703 GB, free: 12.84 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.7574, allocations: 55.72 kB / 0.9704 GB, free: 12.78 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007785/0.7582, allocations: 486.3 kB / 0.9708 GB, free: 12.5 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.7583, allocations: 35.2 kB / 0.9709 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.7585, allocations: 282.5 kB / 0.9711 GB, free: 12.21 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001659/0.7587, allocations: 155.3 kB / 0.9713 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.7588, allocations: 35.45 kB / 0.9713 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001918/0.759, allocations: 366.8 kB / 0.9717 GB, free: 11.69 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002885/0.7593, allocations: 123.3 kB / 0.9718 GB, free: 11.63 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/0.7596, allocations: 134.2 kB / 0.9719 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000582/0.7602, allocations: 309.2 kB / 0.9722 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.7602, allocations: 0 / 0.9722 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007599/0.761, allocations: 398.7 kB / 0.9726 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.761, allocations: 5.656 kB / 0.9726 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.761, allocations: 0 / 0.9726 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.761, allocations: 2.844 kB / 0.9726 GB, free: 11.21 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005122/0.7615, allocations: 133.6 kB / 0.9727 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.7616, allocations: 2.219 kB / 0.9727 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.762, allocations: 55.23 kB / 0.9728 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.576e-05/0.762, allocations: 7.969 kB / 0.9728 GB, free: 11.14 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.0002766/0.7623, allocations: 196.4 kB / 0.973 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.7624, allocations: 55.62 kB / 0.973 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001578/0.7626, allocations: 63.5 kB / 0.9731 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.7626, allocations: 7.656 kB / 0.9731 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.7626, allocations: 0 / 0.9731 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.7626, allocations: 1.312 kB / 0.9731 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008851/0.7635, allocations: 0.5702 MB / 0.9737 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.7635, allocations: 0 / 0.9737 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005504/0.7641, allocations: 131.2 kB / 0.9738 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.7641, allocations: 1.25 kB / 0.9738 GB, free: 10.39 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.365e-05/0.7641, allocations: 14.19 kB / 0.9738 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.7642, allocations: 6.219 kB / 0.9738 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.7642, allocations: 3.938 kB / 0.9738 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.7653, allocations: 0.6715 MB / 0.9745 GB, free: 9.961 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.7656, allocations: 139.2 kB / 0.9746 GB, free: 9.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.633e-05/0.7657, allocations: 11.03 kB / 0.9746 GB, free: 9.812 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002894/0.766, allocations: 23.34 kB / 0.9746 GB, free: 9.801 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.766, allocations: 23.66 kB / 0.9746 GB, free: 9.789 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.169e-05/0.7661, allocations: 15.09 kB / 0.9747 GB, free: 9.781 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000501/0.7666, allocations: 348.1 kB / 0.975 GB, free: 9.578 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7666, allocations: 0 / 0.975 GB, free: 9.578 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005353/0.7671, allocations: 148.5 kB / 0.9751 GB, free: 9.543 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.0001839/0.7673, allocations: 120.3 kB / 0.9752 GB, free: 9.438 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000683/0.768, allocations: 332 kB / 0.9756 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.768, allocations: 0 / 0.9756 GB, free: 9.297 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003329/0.7684, allocations: 189.3 kB / 0.9757 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007767/0.7692, allocations: 121.7 kB / 0.9759 GB, free: 9.152 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002474/0.7716, allocations: 1.533 MB / 0.9774 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.7722, allocations: 0.8634 MB / 0.9782 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.7723, allocations: 45.28 kB / 0.9782 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of SimCode: time 4.71e-07/0.7723, allocations: 0 / 0.9782 GB, free: 7.242 MB / 0.7325 GB Notification: Performance of Templates: time 0.01245/0.7848, allocations: 6.747 MB / 0.9848 GB, free: 1.215 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/jenkins1/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