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.155/2.155, allocations: 387.4 MB / 394.9 MB, free: 13.33 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.0009901/0.0009903, allocations: 169 kB / 487.4 MB, free: 5.039 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.511/1.511, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008929/0.0008929, allocations: 107.8 kB / 0.9219 GB, free: 2.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.809e-05/1.808e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.266, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.11/1.376, allocations: 380 MB / 1.577 GB, free: 9.891 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/1.377, allocations: 95 kB / 1.577 GB, free: 9.836 MB / 0.9948 GB Notification: Performance of FrontEnd - DAE generated: time 0.03891/1.416, allocations: 16.63 MB / 1.593 GB, free: 12.6 MB / 1.01 GB Notification: Performance of FrontEnd: time 1.393e-06/1.416, allocations: 4 kB / 1.593 GB, free: 12.6 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.514e-06/1.416, allocations: 0 / 1.593 GB, free: 12.6 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.0003923/1.416, allocations: 374 kB / 1.594 GB, free: 12.19 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/1.416, allocations: 8.031 kB / 1.594 GB, free: 12.18 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.271e-05/1.416, allocations: 4.578 kB / 1.594 GB, free: 12.18 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001408/1.416, allocations: 167 kB / 1.594 GB, free: 11.98 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/1.416, allocations: 0 / 1.594 GB, free: 11.98 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-06/1.416, allocations: 0 / 1.594 GB, free: 11.98 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.172e-05/1.416, allocations: 4 kB / 1.594 GB, free: 11.97 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.558e-05/1.417, allocations: 37.69 kB / 1.594 GB, free: 11.93 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/1.417, allocations: 0 / 1.594 GB, free: 11.93 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/1.417, allocations: 0 / 1.594 GB, free: 11.93 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/1.417, allocations: 0 / 1.594 GB, free: 11.93 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001543/1.417, allocations: 137.1 kB / 1.594 GB, free: 11.76 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 6.209e-05/1.417, allocations: 26.42 kB / 1.594 GB, free: 11.73 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/1.417, allocations: 8.922 kB / 1.594 GB, free: 11.72 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000216/1.417, allocations: 97.09 kB / 1.594 GB, free: 11.61 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.545e-05/1.417, allocations: 30.56 kB / 1.594 GB, free: 11.57 MB / 1.01 GB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/1.417, allocations: 0 / 1.594 GB, free: 11.57 MB / 1.01 GB Notification: Performance of matching and sorting (n=2): time 0.0002338/1.417, allocations: 53.48 kB / 1.594 GB, free: 11.51 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/1.417, allocations: 51.41 kB / 1.594 GB, free: 11.45 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.303e-05/1.417, allocations: 89 kB / 1.594 GB, free: 11.36 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/1.418, allocations: 25.7 kB / 1.594 GB, free: 11.32 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 4.629e-05/1.418, allocations: 87.36 kB / 1.595 GB, free: 11.24 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 2.135e-05/1.418, allocations: 7.906 kB / 1.595 GB, free: 11.23 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-06/1.418, allocations: 0 / 1.595 GB, free: 11.23 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 0.0001276/1.418, allocations: 322 kB / 1.595 GB, free: 10.91 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.227e-05/1.418, allocations: 0 / 1.595 GB, free: 10.91 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.366e-06/1.418, allocations: 11.88 kB / 1.595 GB, free: 10.9 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.111e-05/1.418, allocations: 11.98 kB / 1.595 GB, free: 10.89 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.418, allocations: 0 / 1.595 GB, free: 10.89 MB / 1.01 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001181/1.418, allocations: 45.75 kB / 1.595 GB, free: 10.84 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/1.418, allocations: 8 kB / 1.595 GB, free: 10.83 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/1.418, allocations: 0 / 1.595 GB, free: 10.83 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/1.418, allocations: 0 / 1.595 GB, free: 10.83 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.475e-05/1.418, allocations: 7.984 kB / 1.595 GB, free: 10.82 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/1.418, allocations: 0 / 1.595 GB, free: 10.82 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.62e-05/1.418, allocations: 0 / 1.595 GB, free: 10.82 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.928e-06/1.418, allocations: 0 / 1.595 GB, free: 10.82 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.521e-05/1.418, allocations: 114.2 kB / 1.595 GB, free: 10.71 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/1.418, allocations: 8.031 kB / 1.595 GB, free: 10.7 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001598/1.418, allocations: 53.36 kB / 1.595 GB, free: 10.64 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/1.418, allocations: 7.984 kB / 1.595 GB, free: 10.64 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/1.418, allocations: 0 / 1.595 GB, free: 10.64 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/1.418, allocations: 0 / 1.595 GB, free: 10.64 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001073/1.419, allocations: 137.9 kB / 1.595 GB, free: 10.47 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.419, allocations: 256 / 1.595 GB, free: 10.47 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.508e-05/1.419, allocations: 7.953 kB / 1.595 GB, free: 10.46 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/1.419, allocations: 4 kB / 1.595 GB, free: 10.46 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/1.419, allocations: 4.031 kB / 1.595 GB, free: 10.45 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/1.419, allocations: 0 / 1.595 GB, free: 10.45 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/1.419, allocations: 0 / 1.595 GB, free: 10.45 MB / 1.01 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/1.419, allocations: 72.98 kB / 1.595 GB, free: 10.37 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/1.419, allocations: 77.11 kB / 1.595 GB, free: 10.27 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.587e-05/1.419, allocations: 3.953 kB / 1.595 GB, free: 10.27 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.44e-05/1.419, allocations: 7.938 kB / 1.595 GB, free: 10.26 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.015e-05/1.419, allocations: 0 / 1.595 GB, free: 10.26 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/1.419, allocations: 4.031 kB / 1.595 GB, free: 10.26 MB / 1.01 GB Notification: Performance of sorting global known variables: time 3.718e-05/1.419, allocations: 86.33 kB / 1.596 GB, free: 10.18 MB / 1.01 GB Notification: Performance of sort global known variables: time 1.3e-07/1.419, allocations: 0 / 1.596 GB, free: 10.18 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002162/1.419, allocations: 27.94 kB / 1.596 GB, free: 10.15 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.000264/1.419, allocations: 155.1 kB / 1.596 GB, free: 9.988 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 6.839e-05/1.419, allocations: 11.19 kB / 1.596 GB, free: 9.98 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 3.247e-06/1.419, allocations: 0 / 1.596 GB, free: 9.98 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 9.097e-06/1.42, allocations: 7.938 kB / 1.596 GB, free: 9.973 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001245/1.42, allocations: 4.188 kB / 1.596 GB, free: 9.969 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001809/1.42, allocations: 63.08 kB / 1.596 GB, free: 9.887 MB / 1.01 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/1.42, allocations: 0.6807 MB / 1.596 GB, free: 9.18 MB / 1.01 GB Notification: Performance of simCode: alias equations: time 2.891e-05/1.42, allocations: 3.938 kB / 1.596 GB, free: 9.176 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.534e-05/1.42, allocations: 11.44 kB / 1.596 GB, free: 9.168 MB / 1.01 GB Notification: Performance of SimCode: time 2.4e-07/1.42, allocations: 0 / 1.596 GB, free: 9.168 MB / 1.01 GB Notification: Performance of Templates: time 0.003072/1.423, allocations: 0.9153 MB / 1.597 GB, free: 8.273 MB / 1.01 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