Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_IDEAS_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.003345/0.003345, allocations: 185.9 kB / 7.458 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6925/0.6925, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 221.3 MB / 395 MB, free: 10.13 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009941/0.000994, allocations: 97.69 kB / 477.8 MB, free: 10.74 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5016/0.5027, allocations: 88.48 MB / 0.553 GB, free: 89.2 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.7005, allocations: 82.3 MB / 0.6333 GB, free: 13.9 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6682/1.369, allocations: 121.2 MB / 0.7517 GB, free: 10.72 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004715/1.369, allocations: 106.4 kB / 0.7518 GB, free: 10.72 MB / 0.4948 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.09558/1.465, allocations: 22.45 MB / 0.7737 GB, free: 18.86 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/1.465, allocations: 8.281 kB / 0.7737 GB, free: 18.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/1.465, allocations: 75 kB / 0.7738 GB, free: 18.82 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006507/1.466, allocations: 437.1 kB / 0.7742 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/1.466, allocations: 15.69 kB / 0.7742 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.421e-05/1.466, allocations: 27.72 kB / 0.7742 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006363/1.466, allocations: 302.9 kB / 0.7745 GB, free: 18.52 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007119/1.467, allocations: 330.9 kB / 0.7749 GB, free: 18.44 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.286e-05/1.467, allocations: 4.562 kB / 0.7749 GB, free: 18.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.389e-05/1.467, allocations: 0 / 0.7749 GB, free: 18.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.404e-05/1.467, allocations: 12.12 kB / 0.7749 GB, free: 18.43 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002713/1.47, allocations: 1.456 MB / 0.7763 GB, free: 17.68 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/1.471, allocations: 251.4 kB / 0.7765 GB, free: 17.65 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005518/1.471, allocations: 285.4 kB / 0.7768 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/1.471, allocations: 3.812 kB / 0.7768 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/1.471, allocations: 35.34 kB / 0.7768 GB, free: 17.58 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=42): time 2.645e-06/1.471, allocations: 0 / 0.7768 GB, free: 17.58 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42): time 0.000772/1.472, allocations: 309.9 kB / 0.7771 GB, free: 17.51 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.388e-05/1.472, allocations: 55.25 kB / 0.7772 GB, free: 17.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006407/1.473, allocations: 371 kB / 0.7775 GB, free: 17.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.301e-05/1.473, allocations: 25.7 kB / 0.7776 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/1.473, allocations: 215 kB / 0.7778 GB, free: 17.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/1.473, allocations: 143.3 kB / 0.7779 GB, free: 17.01 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.379e-05/1.473, allocations: 0 / 0.7779 GB, free: 17.01 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002304/1.473, allocations: 359.2 kB / 0.7782 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/1.474, allocations: 97.16 kB / 0.7783 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002247/1.474, allocations: 103.5 kB / 0.7784 GB, free: 16.67 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002749/1.474, allocations: 119.2 kB / 0.7786 GB, free: 16.66 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.474, allocations: 0 / 0.7786 GB, free: 16.66 MB / 0.5105 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006509/1.475, allocations: 330.1 kB / 0.7789 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/1.475, allocations: 9.5 kB / 0.7789 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/1.475, allocations: 0 / 0.7789 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.121e-05/1.475, allocations: 1.719 kB / 0.7789 GB, free: 16.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006854/1.475, allocations: 134.8 kB / 0.779 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.518e-05/1.476, allocations: 11.89 kB / 0.779 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003881/1.476, allocations: 35.77 kB / 0.7791 GB, free: 16.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/1.476, allocations: 15.62 kB / 0.7791 GB, free: 16.48 MB / 0.5105 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 0.0001531/1.476, allocations: 112.8 kB / 0.7792 GB, free: 16.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.586e-05/1.476, allocations: 47.44 kB / 0.7792 GB, free: 16.31 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/1.476, allocations: 56.7 kB / 0.7793 GB, free: 16.28 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.886e-06/1.476, allocations: 4 kB / 0.7793 GB, free: 16.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.818e-05/1.476, allocations: 4 kB / 0.7793 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/1.476, allocations: 0 / 0.7793 GB, free: 16.27 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008245/1.477, allocations: 0.5037 MB / 0.7798 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.477, allocations: 0 / 0.7798 GB, free: 15.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000521/1.478, allocations: 131.8 kB / 0.7799 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/1.478, allocations: 3.984 kB / 0.7799 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/1.478, allocations: 0 / 0.7799 GB, free: 15.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/1.478, allocations: 7.906 kB / 0.7799 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/1.478, allocations: 0 / 0.7799 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006658/1.479, allocations: 0.5702 MB / 0.7805 GB, free: 15.31 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009997/1.48, allocations: 1.109 MB / 0.7816 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/1.48, allocations: 135.2 kB / 0.7817 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.521e-05/1.48, allocations: 0 / 0.7817 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/1.48, allocations: 23.88 kB / 0.7817 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/1.48, allocations: 23.22 kB / 0.7817 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/1.48, allocations: 11.5 kB / 0.7817 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003189/1.48, allocations: 292.5 kB / 0.782 GB, free: 14.01 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001093/1.482, allocations: 141.5 kB / 0.7822 GB, free: 13.88 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.0004889/1.482, allocations: 258.6 kB / 0.7824 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004893/1.483, allocations: 287.8 kB / 0.7827 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/1.483, allocations: 3.938 kB / 0.7827 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002124/1.483, allocations: 158.2 kB / 0.7828 GB, free: 13.35 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/1.483, allocations: 78.06 kB / 0.7829 GB, free: 13.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/1.485, allocations: 0.8863 MB / 0.7838 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008603/1.486, allocations: 0.935 MB / 0.7847 GB, free: 11.53 MB / 0.5105 GB Notification: Performance of SimCode: time 4.61e-07/1.486, allocations: 0 / 0.7847 GB, free: 11.53 MB / 0.5105 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)