Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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/BuildingSystems 2.0.0-master/package.mo): time 0.7252/0.7252, allocations: 141.8 MB / 149.1 MB, free: 380 kB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 174.9 kB / 182 MB, free: 12.62 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.3 MB / 436.1 MB, free: 5.348 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009849/0.000985, allocations: 104.4 kB / 0.5071 GB, free: 19.14 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001858/0.001858, allocations: 277.9 kB / 0.5885 GB, free: 6.535 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 8.887e-06/8.907e-06, allocations: 2 kB / 0.6759 GB, free: 139.7 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1564, allocations: 82.77 MB / 0.7568 GB, free: 88.26 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1358/0.2923, allocations: 118.5 MB / 0.8725 GB, free: 1.57 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003187/0.2927, allocations: 114.2 kB / 0.8726 GB, free: 1.461 MB / 0.5419 GB Notification: Performance of FrontEnd: time 0.3846/0.6773, allocations: 21.66 MB / 0.8938 GB, free: 111.6 MB / 0.5419 GB Notification: Performance of Transformations before backend: time 1.448e-05/0.6774, allocations: 12 kB / 0.8938 GB, free: 111.6 MB / 0.5419 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.0009164/0.6783, allocations: 0.7669 MB / 0.8945 GB, free: 110.8 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.6783, allocations: 11.97 kB / 0.8946 GB, free: 110.7 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.6784, allocations: 71.16 kB / 0.8946 GB, free: 110.7 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004965/0.6789, allocations: 436.8 kB / 0.895 GB, free: 110.2 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.679, allocations: 20 kB / 0.8951 GB, free: 110.2 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.679, allocations: 35.84 kB / 0.8951 GB, free: 110.1 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004882/0.6795, allocations: 302 kB / 0.8954 GB, free: 109.9 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005032/0.68, allocations: 324.6 kB / 0.8957 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.6801, allocations: 0 / 0.8957 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.099e-05/0.6801, allocations: 0 / 0.8957 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.6801, allocations: 12 kB / 0.8957 GB, free: 109.5 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.6818, allocations: 1.456 MB / 0.8971 GB, free: 108 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.6821, allocations: 259.8 kB / 0.8974 GB, free: 107.7 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.6825, allocations: 272.9 kB / 0.8976 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.6825, allocations: 7.984 kB / 0.8976 GB, free: 107.5 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.6825, allocations: 38.56 kB / 0.8977 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=42): time 1.553e-06/0.6825, allocations: 0 / 0.8977 GB, free: 107.4 MB / 0.5419 GB Notification: Performance of matching and sorting (n=42): time 0.0004785/0.683, allocations: 301.6 kB / 0.898 GB, free: 107.1 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.683, allocations: 63.19 kB / 0.898 GB, free: 107 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003696/0.6834, allocations: 373.2 kB / 0.8984 GB, free: 106.7 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.6834, allocations: 25.7 kB / 0.8984 GB, free: 106.6 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 7.752e-05/0.6835, allocations: 216 kB / 0.8986 GB, free: 106.4 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 8.05e-05/0.6836, allocations: 141.9 kB / 0.8987 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.323e-05/0.6836, allocations: 0 / 0.8987 GB, free: 106.3 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 7.401e-05/0.6837, allocations: 354.8 kB / 0.8991 GB, free: 105.9 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.6839, allocations: 108.7 kB / 0.8992 GB, free: 105.8 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.684, allocations: 101.2 kB / 0.8993 GB, free: 105.7 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.6842, allocations: 117.8 kB / 0.8994 GB, free: 105.6 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.6842, allocations: 3.906 kB / 0.8994 GB, free: 105.6 MB / 0.5419 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004001/0.6846, allocations: 333.1 kB / 0.8997 GB, free: 105.3 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.6846, allocations: 6.344 kB / 0.8997 GB, free: 105.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.6846, allocations: 0 / 0.8997 GB, free: 105.3 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.6846, allocations: 0 / 0.8997 GB, free: 105.3 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005159/0.6852, allocations: 131.9 kB / 0.8999 GB, free: 105.1 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.244e-06/0.6852, allocations: 7.984 kB / 0.8999 GB, free: 105.1 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000247/0.6854, allocations: 35.73 kB / 0.8999 GB, free: 105.1 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.6855, allocations: 8 kB / 0.8999 GB, free: 105.1 MB / 0.5419 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 7.35e-05/0.6855, allocations: 108.9 kB / 0.9 GB, free: 105 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.6856, allocations: 51.34 kB / 0.9001 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.957e-05/0.6857, allocations: 56.64 kB / 0.9001 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.6857, allocations: 7.938 kB / 0.9001 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.6857, allocations: 0 / 0.9001 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.6857, allocations: 0 / 0.9001 GB, free: 104.9 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004598/0.6862, allocations: 0.5052 MB / 0.9006 GB, free: 104.3 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.6862, allocations: 8 kB / 0.9006 GB, free: 104.3 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/0.6867, allocations: 127.9 kB / 0.9007 GB, free: 104.2 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.148e-06/0.6868, allocations: 4 kB / 0.9007 GB, free: 104.2 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.099e-05/0.6868, allocations: 0 / 0.9007 GB, free: 104.2 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.6868, allocations: 4 kB / 0.9007 GB, free: 104.2 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6868, allocations: 0 / 0.9007 GB, free: 104.2 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006093/0.6874, allocations: 0.5728 MB / 0.9013 GB, free: 103.6 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.639e-05/0.6875, allocations: 132.5 kB / 0.9014 GB, free: 103.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.25e-05/0.6876, allocations: 0 / 0.9014 GB, free: 103.4 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.6878, allocations: 23.83 kB / 0.9015 GB, free: 103.4 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.6879, allocations: 23.95 kB / 0.9015 GB, free: 103.4 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.623e-05/0.6879, allocations: 8 kB / 0.9015 GB, free: 103.4 MB / 0.5419 GB Notification: Performance of sort global known variables: time 0.0002528/0.6882, allocations: 299.2 kB / 0.9018 GB, free: 103.1 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0004209/0.6886, allocations: 139.5 kB / 0.9019 GB, free: 103 MB / 0.5419 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.0004107/0.689, allocations: 270.4 kB / 0.9022 GB, free: 102.7 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 0.0003665/0.6894, allocations: 276.4 kB / 0.9024 GB, free: 102.4 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.6894, allocations: 0 / 0.9024 GB, free: 102.4 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.6896, allocations: 155.7 kB / 0.9026 GB, free: 102.3 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.6901, allocations: 78.31 kB / 0.9026 GB, free: 102.2 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.6915, allocations: 0.893 MB / 0.9035 GB, free: 101.3 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.6919, allocations: 0.9245 MB / 0.9044 GB, free: 100.3 MB / 0.5419 GB Notification: Performance of SimCode: time 3.21e-07/0.6919, allocations: 0 / 0.9044 GB, free: 100.3 MB / 0.5419 GB Notification: Performance of Templates: time 0.009438/0.7014, allocations: 5.33 MB / 0.9096 GB, free: 95.1 MB / 0.5419 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)