Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.219/1.219, allocations: 249.4 MB / 256.7 MB, free: 0.6797 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009413/0.0009415, allocations: 183.4 kB / 316 MB, free: 8.852 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.1 MB / 0.5667 GB, free: 13.45 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000791/0.0007911, allocations: 89.39 kB / 0.671 GB, free: 51.53 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1912/0.192, allocations: 112.5 MB / 0.7808 GB, free: 9.773 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4632/0.6552, allocations: 106.3 MB / 0.8847 GB, free: 89.2 MB / 0.6433 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1594/0.8147, allocations: 141.6 MB / 1.023 GB, free: 3.895 MB / 0.6589 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.8149, allocations: 112.8 kB / 1.023 GB, free: 3.785 MB / 0.6589 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.05505/0.87, allocations: 22.44 MB / 1.045 GB, free: 13.57 MB / 0.6902 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.8701, allocations: 16 kB / 1.045 GB, free: 13.55 MB / 0.6902 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.8702, allocations: 75.09 kB / 1.045 GB, free: 13.48 MB / 0.6902 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005206/0.8707, allocations: 432.8 kB / 1.046 GB, free: 13.02 MB / 0.6902 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.8707, allocations: 16 kB / 1.046 GB, free: 13 MB / 0.6902 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.8708, allocations: 28 kB / 1.046 GB, free: 12.97 MB / 0.6902 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005112/0.8713, allocations: 306 kB / 1.046 GB, free: 12.68 MB / 0.6902 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005628/0.8719, allocations: 334 kB / 1.046 GB, free: 12.34 MB / 0.6902 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.8719, allocations: 0 / 1.046 GB, free: 12.34 MB / 0.6902 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.913e-05/0.8719, allocations: 0 / 1.046 GB, free: 12.34 MB / 0.6902 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.872, allocations: 12 kB / 1.046 GB, free: 12.33 MB / 0.6902 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001811/0.8738, allocations: 1.453 MB / 1.048 GB, free: 10.82 MB / 0.6902 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.8741, allocations: 254.1 kB / 1.048 GB, free: 10.56 MB / 0.6902 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003406/0.8745, allocations: 272.6 kB / 1.048 GB, free: 10.29 MB / 0.6902 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.8745, allocations: 4 kB / 1.048 GB, free: 10.29 MB / 0.6902 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.456e-05/0.8746, allocations: 38.56 kB / 1.048 GB, free: 10.24 MB / 0.6902 GB Notification: Performance of pre-optimization done (n=42): time 1.643e-06/0.8746, allocations: 0 / 1.048 GB, free: 10.24 MB / 0.6902 GB Notification: Performance of matching and sorting (n=42): time 0.0005097/0.8751, allocations: 313.6 kB / 1.048 GB, free: 9.938 MB / 0.6902 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.8751, allocations: 60.08 kB / 1.049 GB, free: 9.867 MB / 0.6902 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004203/0.8756, allocations: 365.2 kB / 1.049 GB, free: 9.508 MB / 0.6902 GB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.8756, allocations: 25.7 kB / 1.049 GB, free: 9.477 MB / 0.6902 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.8757, allocations: 216.1 kB / 1.049 GB, free: 9.262 MB / 0.6902 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.8758, allocations: 141.9 kB / 1.049 GB, free: 9.121 MB / 0.6902 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.261e-05/0.8758, allocations: 0 / 1.049 GB, free: 9.121 MB / 0.6902 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.876, allocations: 362.8 kB / 1.05 GB, free: 8.758 MB / 0.6902 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.8762, allocations: 100.7 kB / 1.05 GB, free: 8.656 MB / 0.6902 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.8763, allocations: 97.12 kB / 1.05 GB, free: 8.562 MB / 0.6902 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.8765, allocations: 126.3 kB / 1.05 GB, free: 8.441 MB / 0.6902 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.8765, allocations: 0 / 1.05 GB, free: 8.441 MB / 0.6902 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004373/0.8769, allocations: 324.6 kB / 1.05 GB, free: 8.117 MB / 0.6902 GB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.877, allocations: 14.86 kB / 1.05 GB, free: 8.105 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.877, allocations: 0 / 1.05 GB, free: 8.105 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.877, allocations: 4 kB / 1.05 GB, free: 8.102 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005119/0.8775, allocations: 132.6 kB / 1.05 GB, free: 7.973 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.8775, allocations: 0 / 1.05 GB, free: 7.973 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.8778, allocations: 43.67 kB / 1.05 GB, free: 7.93 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.186e-05/0.8778, allocations: 8 kB / 1.05 GB, free: 7.922 MB / 0.6902 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 8.016e-05/0.8779, allocations: 108.9 kB / 1.05 GB, free: 7.809 MB / 0.6902 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.297e-05/0.878, allocations: 50.23 kB / 1.051 GB, free: 7.762 MB / 0.6902 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.8781, allocations: 48.66 kB / 1.051 GB, free: 7.715 MB / 0.6902 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.8781, allocations: 11.88 kB / 1.051 GB, free: 7.703 MB / 0.6902 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.8781, allocations: 4 kB / 1.051 GB, free: 7.699 MB / 0.6902 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.8781, allocations: 7.891 kB / 1.051 GB, free: 7.691 MB / 0.6902 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005167/0.8786, allocations: 0.4899 MB / 1.051 GB, free: 7.164 MB / 0.6902 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.8786, allocations: 3.906 kB / 1.051 GB, free: 7.16 MB / 0.6902 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005139/0.8792, allocations: 127.9 kB / 1.051 GB, free: 7.035 MB / 0.6902 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.8792, allocations: 0.8438 kB / 1.051 GB, free: 7.035 MB / 0.6902 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.8792, allocations: 0 / 1.051 GB, free: 7.035 MB / 0.6902 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.8792, allocations: 4 kB / 1.051 GB, free: 7.031 MB / 0.6902 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.8792, allocations: 4 kB / 1.051 GB, free: 7.027 MB / 0.6902 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006662/0.8799, allocations: 0.5731 MB / 1.052 GB, free: 6.438 MB / 0.6902 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009756/0.8809, allocations: 1.12 MB / 1.053 GB, free: 5.297 MB / 0.6902 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000103/0.881, allocations: 132.3 kB / 1.053 GB, free: 5.148 MB / 0.6902 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.078e-05/0.8811, allocations: 4 kB / 1.053 GB, free: 5.145 MB / 0.6902 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.8813, allocations: 15.98 kB / 1.053 GB, free: 5.129 MB / 0.6902 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.8814, allocations: 26.59 kB / 1.053 GB, free: 5.105 MB / 0.6902 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.8814, allocations: 8 kB / 1.053 GB, free: 5.098 MB / 0.6902 GB Notification: Performance of sort global known variables: time 0.0002798/0.8817, allocations: 295.2 kB / 1.053 GB, free: 4.816 MB / 0.6902 GB Notification: Performance of remove unused functions: time 0.0009361/0.8826, allocations: 143.4 kB / 1.053 GB, free: 4.676 MB / 0.6902 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.0003324/0.8829, allocations: 268.2 kB / 1.054 GB, free: 4.418 MB / 0.6902 GB Notification: Performance of simCode: created initialization part: time 0.0003989/0.8834, allocations: 275.8 kB / 1.054 GB, free: 4.148 MB / 0.6902 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.8834, allocations: 0 / 1.054 GB, free: 4.148 MB / 0.6902 GB Notification: Performance of simCode: created simulation system equations: time 0.0001959/0.8836, allocations: 164 kB / 1.054 GB, free: 3.984 MB / 0.6902 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004567/0.884, allocations: 81.3 kB / 1.054 GB, free: 3.906 MB / 0.6902 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.8856, allocations: 0.905 MB / 1.055 GB, free: 2.984 MB / 0.6902 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005494/0.8861, allocations: 0.9266 MB / 1.056 GB, free: 2.027 MB / 0.6902 GB Notification: Performance of SimCode: time 3.5e-07/0.8861, allocations: 0 / 1.056 GB, free: 2.027 MB / 0.6902 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)