Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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/BuildingSystems 2.0.0-master/package.mo): time 0.7607/0.7607, allocations: 141.8 MB / 149.1 MB, free: 4.465 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 186.3 kB / 181.9 MB, free: 132 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 221.3 MB / 436 MB, free: 9.262 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.0009945/0.0009947, allocations: 99.2 kB / 0.507 GB, free: 24.1 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00184/0.00184, allocations: 281.6 kB / 0.5884 GB, free: 12.3 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1998/0.2017, allocations: 89.69 MB / 0.676 GB, free: 2.523 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4544/0.6561, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1305/0.7866, allocations: 116.4 MB / 0.8705 GB, free: 12.38 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.787, allocations: 108.9 kB / 0.8706 GB, free: 12.27 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.05063/0.8377, allocations: 18.26 MB / 0.8884 GB, free: 9.965 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.8377, allocations: 12 kB / 0.8885 GB, free: 9.953 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.8379, allocations: 44.84 kB / 0.8885 GB, free: 9.91 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006182/0.8385, allocations: 359.6 kB / 0.8888 GB, free: 9.52 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.8385, allocations: 8 kB / 0.8888 GB, free: 9.512 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.8386, allocations: 16 kB / 0.8889 GB, free: 9.496 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002716/0.8389, allocations: 120.9 kB / 0.889 GB, free: 9.379 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002862/0.8392, allocations: 154.4 kB / 0.8891 GB, free: 9.223 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.8392, allocations: 7.984 kB / 0.8891 GB, free: 9.215 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.8392, allocations: 0 / 0.8891 GB, free: 9.215 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.8392, allocations: 4.219 kB / 0.8891 GB, free: 9.211 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.8405, allocations: 0.8229 MB / 0.8899 GB, free: 8.328 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.8408, allocations: 109.8 kB / 0.89 GB, free: 8.215 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.8409, allocations: 88.92 kB / 0.8901 GB, free: 8.125 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.8409, allocations: 4 kB / 0.8901 GB, free: 8.121 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.841, allocations: 38.55 kB / 0.8902 GB, free: 8.074 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=18): time 3.116e-06/0.841, allocations: 3.984 kB / 0.8902 GB, free: 8.07 MB / 0.5575 GB Notification: Performance of matching and sorting (n=18): time 0.0003572/0.8414, allocations: 158.5 kB / 0.8903 GB, free: 7.91 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.8414, allocations: 55.41 kB / 0.8904 GB, free: 7.844 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.8418, allocations: 330.1 kB / 0.8907 GB, free: 7.512 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.8419, allocations: 25.7 kB / 0.8907 GB, free: 7.48 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 9.179e-05/0.842, allocations: 156.2 kB / 0.8909 GB, free: 7.324 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 6.681e-05/0.842, allocations: 59.11 kB / 0.8909 GB, free: 7.266 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-06/0.842, allocations: 0 / 0.8909 GB, free: 7.266 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.8422, allocations: 346.8 kB / 0.8913 GB, free: 6.918 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.953e-05/0.8423, allocations: 40 kB / 0.8913 GB, free: 6.879 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.038e-05/0.8424, allocations: 40 kB / 0.8913 GB, free: 6.84 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.78e-05/0.8425, allocations: 52.28 kB / 0.8914 GB, free: 6.789 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8425, allocations: 0 / 0.8914 GB, free: 6.789 MB / 0.5575 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002652/0.8427, allocations: 167.9 kB / 0.8915 GB, free: 6.621 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.8428, allocations: 6.812 kB / 0.8915 GB, free: 6.617 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.8428, allocations: 4 kB / 0.8916 GB, free: 6.613 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.8428, allocations: 4 kB / 0.8916 GB, free: 6.609 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.8431, allocations: 59.91 kB / 0.8916 GB, free: 6.551 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.8431, allocations: 0 / 0.8916 GB, free: 6.551 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.8433, allocations: 27.83 kB / 0.8916 GB, free: 6.523 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.8433, allocations: 4 kB / 0.8916 GB, free: 6.52 MB / 0.5575 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 (20): * Single equations (assignments): 20 * 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.919e-05/0.8434, allocations: 104.9 kB / 0.8917 GB, free: 6.41 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.8435, allocations: 35.53 kB / 0.8918 GB, free: 6.375 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.425e-05/0.8436, allocations: 39.17 kB / 0.8918 GB, free: 6.332 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.8436, allocations: 0 / 0.8918 GB, free: 6.332 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.8436, allocations: 0 / 0.8918 GB, free: 6.332 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.8436, allocations: 0 / 0.8918 GB, free: 6.332 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003842/0.844, allocations: 337.8 kB / 0.8921 GB, free: 5.965 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.844, allocations: 0 / 0.8921 GB, free: 5.965 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003016/0.8443, allocations: 63.81 kB / 0.8922 GB, free: 5.902 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.8443, allocations: 4 kB / 0.8922 GB, free: 5.898 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.8444, allocations: 0 / 0.8922 GB, free: 5.898 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.8444, allocations: 0 / 0.8922 GB, free: 5.898 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.8444, allocations: 0 / 0.8922 GB, free: 5.898 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004076/0.8448, allocations: 330.9 kB / 0.8925 GB, free: 5.559 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005879/0.8454, allocations: 0.7595 MB / 0.8933 GB, free: 4.781 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.8455, allocations: 117 kB / 0.8934 GB, free: 4.648 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.8456, allocations: 3.906 kB / 0.8934 GB, free: 4.645 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.8458, allocations: 16.11 kB / 0.8934 GB, free: 4.629 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.8458, allocations: 11.98 kB / 0.8934 GB, free: 4.617 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.8458, allocations: 4 kB / 0.8934 GB, free: 4.613 MB / 0.5575 GB Notification: Performance of sort global known variables: time 0.0002906/0.8461, allocations: 264.6 kB / 0.8937 GB, free: 4.355 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.001052/0.8472, allocations: 79.75 kB / 0.8937 GB, free: 4.277 MB / 0.5575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.0004027/0.8476, allocations: 267.8 kB / 0.894 GB, free: 4.012 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0002237/0.8478, allocations: 111.9 kB / 0.8941 GB, free: 3.902 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.8478, allocations: 0 / 0.8941 GB, free: 3.902 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 9.354e-05/0.8479, allocations: 67.92 kB / 0.8942 GB, free: 3.836 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004751/0.8484, allocations: 67.83 kB / 0.8942 GB, free: 3.773 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.8496, allocations: 0.5187 MB / 0.8947 GB, free: 3.23 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004471/0.85, allocations: 0.8368 MB / 0.8955 GB, free: 2.371 MB / 0.5575 GB Notification: Performance of SimCode: time 2.6e-07/0.85, allocations: 0 / 0.8955 GB, free: 2.371 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)