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/ModelicaServices 4.0.0+maint.om/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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007878/0.0007878, allocations: 94.66 kB / 15.06 MB, free: 1.086 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008169/0.0008171, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 223.3 MB / 240 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7396/0.7396, allocations: 132.3 MB / 423.4 MB, free: 2.023 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003296/0.0003298, allocations: 12 kB / 0.5035 GB, free: 4.082 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.43, allocations: 81.58 MB / 0.5832 GB, free: 3.887 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003853/0.4339, allocations: 3.579 MB / 0.5867 GB, free: 1.305 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002661/0.4365, allocations: 2.205 MB / 0.5888 GB, free: 15.7 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.4368, allocations: 9.094 kB / 0.5888 GB, free: 15.7 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.438, allocations: 460.2 kB / 0.5893 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004095/0.4384, allocations: 215.6 kB / 0.5895 GB, free: 15.36 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.4386, allocations: 81.97 kB / 0.5896 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009008/0.4396, allocations: 0.7534 MB / 0.5903 GB, free: 14.92 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.44, allocations: 243 kB / 0.5905 GB, free: 14.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00032/0.4403, allocations: 242.4 kB / 0.5908 GB, free: 14.7 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003756/0.4407, allocations: 275.2 kB / 0.591 GB, free: 14.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.755e-05/0.4408, allocations: 34.41 kB / 0.5911 GB, free: 14.58 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001083/0.4409, allocations: 34.97 kB / 0.5911 GB, free: 14.58 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001589/0.4411, allocations: 124.4 kB / 0.5912 GB, free: 14.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.4412, allocations: 164.7 kB / 0.5914 GB, free: 14.41 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000976/0.4422, allocations: 0.7869 MB / 0.5921 GB, free: 14.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.4422, allocations: 1.562 kB / 0.5921 GB, free: 14.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4422, allocations: 0 / 0.5921 GB, free: 14.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.075e-05/0.4423, allocations: 4 kB / 0.5921 GB, free: 14.25 MB / 446.1 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.001441/0.4437, allocations: 0.8445 MB / 0.593 GB, free: 13.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.4438, allocations: 8.656 kB / 0.593 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001188/0.4439, allocations: 89.86 kB / 0.5931 GB, free: 13.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.444, allocations: 76.64 kB / 0.5931 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006533/0.4447, allocations: 435.2 kB / 0.5936 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.454e-05/0.4447, allocations: 36.47 kB / 0.5936 GB, free: 13.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.641e-05/0.4448, allocations: 48.19 kB / 0.5936 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008453/0.4457, allocations: 434.7 kB / 0.5941 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.4457, allocations: 7.906 kB / 0.5941 GB, free: 12.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.4458, allocations: 20.77 kB / 0.5941 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.4458, allocations: 11.69 kB / 0.5941 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007419/0.4465, allocations: 375.5 kB / 0.5944 GB, free: 12.8 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.4488, allocations: 1.545 MB / 0.596 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005377/0.4493, allocations: 344 kB / 0.5963 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000495/0.4498, allocations: 353.1 kB / 0.5966 GB, free: 11.61 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.4499, allocations: 7.656 kB / 0.5966 GB, free: 11.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.4499, allocations: 37.88 kB / 0.5967 GB, free: 11.56 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 1.583e-06/0.4499, allocations: 0 / 0.5967 GB, free: 11.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009885/0.4509, allocations: 0.5052 MB / 0.5972 GB, free: 11.34 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.4509, allocations: 58.84 kB / 0.5972 GB, free: 11.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000648/0.4516, allocations: 490.7 kB / 0.5977 GB, free: 11.02 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.4516, allocations: 31.3 kB / 0.5977 GB, free: 10.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.4519, allocations: 274.9 kB / 0.598 GB, free: 10.74 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.452, allocations: 148.1 kB / 0.5981 GB, free: 10.61 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.704e-05/0.452, allocations: 5.031 kB / 0.5981 GB, free: 10.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4522, allocations: 362.8 kB / 0.5985 GB, free: 10.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002467/0.4525, allocations: 128.6 kB / 0.5986 GB, free: 10.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.4527, allocations: 129.6 kB / 0.5987 GB, free: 10.13 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/0.453, allocations: 145.9 kB / 0.5989 GB, free: 10.05 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.453, allocations: 1.469 kB / 0.5989 GB, free: 10.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006459/0.4537, allocations: 403.5 kB / 0.5992 GB, free: 9.852 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4537, allocations: 4.969 kB / 0.5992 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4537, allocations: 0 / 0.5992 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.4537, allocations: 1.375 kB / 0.5992 GB, free: 9.852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/0.4542, allocations: 139 kB / 0.5994 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.4542, allocations: 2.188 kB / 0.5994 GB, free: 9.812 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.4545, allocations: 54.5 kB / 0.5994 GB, free: 9.777 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.142e-05/0.4545, allocations: 12.41 kB / 0.5994 GB, free: 9.773 MB / 446.1 MB 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 () * Number of clocked 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.0002328/0.4548, allocations: 198 kB / 0.5996 GB, free: 9.605 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.212e-05/0.4549, allocations: 51.89 kB / 0.5997 GB, free: 9.578 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.455, allocations: 58.53 kB / 0.5997 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.455, allocations: 4.219 kB / 0.5997 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.455, allocations: 0.9688 kB / 0.5997 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.455, allocations: 0 / 0.5997 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007032/0.4557, allocations: 0.5744 MB / 0.6003 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4557, allocations: 5.281 kB / 0.6003 GB, free: 9.051 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005273/0.4563, allocations: 125.9 kB / 0.6004 GB, free: 9.023 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.261e-06/0.4563, allocations: 5.266 kB / 0.6004 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.4563, allocations: 10.72 kB / 0.6004 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.4563, allocations: 1.625 kB / 0.6004 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4563, allocations: 0 / 0.6004 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.4574, allocations: 0.6683 MB / 0.6011 GB, free: 8.605 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.4576, allocations: 136 kB / 0.6012 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.302e-05/0.4576, allocations: 14.64 kB / 0.6012 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002234/0.4579, allocations: 35.19 kB / 0.6013 GB, free: 8.434 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.205e-05/0.4579, allocations: 22.62 kB / 0.6013 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.458, allocations: 7.844 kB / 0.6013 GB, free: 8.422 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004107/0.4584, allocations: 351.2 kB / 0.6016 GB, free: 8.211 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4584, allocations: 0 / 0.6016 GB, free: 8.211 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004355/0.4588, allocations: 136.8 kB / 0.6018 GB, free: 8.188 MB / 446.1 MB 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 () * Number of clocked 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.001382/0.4602, allocations: 1.221 MB / 0.603 GB, free: 7.246 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005659/0.4608, allocations: 327.4 kB / 0.6033 GB, free: 7.109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4608, allocations: 0 / 0.6033 GB, free: 7.109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000316/0.4611, allocations: 191.5 kB / 0.6035 GB, free: 7.023 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006775/0.4618, allocations: 124 kB / 0.6036 GB, free: 6.953 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005672/0.4675, allocations: 3.321 MB / 0.6068 GB, free: 4.867 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005543/0.4681, allocations: 0.8628 MB / 0.6077 GB, free: 4.098 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002684/0.4684, allocations: 57.12 kB / 0.6077 GB, free: 4.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.4687, allocations: 187.3 kB / 0.6079 GB, free: 3.914 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4687, allocations: 1 kB / 0.6079 GB, free: 3.914 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02215/0.4908, allocations: 10.33 MB / 0.618 GB, free: 12.71 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.491, allocations: 238.5 kB / 0.6182 GB, free: 12.48 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.399, allocations: 4.062 kB / 0.6182 GB, free: 12.47 MB / 462.1 MB (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) Environment - environmentSimulation: