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.000961/0.0009608, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.0009845/0.0009845, allocations: 187.3 kB / 16.25 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 222.9 MB / 239.9 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6964/0.6964, allocations: 132.2 MB / 422.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 59.41 kB / 0.5014 GB, free: 9.008 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1318, allocations: 80.21 MB / 0.5797 GB, free: 9.02 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004771/0.1366, allocations: 4.157 MB / 0.5838 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002984/0.1396, allocations: 2.387 MB / 0.5861 GB, free: 2.441 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003966/0.14, allocations: 12 kB / 0.5861 GB, free: 2.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001491/0.1415, allocations: 0.494 MB / 0.5866 GB, free: 1.934 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005557/0.1421, allocations: 214.5 kB / 0.5868 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.1423, allocations: 115.9 kB / 0.5869 GB, free: 1.609 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007654/0.1431, allocations: 0.8098 MB / 0.5877 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000379/0.1435, allocations: 326.5 kB / 0.588 GB, free: 480 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.1437, allocations: 287 kB / 0.5883 GB, free: 192 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.144, allocations: 342.5 kB / 0.5886 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.032e-05/0.1441, allocations: 76 kB / 0.5887 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.341e-05/0.1442, allocations: 76 kB / 0.5888 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001322/0.1443, allocations: 171.4 kB / 0.5889 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.1446, allocations: 378.3 kB / 0.5893 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006575/0.1453, allocations: 0.9889 MB / 0.5902 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1453, allocations: 3.938 kB / 0.5903 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1453, allocations: 0 / 0.5903 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.096e-06/0.1453, allocations: 3.938 kB / 0.5903 GB, free: 14.16 MB / 0.4981 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.001194/0.1465, allocations: 0.954 MB / 0.5912 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.68e-05/0.1465, allocations: 12.03 kB / 0.5912 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.304e-05/0.1466, allocations: 90.7 kB / 0.5913 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.12e-05/0.1467, allocations: 72.09 kB / 0.5914 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004849/0.1472, allocations: 457.6 kB / 0.5918 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.1473, allocations: 37.38 kB / 0.5918 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.102e-05/0.1473, allocations: 47.94 kB / 0.5919 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006844/0.148, allocations: 426.5 kB / 0.5923 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.148, allocations: 0 / 0.5923 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.1481, allocations: 24 kB / 0.5923 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1481, allocations: 12 kB / 0.5923 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000632/0.1487, allocations: 367.8 kB / 0.5927 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.1506, allocations: 1.524 MB / 0.5942 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004908/0.1511, allocations: 339.6 kB / 0.5945 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004373/0.1515, allocations: 329.1 kB / 0.5948 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.1516, allocations: 8.672 kB / 0.5948 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.1516, allocations: 38.56 kB / 0.5948 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.483e-06/0.1516, allocations: 4 kB / 0.5948 GB, free: 9.281 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.0009471/0.1526, allocations: 497.5 kB / 0.5953 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/0.1526, allocations: 59.19 kB / 0.5954 GB, free: 8.719 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004808/0.1531, allocations: 485.9 kB / 0.5958 GB, free: 8.242 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.1531, allocations: 33.7 kB / 0.5959 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.1533, allocations: 276.3 kB / 0.5961 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.1534, allocations: 145.8 kB / 0.5963 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.1535, allocations: 70.06 kB / 0.5963 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1536, allocations: 358.8 kB / 0.5967 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002227/0.1539, allocations: 116.7 kB / 0.5968 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.1541, allocations: 134.3 kB / 0.5969 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.1546, allocations: 299.1 kB / 0.5972 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1546, allocations: 7.938 kB / 0.5972 GB, free: 6.801 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005792/0.1552, allocations: 396.2 kB / 0.5976 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.1552, allocations: 4 kB / 0.5976 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1552, allocations: 0 / 0.5976 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.1552, allocations: 4 kB / 0.5976 GB, free: 6.398 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004776/0.1557, allocations: 123.9 kB / 0.5977 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1557, allocations: 7.922 kB / 0.5977 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.156, allocations: 47.67 kB / 0.5978 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.156, allocations: 12 kB / 0.5978 GB, free: 6.211 MB / 0.4981 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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001972/0.1562, allocations: 199 kB / 0.598 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/0.1563, allocations: 51.34 kB / 0.598 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.794e-05/0.1564, allocations: 65.09 kB / 0.5981 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.1564, allocations: 7.938 kB / 0.5981 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1564, allocations: 0 / 0.5981 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1564, allocations: 0 / 0.5981 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005914/0.157, allocations: 0.579 MB / 0.5987 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.157, allocations: 3.938 kB / 0.5987 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004859/0.1575, allocations: 123.9 kB / 0.5988 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.1575, allocations: 4 kB / 0.5988 GB, free: 5.125 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.1575, allocations: 8 kB / 0.5988 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.1576, allocations: 11.98 kB / 0.5988 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1576, allocations: 0 / 0.5988 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008699/0.1584, allocations: 0.643 MB / 0.5994 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.1586, allocations: 140.4 kB / 0.5996 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/0.1586, allocations: 8 kB / 0.5996 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002311/0.1589, allocations: 23.98 kB / 0.5996 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.1589, allocations: 27.95 kB / 0.5996 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.31e-05/0.159, allocations: 8 kB / 0.5996 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003347/0.1593, allocations: 351.1 kB / 0.6 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1593, allocations: 0 / 0.6 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003599/0.1597, allocations: 139.6 kB / 0.6001 GB, free: 3.742 MB / 0.4981 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 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001124/0.1608, allocations: 1.207 MB / 0.6013 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006641/0.1615, allocations: 351.6 kB / 0.6016 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1615, allocations: 4 kB / 0.6016 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000261/0.1618, allocations: 183.5 kB / 0.6018 GB, free: 1.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.1624, allocations: 126.8 kB / 0.6019 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1985/0.3609, allocations: 5.205 MB / 0.607 GB, free: 54.76 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.3612, allocations: 0.867 MB / 0.6078 GB, free: 54.06 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002056/0.3614, allocations: 53.73 kB / 0.6079 GB, free: 54.05 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.3616, allocations: 189.2 kB / 0.6081 GB, free: 53.91 MB / 0.4981 GB Notification: Performance of SimCode: time 6.22e-07/0.3616, allocations: 0.875 kB / 0.6081 GB, free: 53.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6527/1.014, allocations: 11.06 MB / 0.6189 GB, free: 53.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/1.015, allocations: 272.9 kB / 0.6191 GB, free: 52.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.507/3.522, allocations: 5.266 kB / 0.6191 GB, free: 52.94 MB / 0.4981 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/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)