Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) [: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 9.1.1-maint.9.1.x/package.mo): time 2.13/2.13, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001061/0.001061, allocations: 179.8 kB / 487 MB, free: 5.391 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.447/1.447, allocations: 221.3 MB / 0.7819 GB, free: 1.414 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.001004/0.001004, allocations: 96.62 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.6306/0.6316, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.9221, allocations: 142.3 MB / 1.205 GB, free: 26.11 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8686/1.791, allocations: 159.2 MB / 1.361 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/1.791, allocations: 108 kB / 1.361 GB, free: 14.7 MB / 0.8073 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.05372/1.845, allocations: 22.46 MB / 1.383 GB, free: 13 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/1.845, allocations: 8 kB / 1.383 GB, free: 12.99 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/1.845, allocations: 75.06 kB / 1.383 GB, free: 12.92 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006281/1.846, allocations: 442.2 kB / 1.383 GB, free: 12.52 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.159e-05/1.846, allocations: 16 kB / 1.383 GB, free: 12.5 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.37e-05/1.846, allocations: 24 kB / 1.383 GB, free: 12.48 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005473/1.846, allocations: 307.3 kB / 1.384 GB, free: 12.3 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/1.847, allocations: 326.3 kB / 1.384 GB, free: 12.07 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/1.847, allocations: 0 / 1.384 GB, free: 12.07 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.615e-05/1.847, allocations: 0 / 1.384 GB, free: 12.07 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/1.847, allocations: 16 kB / 1.384 GB, free: 12.05 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/1.849, allocations: 1.454 MB / 1.385 GB, free: 10.9 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/1.85, allocations: 253 kB / 1.386 GB, free: 10.74 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004665/1.85, allocations: 268.7 kB / 1.386 GB, free: 10.57 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.779e-05/1.85, allocations: 4 kB / 1.386 GB, free: 10.57 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/1.85, allocations: 42.5 kB / 1.386 GB, free: 10.52 MB / 0.823 GB Notification: Performance of pre-optimization done (n=42): time 2.004e-06/1.85, allocations: 3.938 kB / 1.386 GB, free: 10.52 MB / 0.823 GB Notification: Performance of matching and sorting (n=42): time 0.0006233/1.851, allocations: 317.3 kB / 1.386 GB, free: 10.29 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/1.851, allocations: 59.34 kB / 1.386 GB, free: 10.21 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005539/1.852, allocations: 366.9 kB / 1.387 GB, free: 9.934 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/1.852, allocations: 25.7 kB / 1.387 GB, free: 9.902 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/1.852, allocations: 213.7 kB / 1.387 GB, free: 9.715 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001488/1.852, allocations: 138.8 kB / 1.387 GB, free: 9.594 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/1.852, allocations: 0 / 1.387 GB, free: 9.594 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001961/1.852, allocations: 367.1 kB / 1.387 GB, free: 9.246 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/1.852, allocations: 98 kB / 1.387 GB, free: 9.191 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/1.852, allocations: 102.7 kB / 1.388 GB, free: 9.137 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/1.853, allocations: 118.3 kB / 1.388 GB, free: 9.07 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/1.853, allocations: 3.938 kB / 1.388 GB, free: 9.066 MB / 0.823 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005823/1.853, allocations: 325.6 kB / 1.388 GB, free: 8.828 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/1.853, allocations: 8 kB / 1.388 GB, free: 8.82 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/1.853, allocations: 0 / 1.388 GB, free: 8.82 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/1.853, allocations: 0 / 1.388 GB, free: 8.82 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/1.854, allocations: 135.5 kB / 1.388 GB, free: 8.691 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/1.854, allocations: 3.938 kB / 1.388 GB, free: 8.688 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/1.854, allocations: 43.67 kB / 1.388 GB, free: 8.645 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.36e-05/1.854, allocations: 11.75 kB / 1.388 GB, free: 8.637 MB / 0.823 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 9.193e-05/1.854, allocations: 108.8 kB / 1.388 GB, free: 8.523 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.253e-05/1.854, allocations: 43.44 kB / 1.388 GB, free: 8.48 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/1.855, allocations: 56.52 kB / 1.388 GB, free: 8.445 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.855, allocations: 4 kB / 1.388 GB, free: 8.441 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/1.855, allocations: 0 / 1.388 GB, free: 8.441 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/1.855, allocations: 4 kB / 1.388 GB, free: 8.438 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006354/1.855, allocations: 0.4959 MB / 1.389 GB, free: 8.031 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/1.855, allocations: 0 / 1.389 GB, free: 8.031 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005609/1.856, allocations: 127.2 kB / 1.389 GB, free: 7.91 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/1.856, allocations: 0 / 1.389 GB, free: 7.91 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/1.856, allocations: 6.938 kB / 1.389 GB, free: 7.906 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/1.856, allocations: 0 / 1.389 GB, free: 7.906 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.856, allocations: 4 kB / 1.389 GB, free: 7.902 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007682/1.857, allocations: 0.573 MB / 1.39 GB, free: 7.473 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001099/1.858, allocations: 1.11 MB / 1.391 GB, free: 6.586 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/1.858, allocations: 131.3 kB / 1.391 GB, free: 6.445 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.406e-05/1.858, allocations: 4 kB / 1.391 GB, free: 6.441 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/1.858, allocations: 31.81 kB / 1.391 GB, free: 6.41 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.516e-05/1.858, allocations: 19.66 kB / 1.391 GB, free: 6.395 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/1.858, allocations: 8 kB / 1.391 GB, free: 6.387 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003235/1.859, allocations: 292.1 kB / 1.391 GB, free: 6.18 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.001001/1.86, allocations: 153.5 kB / 1.391 GB, free: 6.035 MB / 0.823 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.000432/1.86, allocations: 270.9 kB / 1.392 GB, free: 5.773 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0004432/1.861, allocations: 282.3 kB / 1.392 GB, free: 5.594 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/1.861, allocations: 0 / 1.392 GB, free: 5.594 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002027/1.861, allocations: 161.9 kB / 1.392 GB, free: 5.488 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005243/1.861, allocations: 78.38 kB / 1.392 GB, free: 5.43 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/1.863, allocations: 0.899 MB / 1.393 GB, free: 4.59 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007992/1.864, allocations: 0.9235 MB / 1.394 GB, free: 3.648 MB / 0.823 GB Notification: Performance of SimCode: time 3.01e-07/1.864, allocations: 0 / 1.394 GB, free: 3.648 MB / 0.823 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat does not exist to compare? outputFormat=mat