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.001149/0.001149, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001607/0.001607, allocations: 172.7 kB / 15.95 MB, free: 208 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.374/1.374, allocations: 223.3 MB / 240 MB, free: 5.422 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.399/2.399, allocations: 390.9 MB / 0.666 GB, free: 2.523 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003481/0.0003482, allocations: 11.98 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6365/0.6369, allocations: 142.4 MB / 0.9545 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003302/0.6402, allocations: 3.591 MB / 0.958 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002551/0.6428, allocations: 2.199 MB / 0.9601 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003109/0.6431, allocations: 13.47 kB / 0.9601 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.6443, allocations: 460.9 kB / 0.9606 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004333/0.6447, allocations: 218.8 kB / 0.9608 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001993/0.6449, allocations: 79.8 kB / 0.9609 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0007351/0.6457, allocations: 0.763 MB / 0.9616 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003663/0.646, allocations: 241.5 kB / 0.9618 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003457/0.6464, allocations: 235.4 kB / 0.9621 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003047/0.6467, allocations: 277 kB / 0.9623 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.593e-05/0.6468, allocations: 34.34 kB / 0.9624 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.448e-05/0.6469, allocations: 34.75 kB / 0.9624 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.647, allocations: 128.3 kB / 0.9625 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001227/0.6471, allocations: 160.2 kB / 0.9627 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005475/0.6477, allocations: 0.7847 MB / 0.9634 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.6477, allocations: 1.281 kB / 0.9634 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.964e-06/0.6477, allocations: 0 / 0.9634 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.099e-05/0.6477, allocations: 0 / 0.9634 GB, free: 0.7969 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001175/0.6489, allocations: 0.8521 MB / 0.9643 GB, free: 100 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.649, allocations: 9.969 kB / 0.9643 GB, free: 100 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.6491, allocations: 78.58 kB / 0.9644 GB, free: 56 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005898/0.6497, allocations: 437.5 kB / 0.9648 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.202e-05/0.6497, allocations: 36.59 kB / 0.9648 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.416e-05/0.6498, allocations: 51.16 kB / 0.9649 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008014/0.6506, allocations: 428.2 kB / 0.9653 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.6506, allocations: 3.906 kB / 0.9653 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.061e-05/0.6507, allocations: 24.73 kB / 0.9653 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.6507, allocations: 13.44 kB / 0.9653 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006715/0.6514, allocations: 372 kB / 0.9657 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.6537, allocations: 1.548 MB / 0.9672 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005861/0.6543, allocations: 339.2 kB / 0.9675 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005553/0.6549, allocations: 359.7 kB / 0.9678 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.6549, allocations: 4 kB / 0.9678 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.655, allocations: 44.95 kB / 0.9679 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.655, allocations: 3.938 kB / 0.9679 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.001042/0.656, allocations: 0.4975 MB / 0.9684 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.6561, allocations: 60.28 kB / 0.9684 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006463/0.6567, allocations: 482 kB / 0.9689 GB, free: 13 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.6568, allocations: 30.73 kB / 0.9689 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.657, allocations: 275.1 kB / 0.9692 GB, free: 12.71 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.6572, allocations: 147.2 kB / 0.9693 GB, free: 12.59 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.852e-05/0.6572, allocations: 10.16 kB / 0.9693 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.6574, allocations: 366.5 kB / 0.9697 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.6576, allocations: 124.5 kB / 0.9698 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002484/0.6579, allocations: 133.7 kB / 0.9699 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.6582, allocations: 145.8 kB / 0.9701 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.6582, allocations: 0 / 0.9701 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006801/0.6589, allocations: 395.9 kB / 0.9704 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.6589, allocations: 4.875 kB / 0.9704 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.6589, allocations: 0 / 0.9704 GB, free: 11.83 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.6589, allocations: 6.219 kB / 0.9705 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005083/0.6594, allocations: 135 kB / 0.9706 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.6595, allocations: 1.125 kB / 0.9706 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.6598, allocations: 54.91 kB / 0.9706 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.6598, allocations: 7.562 kB / 0.9706 GB, free: 11.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002476/0.6601, allocations: 204.8 kB / 0.9708 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.281e-05/0.6602, allocations: 48.19 kB / 0.9709 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.6603, allocations: 63.41 kB / 0.9709 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.6603, allocations: 4.281 kB / 0.9709 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.6603, allocations: 0 / 0.9709 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.6604, allocations: 5.078 kB / 0.971 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007257/0.6611, allocations: 0.582 MB / 0.9715 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.6611, allocations: 0 / 0.9715 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004991/0.6616, allocations: 131 kB / 0.9716 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.6616, allocations: 1.125 kB / 0.9716 GB, free: 10.99 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.382e-05/0.6617, allocations: 6.219 kB / 0.9717 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.6617, allocations: 2.094 kB / 0.9717 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6617, allocations: 0 / 0.9717 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.6627, allocations: 0.6722 MB / 0.9723 GB, free: 10.57 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.6628, allocations: 140.8 kB / 0.9724 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/0.6629, allocations: 5.469 kB / 0.9725 GB, free: 10.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.6631, allocations: 24.8 kB / 0.9725 GB, free: 10.42 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.522e-05/0.6632, allocations: 22.53 kB / 0.9725 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.6632, allocations: 11.53 kB / 0.9725 GB, free: 10.4 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004359/0.6637, allocations: 347.2 kB / 0.9728 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6637, allocations: 0 / 0.9728 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004742/0.6642, allocations: 148.9 kB / 0.973 GB, free: 10.16 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 (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.0001586/0.6643, allocations: 114.7 kB / 0.9731 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006251/0.665, allocations: 331.9 kB / 0.9734 GB, free: 9.922 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.665, allocations: 0 / 0.9734 GB, free: 9.922 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.6653, allocations: 194.3 kB / 0.9736 GB, free: 9.832 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.666, allocations: 116.4 kB / 0.9737 GB, free: 9.773 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.668, allocations: 1.442 MB / 0.9751 GB, free: 8.734 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.6686, allocations: 0.8748 MB / 0.976 GB, free: 7.949 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002365/0.6689, allocations: 49.92 kB / 0.976 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.669, allocations: 38.81 kB / 0.9761 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of SimCode: time 1.082e-06/0.669, allocations: 0 / 0.9761 GB, free: 7.918 MB / 0.7325 GB Notification: Performance of Templates: time 0.0114/0.6804, allocations: 5.38 MB / 0.9813 GB, free: 3.762 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/jenkins/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