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.001097/0.001097, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.304/1.304, allocations: 222.9 MB / 240.2 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.7203/0.7203, allocations: 132.2 MB / 422.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 67.45 kB / 0.5019 GB, free: 3.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3579, allocations: 80.2 MB / 0.5802 GB, free: 4.602 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004704/0.3627, allocations: 4.143 MB / 0.5843 GB, free: 1.66 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002842/0.3656, allocations: 2.417 MB / 0.5866 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00022/0.3658, allocations: 9.469 kB / 0.5866 GB, free: 15.89 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.3672, allocations: 0.5424 MB / 0.5872 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004294/0.3677, allocations: 246.8 kB / 0.5874 GB, free: 15.47 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.3679, allocations: 138 kB / 0.5875 GB, free: 15.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007908/0.3687, allocations: 0.8026 MB / 0.5883 GB, free: 14.96 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004561/0.3692, allocations: 339.4 kB / 0.5886 GB, free: 14.79 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003472/0.3695, allocations: 282.4 kB / 0.5889 GB, free: 14.65 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.3699, allocations: 332.8 kB / 0.5892 GB, free: 14.48 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001079/0.37, allocations: 74.81 kB / 0.5893 GB, free: 14.48 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.3702, allocations: 74.34 kB / 0.5894 GB, free: 14.48 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.3704, allocations: 168.2 kB / 0.5895 GB, free: 14.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003618/0.3707, allocations: 384.6 kB / 0.5899 GB, free: 14.14 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001/0.3717, allocations: 0.9831 MB / 0.5909 GB, free: 13.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3717, allocations: 4.562 kB / 0.5909 GB, free: 13.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.3718, allocations: 0.7969 kB / 0.5909 GB, free: 13.78 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.3718, allocations: 4.531 kB / 0.5909 GB, free: 13.78 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.001426/0.3732, allocations: 0.9558 MB / 0.5918 GB, free: 13.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3733, allocations: 9.156 kB / 0.5918 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.941e-05/0.3734, allocations: 86.25 kB / 0.5919 GB, free: 13.01 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.3735, allocations: 72.78 kB / 0.592 GB, free: 12.97 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005898/0.3741, allocations: 461 kB / 0.5924 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.847e-05/0.3741, allocations: 35.72 kB / 0.5924 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/0.3742, allocations: 53.14 kB / 0.5925 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007595/0.375, allocations: 424.6 kB / 0.5929 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.375, allocations: 1.375 kB / 0.5929 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.375, allocations: 20.16 kB / 0.5929 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.375, allocations: 11.97 kB / 0.5929 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007383/0.3758, allocations: 368 kB / 0.5933 GB, free: 12.24 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.3779, allocations: 1.542 MB / 0.5948 GB, free: 11.32 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005304/0.3785, allocations: 343.1 kB / 0.5951 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004518/0.3789, allocations: 326.9 kB / 0.5954 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.379, allocations: 5.375 kB / 0.5954 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.212e-05/0.379, allocations: 36.38 kB / 0.5955 GB, free: 10.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.379, allocations: 0 / 0.5955 GB, free: 10.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009292/0.3799, allocations: 0.4963 MB / 0.5959 GB, free: 10.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.38, allocations: 56.75 kB / 0.596 GB, free: 10.68 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005271/0.3805, allocations: 486 kB / 0.5965 GB, free: 10.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.3805, allocations: 30.98 kB / 0.5965 GB, free: 10.37 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.3807, allocations: 278.5 kB / 0.5968 GB, free: 10.12 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.3808, allocations: 143.1 kB / 0.5969 GB, free: 9.996 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.3809, allocations: 64.16 kB / 0.597 GB, free: 9.945 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.3811, allocations: 363.4 kB / 0.5973 GB, free: 9.594 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.3813, allocations: 121.7 kB / 0.5974 GB, free: 9.535 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.3816, allocations: 131.1 kB / 0.5975 GB, free: 9.473 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005009/0.3821, allocations: 290.6 kB / 0.5978 GB, free: 9.324 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3821, allocations: 5.5 kB / 0.5978 GB, free: 9.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006356/0.3827, allocations: 396.4 kB / 0.5982 GB, free: 9.113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.3827, allocations: 9.094 kB / 0.5982 GB, free: 9.109 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.3828, allocations: 5.141 kB / 0.5982 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3828, allocations: 1.469 kB / 0.5982 GB, free: 9.105 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004811/0.3833, allocations: 124.2 kB / 0.5983 GB, free: 9.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.3833, allocations: 5.172 kB / 0.5983 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.3835, allocations: 29.12 kB / 0.5984 GB, free: 9.055 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.3835, allocations: 15.28 kB / 0.5984 GB, free: 9.047 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001994/0.3837, allocations: 206.9 kB / 0.5986 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.111e-05/0.3838, allocations: 51.81 kB / 0.5986 GB, free: 8.844 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3839, allocations: 63.41 kB / 0.5987 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3839, allocations: 4.75 kB / 0.5987 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.384, allocations: 0 / 0.5987 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.384, allocations: 0 / 0.5987 GB, free: 8.793 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007108/0.3847, allocations: 0.5795 MB / 0.5993 GB, free: 8.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3847, allocations: 3.938 kB / 0.5993 GB, free: 8.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000541/0.3852, allocations: 127.7 kB / 0.5994 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.3853, allocations: 1.812 kB / 0.5994 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.727e-05/0.3853, allocations: 6.156 kB / 0.5994 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.3853, allocations: 1.406 kB / 0.5994 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3853, allocations: 0 / 0.5994 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3864, allocations: 0.6445 MB / 0.6 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.3865, allocations: 136.6 kB / 0.6002 GB, free: 7.742 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.3866, allocations: 9.719 kB / 0.6002 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.3868, allocations: 13.33 kB / 0.6002 GB, free: 7.727 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.488e-05/0.3869, allocations: 26.69 kB / 0.6002 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.3869, allocations: 14.78 kB / 0.6002 GB, free: 7.703 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000442/0.3874, allocations: 352.2 kB / 0.6006 GB, free: 7.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3874, allocations: 0 / 0.6006 GB, free: 7.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004674/0.3879, allocations: 148.2 kB / 0.6007 GB, free: 7.465 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 (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.001249/0.3891, allocations: 1.209 MB / 0.6019 GB, free: 6.523 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006861/0.3898, allocations: 342.9 kB / 0.6022 GB, free: 6.367 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3898, allocations: 3.938 kB / 0.6022 GB, free: 6.363 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.3901, allocations: 187.8 kB / 0.6024 GB, free: 6.277 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006619/0.3908, allocations: 112.8 kB / 0.6025 GB, free: 6.223 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006168/0.397, allocations: 5.018 MB / 0.6074 GB, free: 2.961 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004052/0.3974, allocations: 0.8659 MB / 0.6082 GB, free: 2.188 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002006/0.3976, allocations: 50.61 kB / 0.6083 GB, free: 2.164 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002384/0.3978, allocations: 193.3 kB / 0.6085 GB, free: 2.004 MB / 446.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3978, allocations: 3.938 kB / 0.6085 GB, free: 2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03776/0.4356, allocations: 11.22 MB / 0.6194 GB, free: 9.223 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.654/10.09, allocations: 4.656 kB / 0.6194 GB, free: 9.219 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/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)