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.001309/0.001309, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.001478/0.001478, allocations: 177.3 kB / 15.94 MB, free: 228 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.892/1.892, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.1/1.1, allocations: 132.2 MB / 423.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005328/0.0005329, allocations: 11.98 kB / 0.5033 GB, free: 4.176 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5707/0.5713, allocations: 81.57 MB / 0.583 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004821/0.5762, allocations: 3.261 MB / 0.5862 GB, free: 1.719 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003889/0.5801, allocations: 2.192 MB / 0.5883 GB, free: 144 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003855/0.5805, allocations: 9 kB / 0.5883 GB, free: 144 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001702/0.5822, allocations: 484.7 kB / 0.5888 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006996/0.5829, allocations: 245.7 kB / 0.589 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.5832, allocations: 78.89 kB / 0.5891 GB, free: 15.69 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009449/0.5842, allocations: 0.5659 MB / 0.5897 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005319/0.5847, allocations: 242.6 kB / 0.5899 GB, free: 15.27 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.5852, allocations: 244.2 kB / 0.5901 GB, free: 15.17 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/0.5857, allocations: 261.8 kB / 0.5904 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.902e-05/0.5858, allocations: 34.5 kB / 0.5904 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.5859, allocations: 34.75 kB / 0.5904 GB, free: 15.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.5861, allocations: 124.6 kB / 0.5906 GB, free: 14.98 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001871/0.5863, allocations: 161.1 kB / 0.5907 GB, free: 14.88 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001215/0.5875, allocations: 0.7874 MB / 0.5915 GB, free: 14.72 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.5875, allocations: 0 / 0.5915 GB, free: 14.72 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5875, allocations: 0 / 0.5915 GB, free: 14.72 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.5876, allocations: 3.938 kB / 0.5915 GB, free: 14.72 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.001719/0.5893, allocations: 0.8443 MB / 0.5923 GB, free: 14.1 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5893, allocations: 9.688 kB / 0.5923 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001389/0.5895, allocations: 89.14 kB / 0.5924 GB, free: 14.03 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001612/0.5897, allocations: 76.48 kB / 0.5925 GB, free: 13.99 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008121/0.5905, allocations: 439.5 kB / 0.5929 GB, free: 13.64 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.387e-05/0.5906, allocations: 40.34 kB / 0.5929 GB, free: 13.62 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001044/0.5907, allocations: 48.59 kB / 0.593 GB, free: 13.61 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.5918, allocations: 422.5 kB / 0.5934 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.718e-05/0.5919, allocations: 8.641 kB / 0.5934 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.69e-05/0.592, allocations: 16.28 kB / 0.5934 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.592, allocations: 11.91 kB / 0.5934 GB, free: 13.4 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.5931, allocations: 374.6 kB / 0.5938 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003264/0.5964, allocations: 1.537 MB / 0.5953 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.5972, allocations: 344 kB / 0.5956 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.225e-05/0.5973, allocations: 7.953 kB / 0.5956 GB, free: 12.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.5973, allocations: 38.05 kB / 0.5957 GB, free: 12.16 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 2.114e-06/0.5973, allocations: 0 / 0.5957 GB, free: 12.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.001416/0.5988, allocations: 0.5024 MB / 0.5961 GB, free: 11.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.5988, allocations: 56.47 kB / 0.5962 GB, free: 11.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008227/0.5997, allocations: 487.4 kB / 0.5967 GB, free: 11.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/0.5997, allocations: 31.17 kB / 0.5967 GB, free: 11.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002851/0.6, allocations: 279.5 kB / 0.597 GB, free: 11.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.6002, allocations: 146.9 kB / 0.5971 GB, free: 11.29 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.144e-05/0.6002, allocations: 5.781 kB / 0.5971 GB, free: 11.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.6004, allocations: 364 kB / 0.5974 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/0.6008, allocations: 128.6 kB / 0.5976 GB, free: 10.87 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/0.6011, allocations: 124.2 kB / 0.5977 GB, free: 10.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003901/0.6015, allocations: 145.5 kB / 0.5978 GB, free: 10.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.6016, allocations: 5.375 kB / 0.5978 GB, free: 10.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009232/0.6025, allocations: 403 kB / 0.5982 GB, free: 10.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.6025, allocations: 9.297 kB / 0.5982 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.6026, allocations: 4 kB / 0.5982 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.6026, allocations: 6.312 kB / 0.5982 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007381/0.6033, allocations: 129.7 kB / 0.5984 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.6033, allocations: 2.25 kB / 0.5984 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003995/0.6038, allocations: 51.53 kB / 0.5984 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.312e-05/0.6038, allocations: 15.62 kB / 0.5984 GB, free: 10.45 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.0003237/0.6041, allocations: 194.6 kB / 0.5986 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.6042, allocations: 47.22 kB / 0.5987 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.6044, allocations: 71.84 kB / 0.5987 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.6044, allocations: 3.969 kB / 0.5987 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.6045, allocations: 3.938 kB / 0.5987 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.6045, allocations: 3.984 kB / 0.5987 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009318/0.6054, allocations: 0.5708 MB / 0.5993 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.6054, allocations: 0.9375 kB / 0.5993 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000754/0.6062, allocations: 137.7 kB / 0.5994 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.6062, allocations: 2.906 kB / 0.5994 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/0.6062, allocations: 5.25 kB / 0.5994 GB, free: 9.684 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.6063, allocations: 5.547 kB / 0.5994 GB, free: 9.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.6063, allocations: 1.094 kB / 0.5994 GB, free: 9.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.6077, allocations: 0.6638 MB / 0.6001 GB, free: 9.277 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.6079, allocations: 135.2 kB / 0.6002 GB, free: 9.141 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.92e-05/0.608, allocations: 9.875 kB / 0.6002 GB, free: 9.133 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.6084, allocations: 28.83 kB / 0.6003 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.09e-05/0.6085, allocations: 26.27 kB / 0.6003 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.6085, allocations: 7.688 kB / 0.6003 GB, free: 9.102 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005742/0.6091, allocations: 351.5 kB / 0.6006 GB, free: 8.891 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6091, allocations: 0 / 0.6006 GB, free: 8.891 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0006199/0.6097, allocations: 144.5 kB / 0.6008 GB, free: 8.859 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.001717/0.6114, allocations: 1.22 MB / 0.602 GB, free: 7.918 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0008231/0.6123, allocations: 323.5 kB / 0.6023 GB, free: 7.785 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6123, allocations: 0 / 0.6023 GB, free: 7.785 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004299/0.6127, allocations: 187.8 kB / 0.6024 GB, free: 7.703 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007858/0.6135, allocations: 114.1 kB / 0.6025 GB, free: 7.641 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00709/0.6206, allocations: 3.286 MB / 0.6058 GB, free: 5.566 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/0.6212, allocations: 0.88 MB / 0.6066 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000327/0.6216, allocations: 54.67 kB / 0.6067 GB, free: 4.758 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.6219, allocations: 197.1 kB / 0.6069 GB, free: 4.594 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.6219, allocations: 0 / 0.6069 GB, free: 4.594 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04278/0.6647, allocations: 10.3 MB / 0.6169 GB, free: 13.75 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003096/0.6651, allocations: 234.2 kB / 0.6171 GB, free: 13.52 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.877/3.542, allocations: 3.375 kB / 0.6171 GB, free: 13.52 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: