Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Boreholes.BaseClasses.Examples.ConvectionResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow_nominal|m_flow|R",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") translateModel(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow_nominal|m_flow|R",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.008165/0.008165, allocations: 171.3 kB / 16.27 MB, free: 6.32 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.49/1.49, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.908/2.908, allocations: 470.6 MB / 0.7442 GB, free: 8.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003268, allocations: 10.94 kB / 0.9123 GB, free: 34.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3235, allocations: 161.4 MB / 1.07 GB, free: 11.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.001421/0.325, allocations: 1.014 MB / 1.071 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.004685/0.3297, allocations: 3.722 MB / 1.075 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.062e-05/0.3297, allocations: 4 kB / 1.075 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.3297, allocations: 7.875 kB / 1.075 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004094/0.3301, allocations: 87.61 kB / 1.075 GB, free: 6.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002727/0.3304, allocations: 100.6 kB / 1.075 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.462e-05/0.3305, allocations: 27.92 kB / 1.075 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.312e-05/0.3305, allocations: 0 / 1.075 GB, free: 6.41 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.943e-05/0.3306, allocations: 27.91 kB / 1.075 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 9.254e-05/0.3307, allocations: 31.86 kB / 1.075 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.275e-06/0.3307, allocations: 0 / 1.075 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004865/0.3312, allocations: 303.5 kB / 1.075 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.436e-05/0.3313, allocations: 7.984 kB / 1.075 GB, free: 6.047 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.557e-05/0.3313, allocations: 33.64 kB / 1.075 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000206/0.3315, allocations: 120 kB / 1.075 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3315, allocations: 4 kB / 1.075 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3315, allocations: 4 kB / 1.075 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.577e-06/0.3316, allocations: 0 / 1.075 GB, free: 5.883 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003989/0.332, allocations: 355.4 kB / 1.076 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.332, allocations: 8.031 kB / 1.076 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.295e-05/0.332, allocations: 0.9375 kB / 1.076 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001382/0.3322, allocations: 164.4 kB / 1.076 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.3322, allocations: 384 / 1.076 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-06/0.3322, allocations: 384 / 1.076 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.537e-05/0.3323, allocations: 49.75 kB / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.162e-06/0.3323, allocations: 0 / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.935e-06/0.3323, allocations: 0 / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3323, allocations: 0 / 1.076 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.074e-05/0.3324, allocations: 4 kB / 1.076 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001746/0.3325, allocations: 153.7 kB / 1.076 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.344e-05/0.3326, allocations: 26.61 kB / 1.076 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.081e-05/0.3326, allocations: 4.859 kB / 1.076 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002401/0.3329, allocations: 105.1 kB / 1.076 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.3329, allocations: 34.5 kB / 1.076 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.3329, allocations: 3.938 kB / 1.076 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001363/0.3331, allocations: 45.61 kB / 1.076 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.3331, allocations: 51.41 kB / 1.076 GB, free: 4.699 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.976e-05/0.3332, allocations: 105.9 kB / 1.076 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.547e-05/0.3332, allocations: 29.7 kB / 1.076 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.263e-05/0.3333, allocations: 84.14 kB / 1.076 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.688e-05/0.3333, allocations: 0 / 1.076 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.3333, allocations: 9.719 kB / 1.076 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001631/0.3335, allocations: 322.8 kB / 1.077 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.381e-05/0.3335, allocations: 4 kB / 1.077 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.356e-06/0.3335, allocations: 0 / 1.077 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.814e-05/0.3336, allocations: 24.86 kB / 1.077 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3336, allocations: 0 / 1.077 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.067e-05/0.3337, allocations: 41.55 kB / 1.077 GB, free: 4.047 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.3337, allocations: 8 kB / 1.077 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.3337, allocations: 0 / 1.077 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.3337, allocations: 0 / 1.077 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.082e-05/0.3338, allocations: 7.984 kB / 1.077 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.3338, allocations: 0 / 1.077 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.546e-05/0.3338, allocations: 4.188 kB / 1.077 GB, free: 4.027 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-06/0.3338, allocations: 0 / 1.077 GB, free: 4.027 MB / 0.8262 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 (2): * Single equations (assignments): 2 * 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 9.87e-05/0.3339, allocations: 117.9 kB / 1.077 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.105e-05/0.3339, allocations: 7.938 kB / 1.077 GB, free: 3.895 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.334, allocations: 48.75 kB / 1.077 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.334, allocations: 4 kB / 1.077 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3341, allocations: 0 / 1.077 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3341, allocations: 0 / 1.077 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001274/0.3342, allocations: 153.7 kB / 1.077 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3342, allocations: 0 / 1.077 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.671e-05/0.3342, allocations: 11.97 kB / 1.077 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.3342, allocations: 0 / 1.077 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.3342, allocations: 0 / 1.077 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3343, allocations: 0 / 1.077 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.3343, allocations: 0 / 1.077 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.828e-05/0.3344, allocations: 69.06 kB / 1.077 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.181e-05/0.3344, allocations: 84.95 kB / 1.077 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.3344, allocations: 4 kB / 1.077 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.03e-05/0.3345, allocations: 12 kB / 1.077 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.3345, allocations: 3.938 kB / 1.077 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.3345, allocations: 0 / 1.077 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.78e-05/0.3345, allocations: 83.28 kB / 1.077 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3345, allocations: 0 / 1.077 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000209/0.3348, allocations: 27.94 kB / 1.077 GB, free: 3.309 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0002011/0.335, allocations: 131.2 kB / 1.078 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.022e-05/0.335, allocations: 8 kB / 1.078 GB, free: 3.164 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3351, allocations: 4 kB / 1.078 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.505e-05/0.3351, allocations: 7.938 kB / 1.078 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.3353, allocations: 14.73 kB / 1.078 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002707/0.3355, allocations: 132.8 kB / 1.078 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002954/0.3359, allocations: 0.6811 MB / 1.078 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.663e-05/0.3359, allocations: 7.938 kB / 1.078 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.3359, allocations: 7.438 kB / 1.078 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.3359, allocations: 4 kB / 1.078 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of Templates: time 0.003123/0.3391, allocations: 0.723 MB / 1.079 GB, free: 1.543 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (rm -f Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches