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.001456/0.001456, allocations: 102.9 kB / 16.35 MB, free: 5.879 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.001636/0.001636, allocations: 195.9 kB / 17.3 MB, free: 5.52 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.218/2.218, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 62.31 kB / 0.814 GB, free: 32.76 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2609, allocations: 140.4 MB / 0.9512 GB, free: 7.992 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00521/0.2661, allocations: 4.167 MB / 0.9552 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003273/0.2694, allocations: 2.409 MB / 0.9576 GB, free: 1.387 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002226/0.2697, allocations: 12 kB / 0.9576 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.2711, allocations: 0.5324 MB / 0.9581 GB, free: 0.8398 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004151/0.2715, allocations: 250 kB / 0.9583 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002221/0.2717, allocations: 143.8 kB / 0.9585 GB, free: 464 kB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007636/0.2725, allocations: 0.8137 MB / 0.9593 GB, free: 15.63 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004501/0.2729, allocations: 326.4 kB / 0.9596 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003005/0.2733, allocations: 287 kB / 0.9599 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000345/0.2736, allocations: 326.6 kB / 0.9602 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 8.155e-05/0.2737, allocations: 76 kB / 0.9602 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.2738, allocations: 80 kB / 0.9603 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.274, allocations: 163.5 kB / 0.9605 GB, free: 14.4 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.2743, allocations: 390.3 kB / 0.9608 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007568/0.275, allocations: 0.9927 MB / 0.9618 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.275, allocations: 0 / 0.9618 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2751, allocations: 0 / 0.9618 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.2751, allocations: 0 / 0.9618 GB, free: 13.02 MB / 0.7481 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.001351/0.2764, allocations: 0.9541 MB / 0.9628 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.2765, allocations: 12.03 kB / 0.9628 GB, free: 12 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.2766, allocations: 72.09 kB / 0.9628 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005791/0.2772, allocations: 461.6 kB / 0.9633 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.874e-05/0.2772, allocations: 37.31 kB / 0.9633 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.82e-05/0.2773, allocations: 52.36 kB / 0.9634 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006828/0.278, allocations: 426.8 kB / 0.9638 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.278, allocations: 7.984 kB / 0.9638 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.513e-05/0.2781, allocations: 20 kB / 0.9638 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.2781, allocations: 16 kB / 0.9638 GB, free: 10.89 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006399/0.2787, allocations: 367.8 kB / 0.9642 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001928/0.2807, allocations: 1.512 MB / 0.9656 GB, free: 8.941 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005012/0.2812, allocations: 338.9 kB / 0.966 GB, free: 8.598 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004471/0.2816, allocations: 320.8 kB / 0.9663 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.2817, allocations: 4 kB / 0.9663 GB, free: 8.277 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.2817, allocations: 42.5 kB / 0.9663 GB, free: 8.227 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=42): time 1.993e-06/0.2817, allocations: 0 / 0.9663 GB, free: 8.227 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42): time 0.0008999/0.2826, allocations: 0.4943 MB / 0.9668 GB, free: 7.727 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.2827, allocations: 56.17 kB / 0.9668 GB, free: 7.66 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005213/0.2832, allocations: 485.9 kB / 0.9673 GB, free: 7.18 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.2832, allocations: 29.7 kB / 0.9673 GB, free: 7.145 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.2834, allocations: 280.3 kB / 0.9676 GB, free: 6.867 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.2835, allocations: 141.9 kB / 0.9677 GB, free: 6.727 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.237e-05/0.2836, allocations: 66.08 kB / 0.9678 GB, free: 6.652 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.2838, allocations: 358.8 kB / 0.9681 GB, free: 6.293 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.284, allocations: 128.6 kB / 0.9683 GB, free: 6.168 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.2842, allocations: 129.2 kB / 0.9684 GB, free: 6.043 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004912/0.2847, allocations: 298 kB / 0.9687 GB, free: 5.75 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2847, allocations: 0 / 0.9687 GB, free: 5.75 MB / 0.7481 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006012/0.2854, allocations: 408.3 kB / 0.9691 GB, free: 5.344 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.2854, allocations: 4 kB / 0.9691 GB, free: 5.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2854, allocations: 0 / 0.9691 GB, free: 5.34 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2854, allocations: 0 / 0.9691 GB, free: 5.34 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.2859, allocations: 123.9 kB / 0.9692 GB, free: 5.219 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.2859, allocations: 7.984 kB / 0.9692 GB, free: 5.211 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.2861, allocations: 35.61 kB / 0.9692 GB, free: 5.176 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.2861, allocations: 16 kB / 0.9692 GB, free: 5.16 MB / 0.7481 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.0001962/0.2863, allocations: 196.8 kB / 0.9694 GB, free: 4.961 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.239e-05/0.2864, allocations: 55.28 kB / 0.9695 GB, free: 4.906 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.2865, allocations: 57.09 kB / 0.9695 GB, free: 4.848 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.2865, allocations: 8 kB / 0.9695 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2865, allocations: 0 / 0.9695 GB, free: 4.84 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.2866, allocations: 3.984 kB / 0.9695 GB, free: 4.836 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005909/0.2872, allocations: 0.5634 MB / 0.9701 GB, free: 4.223 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2872, allocations: 0 / 0.9701 GB, free: 4.223 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.2877, allocations: 135.8 kB / 0.9702 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.2877, allocations: 7.875 kB / 0.9702 GB, free: 4.082 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.2877, allocations: 12 kB / 0.9702 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2877, allocations: 0 / 0.9702 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2877, allocations: 0 / 0.9702 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009202/0.2886, allocations: 0.6508 MB / 0.9709 GB, free: 3.402 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.2888, allocations: 140.3 kB / 0.971 GB, free: 3.246 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.2888, allocations: 8 kB / 0.971 GB, free: 3.238 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.289, allocations: 12 kB / 0.971 GB, free: 3.227 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.2891, allocations: 27.95 kB / 0.9711 GB, free: 3.199 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.2891, allocations: 8 kB / 0.9711 GB, free: 3.191 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003617/0.2895, allocations: 351.1 kB / 0.9714 GB, free: 2.855 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2895, allocations: 0 / 0.9714 GB, free: 2.855 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.000364/0.2899, allocations: 143.6 kB / 0.9715 GB, free: 2.715 MB / 0.7481 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.0001474/0.29, allocations: 121.1 kB / 0.9717 GB, free: 2.586 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005534/0.2906, allocations: 323.7 kB / 0.972 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.2906, allocations: 0 / 0.972 GB, free: 2.27 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002674/0.2909, allocations: 179.9 kB / 0.9721 GB, free: 2.094 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.2915, allocations: 139.5 kB / 0.9723 GB, free: 1.961 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.2932, allocations: 1.186 MB / 0.9734 GB, free: 0.7461 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004143/0.2936, allocations: 0.8781 MB / 0.9743 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001605/0.2938, allocations: 52.39 kB / 0.9743 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.936e-05/0.2939, allocations: 35.44 kB / 0.9744 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of SimCode: time 1.493e-06/0.2939, allocations: 0 / 0.9744 GB, free: 15.75 MB / 0.7637 GB Notification: Performance of Templates: time 0.01067/0.3046, allocations: 5.927 MB / 0.9802 GB, free: 9.961 MB / 0.7637 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 -s cvode -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