Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.997/1.997, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.001025/0.001025, allocations: 181.2 kB / 490.8 MB, free: 1.902 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.336/1.336, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0009863/0.0009863, allocations: 93.5 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.414e-06/7.434e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2455, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8346/1.08, allocations: 380.7 MB / 1.583 GB, free: 2.125 MB / 0.9948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/1.08, allocations: 99.3 kB / 1.583 GB, free: 2.066 MB / 0.9948 GB Notification: Performance of FrontEnd: time 0.03546/1.116, allocations: 16.39 MB / 1.599 GB, free: 5.074 MB / 1.01 GB Notification: Performance of Transformations before backend: time 7.865e-06/1.116, allocations: 0 / 1.599 GB, free: 5.074 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.0003266/1.116, allocations: 369.3 kB / 1.6 GB, free: 4.672 MB / 1.01 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/1.116, allocations: 12.03 kB / 1.6 GB, free: 4.66 MB / 1.01 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.205e-05/1.116, allocations: 0 / 1.6 GB, free: 4.66 MB / 1.01 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000108/1.117, allocations: 166.9 kB / 1.6 GB, free: 4.457 MB / 1.01 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.301e-05/1.117, allocations: 0 / 1.6 GB, free: 4.457 MB / 1.01 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/1.117, allocations: 7.984 kB / 1.6 GB, free: 4.449 MB / 1.01 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.837e-05/1.117, allocations: 10.86 kB / 1.6 GB, free: 4.441 MB / 1.01 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.7e-05/1.117, allocations: 25.7 kB / 1.6 GB, free: 4.41 MB / 1.01 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/1.117, allocations: 8 kB / 1.6 GB, free: 4.402 MB / 1.01 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/1.117, allocations: 4 kB / 1.6 GB, free: 4.398 MB / 1.01 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/1.117, allocations: 3.906 kB / 1.6 GB, free: 4.395 MB / 1.01 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/1.117, allocations: 133 kB / 1.6 GB, free: 4.23 MB / 1.01 GB Notification: Performance of preOpt comSubExp (simulation): time 4.845e-05/1.117, allocations: 21.08 kB / 1.6 GB, free: 4.203 MB / 1.01 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.946e-05/1.117, allocations: 12.86 kB / 1.6 GB, free: 4.188 MB / 1.01 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000227/1.117, allocations: 97.09 kB / 1.6 GB, free: 4.074 MB / 1.01 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/1.117, allocations: 34.5 kB / 1.6 GB, free: 4.031 MB / 1.01 GB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/1.117, allocations: 0 / 1.6 GB, free: 4.031 MB / 1.01 GB Notification: Performance of matching and sorting (n=2): time 0.0002195/1.117, allocations: 52.14 kB / 1.6 GB, free: 3.977 MB / 1.01 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.951e-05/1.117, allocations: 55.41 kB / 1.6 GB, free: 3.91 MB / 1.01 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.296e-05/1.118, allocations: 99.36 kB / 1.601 GB, free: 3.809 MB / 1.01 GB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/1.118, allocations: 25.7 kB / 1.601 GB, free: 3.777 MB / 1.01 GB Notification: Performance of collectInitialEqns (initialization): time 2.584e-05/1.118, allocations: 84.17 kB / 1.601 GB, free: 3.691 MB / 1.01 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/1.118, allocations: 3.5 kB / 1.601 GB, free: 3.691 MB / 1.01 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/1.118, allocations: 0 / 1.601 GB, free: 3.691 MB / 1.01 GB Notification: Performance of setup shared object (initialization): time 8.545e-05/1.118, allocations: 318.8 kB / 1.601 GB, free: 3.371 MB / 1.01 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.938e-06/1.118, allocations: 0 / 1.601 GB, free: 3.371 MB / 1.01 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.557e-06/1.118, allocations: 4 kB / 1.601 GB, free: 3.367 MB / 1.01 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/1.118, allocations: 11.97 kB / 1.601 GB, free: 3.355 MB / 1.01 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/1.118, allocations: 7.938 kB / 1.601 GB, free: 3.348 MB / 1.01 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001347/1.118, allocations: 47.92 kB / 1.601 GB, free: 3.297 MB / 1.01 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/1.118, allocations: 8.031 kB / 1.601 GB, free: 3.289 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/1.118, allocations: 0 / 1.601 GB, free: 3.289 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/1.118, allocations: 0 / 1.601 GB, free: 3.289 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.827e-05/1.118, allocations: 4 kB / 1.601 GB, free: 3.285 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.606e-06/1.118, allocations: 0 / 1.601 GB, free: 3.285 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.073e-05/1.118, allocations: 7.906 kB / 1.601 GB, free: 3.277 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.469e-06/1.118, allocations: 0 / 1.601 GB, free: 3.277 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 5.335e-05/1.118, allocations: 101 kB / 1.601 GB, free: 3.172 MB / 1.01 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-06/1.118, allocations: 0 / 1.601 GB, free: 3.172 MB / 1.01 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001814/1.118, allocations: 74.75 kB / 1.601 GB, free: 3.098 MB / 1.01 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/1.118, allocations: 0 / 1.601 GB, free: 3.098 MB / 1.01 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.118, allocations: 4 kB / 1.601 GB, free: 3.094 MB / 1.01 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/1.118, allocations: 0 / 1.601 GB, free: 3.094 MB / 1.01 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.815e-05/1.119, allocations: 130.2 kB / 1.601 GB, free: 2.93 MB / 1.01 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/1.119, allocations: 0 / 1.601 GB, free: 2.93 MB / 1.01 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.364e-05/1.119, allocations: 0 / 1.601 GB, free: 2.93 MB / 1.01 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/1.119, allocations: 4 kB / 1.601 GB, free: 2.926 MB / 1.01 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/1.119, allocations: 7.969 kB / 1.601 GB, free: 2.918 MB / 1.01 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/1.119, allocations: 0 / 1.601 GB, free: 2.918 MB / 1.01 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.119, allocations: 3.906 kB / 1.601 GB, free: 2.914 MB / 1.01 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001408/1.119, allocations: 72.36 kB / 1.601 GB, free: 2.828 MB / 1.01 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/1.119, allocations: 85 kB / 1.601 GB, free: 2.727 MB / 1.01 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/1.119, allocations: 0 / 1.601 GB, free: 2.727 MB / 1.01 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.887e-05/1.119, allocations: 2.875 kB / 1.602 GB, free: 2.727 MB / 1.01 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.089e-05/1.119, allocations: 7.938 kB / 1.602 GB, free: 2.719 MB / 1.01 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/1.119, allocations: 8.031 kB / 1.602 GB, free: 2.711 MB / 1.01 GB Notification: Performance of sort global known variables: time 3.307e-05/1.119, allocations: 79.28 kB / 1.602 GB, free: 2.633 MB / 1.01 GB Notification: Performance of remove unused functions: time 0.0002162/1.119, allocations: 43.23 kB / 1.602 GB, free: 2.594 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.0002406/1.119, allocations: 162.1 kB / 1.602 GB, free: 2.43 MB / 1.01 GB Notification: Performance of simCode: created initialization part: time 6.337e-05/1.119, allocations: 8 kB / 1.602 GB, free: 2.422 MB / 1.01 GB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/1.119, allocations: 64 / 1.602 GB, free: 2.422 MB / 1.01 GB Notification: Performance of simCode: created simulation system equations: time 1.163e-05/1.119, allocations: 7.562 kB / 1.602 GB, free: 2.418 MB / 1.01 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/1.12, allocations: 128 / 1.602 GB, free: 2.418 MB / 1.01 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001761/1.12, allocations: 67.78 kB / 1.602 GB, free: 2.328 MB / 1.01 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/1.12, allocations: 0.688 MB / 1.603 GB, free: 1.613 MB / 1.01 GB Notification: Performance of SimCode: time 2.7e-07/1.12, allocations: 0 / 1.603 GB, free: 1.613 MB / 1.01 GB Notification: Performance of Templates: time 0.00293/1.123, allocations: 0.9723 MB / 1.603 GB, free: 0.6602 MB / 1.01 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches