Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IBPSA_latest_IBPSA_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/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 192 kB / 7.806 MB, free: 2.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4862/0.4862, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 221.4 MB / 342.8 MB, free: 5.098 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009286/0.000929, allocations: 85.78 kB / 415.5 MB, free: 6.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1856/0.1865, allocations: 78.5 MB / 494 MB, free: 7.848 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4455/0.6321, allocations: 72.3 MB / 0.553 GB, free: 73.3 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1357/0.7678, allocations: 111.4 MB / 0.6618 GB, free: 14.56 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003574/0.7683, allocations: 103.9 kB / 0.6619 GB, free: 14.46 MB / 490.7 MB 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.06272/0.831, allocations: 22.47 MB / 0.6838 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.8311, allocations: 8 kB / 0.6839 GB, free: 8.031 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.8313, allocations: 71.16 kB / 0.6839 GB, free: 7.961 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006946/0.832, allocations: 440.8 kB / 0.6843 GB, free: 7.492 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.746e-05/0.832, allocations: 16 kB / 0.6844 GB, free: 7.477 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.53e-05/0.8321, allocations: 31.94 kB / 0.6844 GB, free: 7.445 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006025/0.8327, allocations: 302 kB / 0.6847 GB, free: 7.148 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006389/0.8333, allocations: 324.6 kB / 0.685 GB, free: 6.824 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.8334, allocations: 7.906 kB / 0.685 GB, free: 6.816 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.8334, allocations: 0 / 0.685 GB, free: 6.816 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.8334, allocations: 15.98 kB / 0.685 GB, free: 6.801 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00225/0.8357, allocations: 1.456 MB / 0.6864 GB, free: 5.289 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004345/0.8361, allocations: 242.2 kB / 0.6867 GB, free: 5.043 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.8366, allocations: 280.5 kB / 0.6869 GB, free: 4.766 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.469e-05/0.8366, allocations: 8.766 kB / 0.6869 GB, free: 4.758 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.8367, allocations: 45.92 kB / 0.687 GB, free: 4.707 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=42): time 3.616e-06/0.8367, allocations: 0 / 0.687 GB, free: 4.707 MB / 0.4948 GB Notification: Performance of matching and sorting (n=42): time 0.0006536/0.8374, allocations: 305.3 kB / 0.6873 GB, free: 4.402 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.8374, allocations: 59.19 kB / 0.6873 GB, free: 4.332 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005815/0.838, allocations: 373.2 kB / 0.6877 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.838, allocations: 25.7 kB / 0.6877 GB, free: 3.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.8382, allocations: 220 kB / 0.6879 GB, free: 3.711 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.8384, allocations: 141.9 kB / 0.6881 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.8384, allocations: 0 / 0.6881 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001711/0.8385, allocations: 358.8 kB / 0.6884 GB, free: 3.211 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.8388, allocations: 100.8 kB / 0.6885 GB, free: 3.109 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.839, allocations: 100.9 kB / 0.6886 GB, free: 3.012 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.8392, allocations: 113.8 kB / 0.6887 GB, free: 2.902 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.8392, allocations: 4 kB / 0.6887 GB, free: 2.898 MB / 0.4948 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005456/0.8397, allocations: 333.1 kB / 0.689 GB, free: 2.566 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.8398, allocations: 4 kB / 0.689 GB, free: 2.562 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.8398, allocations: 4 kB / 0.689 GB, free: 2.559 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/0.8398, allocations: 11.16 kB / 0.689 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/0.8405, allocations: 123.9 kB / 0.6892 GB, free: 2.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.8405, allocations: 4 kB / 0.6892 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.8408, allocations: 47.66 kB / 0.6892 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/0.8409, allocations: 8 kB / 0.6892 GB, free: 2.371 MB / 0.4948 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.258e-05/0.841, allocations: 104.9 kB / 0.6893 GB, free: 2.262 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.935e-05/0.8411, allocations: 47.44 kB / 0.6894 GB, free: 2.215 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.8412, allocations: 60.64 kB / 0.6894 GB, free: 2.156 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.8412, allocations: 4 kB / 0.6894 GB, free: 2.152 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.8412, allocations: 0 / 0.6894 GB, free: 2.152 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.8412, allocations: 0 / 0.6894 GB, free: 2.152 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006492/0.8419, allocations: 0.4976 MB / 0.6899 GB, free: 1.617 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.8419, allocations: 0 / 0.6899 GB, free: 1.617 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006127/0.8425, allocations: 127.8 kB / 0.69 GB, free: 1.492 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.536e-06/0.8425, allocations: 11.91 kB / 0.69 GB, free: 1.48 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.8426, allocations: 3.938 kB / 0.69 GB, free: 1.477 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.8426, allocations: 4 kB / 0.69 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.8426, allocations: 0 / 0.69 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007854/0.8434, allocations: 0.5648 MB / 0.6906 GB, free: 0.8906 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001124/0.8445, allocations: 1.11 MB / 0.6917 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001535/0.8447, allocations: 140.3 kB / 0.6918 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.689e-05/0.8447, allocations: 0 / 0.6918 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002586/0.845, allocations: 15.98 kB / 0.6918 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.757e-05/0.8451, allocations: 23.95 kB / 0.6919 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.8451, allocations: 12 kB / 0.6919 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003365/0.8455, allocations: 295.2 kB / 0.6921 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001068/0.8465, allocations: 147.4 kB / 0.6923 GB, free: 15.12 MB / 0.5105 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.0004555/0.847, allocations: 254.8 kB / 0.6925 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0005199/0.8475, allocations: 287.9 kB / 0.6928 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.8475, allocations: 0 / 0.6928 GB, free: 14.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002321/0.8478, allocations: 151.9 kB / 0.6929 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005742/0.8484, allocations: 76.77 kB / 0.693 GB, free: 14.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.8505, allocations: 0.8819 MB / 0.6939 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006011/0.8511, allocations: 0.9364 MB / 0.6948 GB, free: 12.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.092e-06/0.8511, allocations: 1.219 kB / 0.6948 GB, free: 12.5 MB / 0.5105 GB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)