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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.005662/0.005662, allocations: 100.3 kB / 15.73 MB, free: 6.027 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.001223/0.001223, allocations: 186.9 kB / 16.67 MB, free: 5.965 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 64.12 kB / 0.9509 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3079, allocations: 140.4 MB / 1.088 GB, free: 1.473 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.006034/0.314, allocations: 4.142 MB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00383/0.3178, allocations: 2.417 MB / 1.094 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003487/0.3182, allocations: 12 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.3199, allocations: 0.5363 MB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000575/0.3205, allocations: 254 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.3207, allocations: 135.9 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007899/0.3215, allocations: 0.8144 MB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004596/0.322, allocations: 338.4 kB / 1.096 GB, free: 8.793 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.3224, allocations: 294.9 kB / 1.097 GB, free: 8.504 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.3228, allocations: 322.6 kB / 1.097 GB, free: 8.188 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.506e-05/0.3228, allocations: 76 kB / 1.097 GB, free: 8.113 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.323, allocations: 72 kB / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.3231, allocations: 167.5 kB / 1.097 GB, free: 7.879 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.3235, allocations: 390.2 kB / 1.098 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008742/0.3244, allocations: 0.9967 MB / 1.099 GB, free: 6.496 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3244, allocations: 4 kB / 1.099 GB, free: 6.492 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.744e-06/0.3244, allocations: 0 / 1.099 GB, free: 6.492 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.484e-05/0.3244, allocations: 0 / 1.099 GB, free: 6.492 MB / 0.8575 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.001379/0.3258, allocations: 0.9424 MB / 1.1 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3258, allocations: 15.97 kB / 1.1 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.3259, allocations: 72.09 kB / 1.1 GB, free: 5.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000636/0.3266, allocations: 461.6 kB / 1.1 GB, free: 4.922 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.3266, allocations: 37.38 kB / 1.1 GB, free: 4.883 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.354e-05/0.3267, allocations: 48.38 kB / 1.1 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007173/0.3274, allocations: 434.7 kB / 1.101 GB, free: 4.402 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.3275, allocations: 3.906 kB / 1.101 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.052e-05/0.3275, allocations: 20 kB / 1.101 GB, free: 4.379 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.3275, allocations: 12 kB / 1.101 GB, free: 4.367 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006665/0.3282, allocations: 363.8 kB / 1.101 GB, free: 4.016 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.3302, allocations: 1.516 MB / 1.102 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005201/0.3307, allocations: 344.7 kB / 1.103 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004706/0.3312, allocations: 328.5 kB / 1.103 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.3313, allocations: 4 kB / 1.103 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.3313, allocations: 34.5 kB / 1.103 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=42): time 2.345e-06/0.3313, allocations: 0 / 1.103 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of matching and sorting (n=42): time 0.000927/0.3322, allocations: 0.4892 MB / 1.104 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.3323, allocations: 63.34 kB / 1.104 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005846/0.3329, allocations: 489.9 kB / 1.104 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.784e-05/0.3329, allocations: 33.7 kB / 1.104 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001814/0.3331, allocations: 272.4 kB / 1.104 GB, free: 348 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.3332, allocations: 149.8 kB / 1.105 GB, free: 196 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.601e-05/0.3333, allocations: 58.08 kB / 1.105 GB, free: 128 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.3335, allocations: 358.8 kB / 1.105 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.3338, allocations: 124.7 kB / 1.105 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002308/0.334, allocations: 133.2 kB / 1.105 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004922/0.3345, allocations: 298 kB / 1.106 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3345, allocations: 0 / 1.106 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006322/0.3351, allocations: 400.3 kB / 1.106 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3352, allocations: 5.562 kB / 1.106 GB, free: 14.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3352, allocations: 7.938 kB / 1.106 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.3352, allocations: 4 kB / 1.106 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000485/0.3357, allocations: 123.9 kB / 1.106 GB, free: 14.69 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.3357, allocations: 3.984 kB / 1.106 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.3359, allocations: 35.59 kB / 1.106 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.691e-05/0.336, allocations: 12 kB / 1.106 GB, free: 14.64 MB / 0.8731 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.0002123/0.3362, allocations: 193.8 kB / 1.106 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.446e-05/0.3363, allocations: 59.38 kB / 1.106 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.3364, allocations: 57.09 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.3364, allocations: 4 kB / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.3364, allocations: 0 / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.3364, allocations: 0 / 1.106 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006612/0.3371, allocations: 0.579 MB / 1.107 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3371, allocations: 4 kB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004889/0.3376, allocations: 127.8 kB / 1.107 GB, free: 13.56 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3376, allocations: 7.984 kB / 1.107 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.512e-05/0.3377, allocations: 12 kB / 1.107 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3377, allocations: 4 kB / 1.107 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.3377, allocations: 0 / 1.107 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000968/0.3387, allocations: 0.6406 MB / 1.108 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3388, allocations: 144.5 kB / 1.108 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.407e-05/0.3389, allocations: 8 kB / 1.108 GB, free: 12.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.3391, allocations: 19.98 kB / 1.108 GB, free: 12.69 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.438e-05/0.3391, allocations: 27.95 kB / 1.108 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.3392, allocations: 8 kB / 1.108 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003782/0.3395, allocations: 351.1 kB / 1.108 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3396, allocations: 0 / 1.108 GB, free: 12.32 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004103/0.34, allocations: 139.6 kB / 1.108 GB, free: 12.18 MB / 0.8731 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.0001712/0.3401, allocations: 119.1 kB / 1.108 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005818/0.3407, allocations: 335.4 kB / 1.109 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3407, allocations: 0 / 1.109 GB, free: 11.73 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000272/0.341, allocations: 175.8 kB / 1.109 GB, free: 11.55 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006187/0.3416, allocations: 123.4 kB / 1.109 GB, free: 11.43 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.3435, allocations: 1.194 MB / 1.11 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005285/0.3441, allocations: 0.8782 MB / 1.111 GB, free: 9.305 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001796/0.3443, allocations: 48.39 kB / 1.111 GB, free: 9.254 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.3444, allocations: 39.44 kB / 1.111 GB, free: 9.219 MB / 0.8731 GB Notification: Performance of SimCode: time 6.01e-07/0.3444, allocations: 3.938 kB / 1.111 GB, free: 9.215 MB / 0.8731 GB Notification: Performance of Templates: time 0.01137/0.3558, allocations: 6.022 MB / 1.117 GB, free: 3.332 MB / 0.8731 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