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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001615/0.001615, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.417/1.417, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.679/2.679, allocations: 437 MB / 0.7103 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 63.89 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5881/0.5894, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002401/0.5918, allocations: 1.292 MB / 1.019 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.004249/0.5961, allocations: 3.755 MB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.335e-05/0.5961, allocations: 0 / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.507e-05/0.5962, allocations: 3.938 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004356/0.5966, allocations: 99.47 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003584/0.597, allocations: 143.1 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.976e-05/0.5971, allocations: 27.91 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.262e-05/0.5971, allocations: 4 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.718e-05/0.5972, allocations: 23.92 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.683e-05/0.5973, allocations: 43.83 kB / 1.023 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.408e-06/0.5973, allocations: 0 / 1.023 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000439/0.5978, allocations: 299.6 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.5978, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.179e-05/0.5978, allocations: 7.938 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002152/0.5981, allocations: 121.7 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.5981, allocations: 7.938 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.213e-06/0.5981, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.479e-06/0.5981, allocations: 0 / 1.023 GB, free: 12.66 MB / 0.7794 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.0003564/0.5984, allocations: 353.1 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.5985, allocations: 12.03 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.787e-05/0.5985, allocations: 4.844 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.874e-05/0.5986, allocations: 164.3 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.5986, allocations: 4.375 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.366e-06/0.5987, allocations: 384 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.587e-05/0.5988, allocations: 49.75 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.5988, allocations: 0 / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.5988, allocations: 0 / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.5988, allocations: 0 / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.359e-05/0.5988, allocations: 4 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001419/0.599, allocations: 153.7 kB / 1.024 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.881e-05/0.599, allocations: 22.61 kB / 1.024 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.025e-05/0.5991, allocations: 16.8 kB / 1.024 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002313/0.5993, allocations: 101.1 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.5993, allocations: 38.5 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.083e-06/0.5993, allocations: 0 / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001428/0.5995, allocations: 41.7 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.5995, allocations: 55.39 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.474e-05/0.5996, allocations: 102 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.5996, allocations: 25.7 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.891e-05/0.5996, allocations: 88.08 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.243e-05/0.5997, allocations: 7.891 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.5997, allocations: 13.72 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.249e-05/0.5998, allocations: 314.8 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.372e-05/0.5998, allocations: 3.938 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.058e-05/0.5998, allocations: 4 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.119e-05/0.5999, allocations: 16.92 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.5999, allocations: 4 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.624e-05/0.6, allocations: 49.52 kB / 1.025 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.6, allocations: 4 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.6, allocations: 0 / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.6, allocations: 256 / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.123e-05/0.6001, allocations: 4 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.6001, allocations: 4 kB / 1.025 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.933e-05/0.6001, allocations: 8.031 kB / 1.025 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.6001, allocations: 0 / 1.025 GB, free: 10.79 MB / 0.7794 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.338e-05/0.6002, allocations: 115.3 kB / 1.025 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.909e-06/0.6002, allocations: 3.938 kB / 1.025 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.6003, allocations: 52.75 kB / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.6003, allocations: 0 / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.6003, allocations: 0 / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.6003, allocations: 0 / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.348e-05/0.6004, allocations: 161.7 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.6005, allocations: 4 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.274e-05/0.6005, allocations: 7.922 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.6005, allocations: 0 / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.6005, allocations: 4 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.6005, allocations: 0 / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6005, allocations: 0 / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001089/0.6007, allocations: 65.08 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.388e-05/0.6007, allocations: 92.97 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.171e-05/0.6007, allocations: 0 / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.538e-05/0.6008, allocations: 0 / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.245e-05/0.6008, allocations: 0 / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.6008, allocations: 4 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.161e-05/0.6008, allocations: 87.27 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6009, allocations: 3.938 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002089/0.6011, allocations: 23.94 kB / 1.025 GB, free: 10.07 MB / 0.7794 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.0001754/0.6013, allocations: 129 kB / 1.025 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.2e-05/0.6013, allocations: 15.92 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.6013, allocations: 0 / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.425e-05/0.6014, allocations: 8 kB / 1.025 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.6016, allocations: 4 kB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002643/0.6019, allocations: 135.7 kB / 1.025 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002162/0.6021, allocations: 0.6768 MB / 1.026 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.515e-05/0.6021, allocations: 3.938 kB / 1.026 GB, free: 9.047 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.7e-05/0.6021, allocations: 11.44 kB / 1.026 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6021, allocations: 3.938 kB / 1.026 GB, free: 9.031 MB / 0.7794 GB Notification: Performance of Templates: time 0.002892/0.605, allocations: 0.7474 MB / 1.027 GB, free: 8.293 MB / 0.7794 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 -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/jenkins/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