Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001384/0.001384, allocations: 109.3 kB / 16.37 MB, free: 6.48 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.001401/0.001401, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.402/2.402, allocations: 437.1 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 60.31 kB / 0.8707 GB, free: 1.414 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2564, allocations: 151.6 MB / 1.019 GB, free: 9.816 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.00215/0.2586, allocations: 1.284 MB / 1.02 GB, free: 8.516 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003864/0.2624, allocations: 3.769 MB / 1.024 GB, free: 4.73 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.69e-05/0.2625, allocations: 0 / 1.024 GB, free: 4.73 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.957e-05/0.2625, allocations: 7.938 kB / 1.024 GB, free: 4.723 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003795/0.2629, allocations: 95.48 kB / 1.024 GB, free: 4.629 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003109/0.2633, allocations: 136.5 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.431e-05/0.2633, allocations: 27.86 kB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 3.027e-05/0.2634, allocations: 3.984 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.55e-05/0.2635, allocations: 35.84 kB / 1.024 GB, free: 4.43 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.409e-05/0.2636, allocations: 31.97 kB / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.2636, allocations: 0 / 1.024 GB, free: 4.398 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004116/0.264, allocations: 303.6 kB / 1.024 GB, free: 4.102 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.349e-05/0.264, allocations: 11.92 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.806e-05/0.2641, allocations: 0 / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.2643, allocations: 127.6 kB / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2643, allocations: 0 / 1.024 GB, free: 3.965 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2643, allocations: 4 kB / 1.024 GB, free: 3.961 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.2643, allocations: 0 / 1.024 GB, free: 3.961 MB / 0.795 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.0003408/0.2646, allocations: 359.4 kB / 1.025 GB, free: 3.562 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 2.934e-05/0.2647, allocations: 12.92 kB / 1.025 GB, free: 3.551 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.355e-05/0.2647, allocations: 0.9375 kB / 1.025 GB, free: 3.551 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.604e-05/0.2648, allocations: 168.4 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.2648, allocations: 384 / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.2648, allocations: 384 / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.887e-05/0.2649, allocations: 45.69 kB / 1.025 GB, free: 3.297 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.731e-06/0.2649, allocations: 0 / 1.025 GB, free: 3.297 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-06/0.2649, allocations: 8 kB / 1.025 GB, free: 3.289 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.265, allocations: 0 / 1.025 GB, free: 3.289 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.958e-05/0.265, allocations: 4 kB / 1.025 GB, free: 3.285 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001329/0.2651, allocations: 153.7 kB / 1.025 GB, free: 3.086 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 4.765e-05/0.2652, allocations: 22.61 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.695e-05/0.2652, allocations: 4.859 kB / 1.025 GB, free: 3.047 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002349/0.2654, allocations: 109.1 kB / 1.025 GB, free: 2.922 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/0.2655, allocations: 38.44 kB / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2655, allocations: 0 / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of matching and sorting (n=2): time 0.0001262/0.2656, allocations: 41.61 kB / 1.025 GB, free: 2.828 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/0.2657, allocations: 55.41 kB / 1.025 GB, free: 2.762 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.785e-05/0.2657, allocations: 97.84 kB / 1.026 GB, free: 2.656 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.058e-05/0.2657, allocations: 29.7 kB / 1.026 GB, free: 2.621 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.646e-05/0.2658, allocations: 88.27 kB / 1.026 GB, free: 2.531 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.2658, allocations: 3.906 kB / 1.026 GB, free: 2.527 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/0.2658, allocations: 13.72 kB / 1.026 GB, free: 2.508 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.858e-05/0.2659, allocations: 318.8 kB / 1.026 GB, free: 2.188 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.386e-05/0.2659, allocations: 4 kB / 1.026 GB, free: 2.184 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.295e-06/0.266, allocations: 0 / 1.026 GB, free: 2.184 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.575e-05/0.266, allocations: 16.8 kB / 1.026 GB, free: 2.164 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.266, allocations: 4.062 kB / 1.026 GB, free: 2.16 MB / 0.795 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.227e-05/0.2661, allocations: 45.62 kB / 1.026 GB, free: 2.109 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2661, allocations: 7.125 kB / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.367e-06/0.2661, allocations: 0 / 1.026 GB, free: 2.105 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.2661, allocations: 4 kB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.367e-05/0.2662, allocations: 0 / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2662, allocations: 4 kB / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.521e-05/0.2662, allocations: 0 / 1.026 GB, free: 2.098 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.2662, allocations: 0 / 1.026 GB, free: 2.098 MB / 0.795 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 6.717e-05/0.2663, allocations: 113.8 kB / 1.026 GB, free: 1.977 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.186e-05/0.2663, allocations: 11.94 kB / 1.026 GB, free: 1.965 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/0.2664, allocations: 48.75 kB / 1.026 GB, free: 1.906 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2664, allocations: 0 / 1.026 GB, free: 1.906 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2664, allocations: 3.938 kB / 1.026 GB, free: 1.902 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.2664, allocations: 4 kB / 1.026 GB, free: 1.898 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.054e-05/0.2665, allocations: 153.6 kB / 1.026 GB, free: 1.699 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2665, allocations: 0 / 1.026 GB, free: 1.699 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.463e-05/0.2666, allocations: 8.188 kB / 1.026 GB, free: 1.691 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2666, allocations: 4.031 kB / 1.026 GB, free: 1.688 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.2666, allocations: 4 kB / 1.026 GB, free: 1.684 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2666, allocations: 3.984 kB / 1.026 GB, free: 1.68 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2666, allocations: 0 / 1.026 GB, free: 1.68 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.51e-05/0.2667, allocations: 72.98 kB / 1.026 GB, free: 1.59 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.045e-05/0.2667, allocations: 89.02 kB / 1.027 GB, free: 1.484 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.011e-05/0.2667, allocations: 0 / 1.027 GB, free: 1.484 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.441e-05/0.2668, allocations: 32 / 1.027 GB, free: 1.484 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.496e-05/0.2668, allocations: 8 kB / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.2668, allocations: 0 / 1.027 GB, free: 1.477 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.456e-05/0.2668, allocations: 79.28 kB / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2668, allocations: 0 / 1.027 GB, free: 1.398 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002102/0.267, allocations: 27.98 kB / 1.027 GB, free: 1.371 MB / 0.795 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.0001643/0.2672, allocations: 127.2 kB / 1.027 GB, free: 1.238 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 7.205e-05/0.2673, allocations: 8 kB / 1.027 GB, free: 1.23 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2673, allocations: 4.062 kB / 1.027 GB, free: 1.227 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.754e-05/0.2673, allocations: 15.92 kB / 1.027 GB, free: 1.211 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/0.2675, allocations: 5.312 kB / 1.027 GB, free: 1.207 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002447/0.2678, allocations: 127.6 kB / 1.027 GB, free: 1.059 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001951/0.268, allocations: 0.6768 MB / 1.028 GB, free: 364 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.78e-05/0.268, allocations: 12 kB / 1.028 GB, free: 352 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.501e-05/0.268, allocations: 7.438 kB / 1.028 GB, free: 344 kB / 0.795 GB Notification: Performance of SimCode: time 2.41e-07/0.268, allocations: 0 / 1.028 GB, free: 344 kB / 0.795 GB Notification: Performance of Templates: time 0.002674/0.2707, allocations: 0.7492 MB / 1.028 GB, free: 15.6 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches