Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|TPip3.T|TPip4.T|intRes2UTub.capFil1.T|intRes2UTub.capFil2.T|intRes2UTub.capFil3.T|intRes2UTub.capFil4.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TWal.T|TPip1.T|TPip2.T|TPip3.T|TPip4.T|intRes2UTub.capFil1.T|intRes2UTub.capFil2.T|intRes2UTub.capFil3.T|intRes2UTub.capFil4.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") [: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.956/1.956, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001041/0.001041, allocations: 182.7 kB / 490.8 MB, free: 1.914 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.351/1.351, allocations: 221.4 MB / 0.7863 GB, free: 13.65 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.001014/0.001014, allocations: 83.61 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/7.995e-06, allocations: 0 / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2757, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7603/1.036, allocations: 160 MB / 1.368 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/1.036, allocations: 108.4 kB / 1.368 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.05943/1.096, allocations: 21.68 MB / 1.389 GB, free: 12.45 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.488e-05/1.096, allocations: 11.75 kB / 1.389 GB, free: 12.45 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001606/1.098, allocations: 0.7715 MB / 1.39 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/1.098, allocations: 9.375 kB / 1.39 GB, free: 27.86 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000277/1.098, allocations: 71.12 kB / 1.39 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008507/1.099, allocations: 437.7 kB / 1.39 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/1.099, allocations: 23 kB / 1.39 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.763e-05/1.099, allocations: 29.16 kB / 1.39 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006822/1.1, allocations: 302.4 kB / 1.391 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006526/1.1, allocations: 329.2 kB / 1.391 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/1.1, allocations: 1.344 kB / 1.391 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.235e-05/1.1, allocations: 0 / 1.391 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/1.1, allocations: 12.22 kB / 1.391 GB, free: 27.43 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002291/1.103, allocations: 1.454 MB / 1.392 GB, free: 26.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/1.103, allocations: 247.7 kB / 1.393 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/1.103, allocations: 281.6 kB / 1.393 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/1.103, allocations: 4.25 kB / 1.393 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/1.103, allocations: 35.44 kB / 1.393 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=42): time 2.384e-06/1.103, allocations: 0 / 1.393 GB, free: 26.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=42): time 0.000611/1.104, allocations: 313.5 kB / 1.393 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/1.104, allocations: 59.78 kB / 1.393 GB, free: 26.45 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005566/1.105, allocations: 372.6 kB / 1.394 GB, free: 26.32 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.381e-05/1.105, allocations: 26.83 kB / 1.394 GB, free: 26.29 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/1.105, allocations: 218 kB / 1.394 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/1.105, allocations: 140.3 kB / 1.394 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.293e-05/1.105, allocations: 0 / 1.394 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001634/1.105, allocations: 358.5 kB / 1.394 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001803/1.105, allocations: 97.72 kB / 1.395 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001613/1.106, allocations: 99.41 kB / 1.395 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/1.106, allocations: 127.8 kB / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/1.106, allocations: 0 / 1.395 GB, free: 25.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005164/1.106, allocations: 323.1 kB / 1.395 GB, free: 25.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/1.106, allocations: 9.625 kB / 1.395 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/1.106, allocations: 0 / 1.395 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/1.106, allocations: 1.656 kB / 1.395 GB, free: 25.58 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005815/1.107, allocations: 130.8 kB / 1.395 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/1.107, allocations: 1.844 kB / 1.395 GB, free: 25.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/1.107, allocations: 44.36 kB / 1.395 GB, free: 25.53 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/1.107, allocations: 7.688 kB / 1.395 GB, free: 25.53 MB / 0.8386 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 (46): * Single equations (assignments): 46 * 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 0.0001018/1.107, allocations: 113.3 kB / 1.395 GB, free: 25.42 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.965e-05/1.107, allocations: 49.75 kB / 1.395 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/1.108, allocations: 55.14 kB / 1.395 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/1.108, allocations: 5.156 kB / 1.395 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/1.108, allocations: 0 / 1.395 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.309e-06/1.108, allocations: 0.9688 kB / 1.395 GB, free: 25.37 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006274/1.108, allocations: 0.5024 MB / 1.396 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/1.108, allocations: 4.688 kB / 1.396 GB, free: 25.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005869/1.109, allocations: 134.3 kB / 1.396 GB, free: 25.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.266e-06/1.109, allocations: 5.719 kB / 1.396 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/1.109, allocations: 0.9375 kB / 1.396 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/1.109, allocations: 2.219 kB / 1.396 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/1.109, allocations: 0 / 1.396 GB, free: 25.05 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008766/1.11, allocations: 0.5773 MB / 1.397 GB, free: 24.86 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/1.11, allocations: 133.9 kB / 1.397 GB, free: 24.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.047e-05/1.11, allocations: 0.7812 kB / 1.397 GB, free: 24.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000282/1.11, allocations: 23.2 kB / 1.397 GB, free: 24.72 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/1.11, allocations: 24.02 kB / 1.397 GB, free: 24.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/1.111, allocations: 7.781 kB / 1.397 GB, free: 24.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0004209/1.111, allocations: 298.3 kB / 1.397 GB, free: 24.61 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005946/1.112, allocations: 140.3 kB / 1.397 GB, free: 24.58 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * 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.0004783/1.112, allocations: 260 kB / 1.397 GB, free: 24.45 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005308/1.113, allocations: 274.8 kB / 1.398 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.113, allocations: 0.7812 kB / 1.398 GB, free: 24.43 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002456/1.113, allocations: 159.9 kB / 1.398 GB, free: 24.42 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/1.113, allocations: 77 kB / 1.398 GB, free: 24.4 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00203/1.115, allocations: 0.8875 MB / 1.399 GB, free: 23.92 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006918/1.116, allocations: 0.9267 MB / 1.4 GB, free: 23.13 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.116, allocations: 0.7188 kB / 1.4 GB, free: 23.13 MB / 0.8386 GB Notification: Performance of Templates: time 0.01228/1.128, allocations: 5.33 MB / 1.405 GB, free: 19.28 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.csv","../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches