Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.2/2.2, allocations: 387.1 MB / 399.7 MB, free: 9.449 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001205, allocations: 183.7 kB / 492.3 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 221.3 MB / 0.7871 GB, free: 12.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009118/0.0009118, allocations: 91.89 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.248e-05/3.261e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2865, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.118/1.404, allocations: 380.7 MB / 1.584 GB, free: 1.234 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/1.405, allocations: 95.45 kB / 1.584 GB, free: 1.176 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.04138/1.446, allocations: 16.7 MB / 1.601 GB, free: 3.711 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.883e-06/1.446, allocations: 4 kB / 1.601 GB, free: 3.707 MB / 1.01 GB Notification: Performance of Transformations before backend: time 1.086e-05/1.446, allocations: 0 / 1.601 GB, free: 3.707 MB / 1.01 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.0004368/1.447, allocations: 370 kB / 1.601 GB, free: 3.305 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/1.447, allocations: 8.031 kB / 1.601 GB, free: 3.297 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/1.447, allocations: 4.578 kB / 1.601 GB, free: 3.293 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/1.447, allocations: 170.9 kB / 1.601 GB, free: 3.086 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/1.447, allocations: 3.562 kB / 1.601 GB, free: 3.086 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.204e-05/1.447, allocations: 0 / 1.601 GB, free: 3.086 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.932e-05/1.447, allocations: 37.69 kB / 1.601 GB, free: 3.043 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/1.447, allocations: 0 / 1.601 GB, free: 3.043 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/1.447, allocations: 0 / 1.601 GB, free: 3.043 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/1.447, allocations: 0 / 1.601 GB, free: 3.043 MB / 1.01 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.687e-05/1.447, allocations: 4 kB / 1.601 GB, free: 3.039 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001992/1.447, allocations: 156.8 kB / 1.601 GB, free: 2.84 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 5.636e-05/1.448, allocations: 30.23 kB / 1.601 GB, free: 2.805 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.269e-05/1.448, allocations: 8.922 kB / 1.601 GB, free: 2.793 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002602/1.448, allocations: 101.1 kB / 1.601 GB, free: 2.676 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.701e-05/1.448, allocations: 41.19 kB / 1.601 GB, free: 2.629 MB / 1.01 GB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/1.448, allocations: 0 / 1.601 GB, free: 2.629 MB / 1.01 GB Notification: Performance of matching and sorting (n=2): time 0.000123/1.448, allocations: 37.69 kB / 1.601 GB, free: 2.586 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/1.448, allocations: 51.41 kB / 1.602 GB, free: 2.523 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.358e-05/1.448, allocations: 100.7 kB / 1.602 GB, free: 2.422 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/1.448, allocations: 25.7 kB / 1.602 GB, free: 2.391 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 3.778e-05/1.448, allocations: 84.08 kB / 1.602 GB, free: 2.305 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/1.448, allocations: 11.33 kB / 1.602 GB, free: 2.297 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/1.448, allocations: 0 / 1.602 GB, free: 2.297 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.00013/1.448, allocations: 318.8 kB / 1.602 GB, free: 1.977 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/1.448, allocations: 0 / 1.602 GB, free: 1.977 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.215e-05/1.448, allocations: 4 kB / 1.602 GB, free: 1.973 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.946e-05/1.448, allocations: 15.25 kB / 1.602 GB, free: 1.961 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/1.448, allocations: 0 / 1.602 GB, free: 1.961 MB / 1.01 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.32e-05/1.449, allocations: 33.7 kB / 1.602 GB, free: 1.922 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/1.449, allocations: 7.984 kB / 1.602 GB, free: 1.914 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/1.449, allocations: 4 kB / 1.602 GB, free: 1.91 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/1.449, allocations: 0 / 1.602 GB, free: 1.91 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.281e-05/1.449, allocations: 0 / 1.602 GB, free: 1.91 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/1.449, allocations: 4 kB / 1.602 GB, free: 1.906 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.433e-05/1.449, allocations: 0 / 1.602 GB, free: 1.906 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.27e-06/1.449, allocations: 0 / 1.602 GB, free: 1.906 MB / 1.01 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.623e-05/1.449, allocations: 116.1 kB / 1.602 GB, free: 1.789 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.235e-06/1.449, allocations: 4 kB / 1.602 GB, free: 1.785 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/1.449, allocations: 44.69 kB / 1.602 GB, free: 1.742 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/1.449, allocations: 0 / 1.602 GB, free: 1.742 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/1.449, allocations: 0 / 1.602 GB, free: 1.742 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/1.449, allocations: 4 kB / 1.602 GB, free: 1.738 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/1.449, allocations: 165.4 kB / 1.602 GB, free: 1.531 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/1.449, allocations: 0 / 1.602 GB, free: 1.531 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.877e-05/1.449, allocations: 32 / 1.602 GB, free: 1.531 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/1.449, allocations: 8 kB / 1.602 GB, free: 1.523 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/1.449, allocations: 0 / 1.602 GB, free: 1.523 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/1.449, allocations: 0 / 1.602 GB, free: 1.523 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.449, allocations: 0 / 1.602 GB, free: 1.523 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.999e-05/1.449, allocations: 72.7 kB / 1.603 GB, free: 1.438 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/1.449, allocations: 77.11 kB / 1.603 GB, free: 1.344 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/1.449, allocations: 7.922 kB / 1.603 GB, free: 1.336 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.359e-05/1.449, allocations: 4.031 kB / 1.603 GB, free: 1.332 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.688e-05/1.449, allocations: 4 kB / 1.603 GB, free: 1.328 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/1.449, allocations: 0 / 1.603 GB, free: 1.328 MB / 1.01 GB Notification: Performance of sorting global known variables: time 4.648e-05/1.449, allocations: 86.53 kB / 1.603 GB, free: 1.246 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.2e-07/1.449, allocations: 0 / 1.603 GB, free: 1.246 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002248/1.45, allocations: 31.94 kB / 1.603 GB, free: 1.215 MB / 1.01 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000313/1.45, allocations: 155.9 kB / 1.603 GB, free: 1.059 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 7.648e-05/1.45, allocations: 11.94 kB / 1.603 GB, free: 1.047 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/1.45, allocations: 4.062 kB / 1.603 GB, free: 1.043 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 1.788e-05/1.45, allocations: 11.36 kB / 1.603 GB, free: 1.035 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/1.45, allocations: 7.891 kB / 1.603 GB, free: 1.027 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001993/1.45, allocations: 57.06 kB / 1.603 GB, free: 0.9531 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/1.451, allocations: 0.6809 MB / 1.604 GB, free: 252 kB / 1.01 GB Notification: Performance of simCode: alias equations: time 4.176e-05/1.451, allocations: 3.984 kB / 1.604 GB, free: 248 kB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.387e-05/1.451, allocations: 15.5 kB / 1.604 GB, free: 236 kB / 1.01 GB Notification: Performance of SimCode: time 4.31e-07/1.451, allocations: 0 / 1.604 GB, free: 236 kB / 1.01 GB Notification: Performance of Templates: time 0.004459/1.455, allocations: 1.094 MB / 1.605 GB, free: 15.16 MB / 1.026 GB make -j1 -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (rm -f Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & ./Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","../files/Buildings_9_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches