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.01193/0.01193, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002331/0.002331, allocations: 202.4 kB / 16.68 MB, free: 5.969 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7629/0.7629, allocations: 132.2 MB / 422.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 63.91 kB / 0.5809 GB, free: 8.047 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4251/0.4271, allocations: 80.21 MB / 0.6592 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004533/0.4317, allocations: 4.13 MB / 0.6633 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003045/0.4348, allocations: 2.414 MB / 0.6656 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003074/0.4351, allocations: 15 kB / 0.6656 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001391/0.4365, allocations: 0.5416 MB / 0.6662 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000433/0.4369, allocations: 248.5 kB / 0.6664 GB, free: 4.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.4371, allocations: 138.5 kB / 0.6665 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000625/0.4378, allocations: 0.8106 MB / 0.6673 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003753/0.4382, allocations: 337.3 kB / 0.6676 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003117/0.4385, allocations: 293.7 kB / 0.6679 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002865/0.4388, allocations: 328.2 kB / 0.6682 GB, free: 3.359 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.571e-05/0.4389, allocations: 78.3 kB / 0.6683 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.439, allocations: 74.5 kB / 0.6684 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.4391, allocations: 178.3 kB / 0.6686 GB, free: 3.207 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002609/0.4394, allocations: 379.9 kB / 0.6689 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007293/0.4401, allocations: 1.003 MB / 0.6699 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.4401, allocations: 9.219 kB / 0.6699 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.213e-06/0.4402, allocations: 0 / 0.6699 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.055e-05/0.4402, allocations: 0 / 0.6699 GB, free: 2.18 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.001316/0.4415, allocations: 0.9587 MB / 0.6708 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.4415, allocations: 10.06 kB / 0.6709 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.857e-05/0.4416, allocations: 90.64 kB / 0.6709 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.4418, allocations: 80.84 kB / 0.671 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006186/0.4424, allocations: 459.4 kB / 0.6715 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.4424, allocations: 44.53 kB / 0.6715 GB, free: 0.8438 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.298e-05/0.4425, allocations: 50.8 kB / 0.6715 GB, free: 0.8242 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007233/0.4432, allocations: 427.8 kB / 0.672 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.4433, allocations: 0 / 0.672 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.4433, allocations: 20.53 kB / 0.672 GB, free: 0.5625 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.4433, allocations: 15.34 kB / 0.672 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006463/0.444, allocations: 368.3 kB / 0.6723 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.446, allocations: 1.532 MB / 0.6738 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.4465, allocations: 340.5 kB / 0.6742 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004775/0.447, allocations: 317.2 kB / 0.6745 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.4471, allocations: 3.406 kB / 0.6745 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.87e-05/0.4471, allocations: 40.72 kB / 0.6745 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.774e-06/0.4471, allocations: 1.156 kB / 0.6745 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.0009805/0.4481, allocations: 0.4937 MB / 0.675 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/0.4481, allocations: 56.03 kB / 0.675 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005788/0.4487, allocations: 487 kB / 0.6755 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.4488, allocations: 31.11 kB / 0.6755 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.449, allocations: 278.8 kB / 0.6758 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.4491, allocations: 151.8 kB / 0.6759 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.561e-05/0.4492, allocations: 61.55 kB / 0.676 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4494, allocations: 362.5 kB / 0.6764 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.4496, allocations: 126.1 kB / 0.6765 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002371/0.4499, allocations: 130 kB / 0.6766 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.4504, allocations: 295.6 kB / 0.6769 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4504, allocations: 1.469 kB / 0.6769 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006574/0.451, allocations: 403.4 kB / 0.6773 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.4511, allocations: 6.656 kB / 0.6773 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.4511, allocations: 0 / 0.6773 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.4511, allocations: 1.469 kB / 0.6773 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004877/0.4516, allocations: 123.8 kB / 0.6774 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.4516, allocations: 5.312 kB / 0.6774 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.4518, allocations: 34.05 kB / 0.6774 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.4519, allocations: 14.88 kB / 0.6774 GB, free: 12.82 MB / 0.5137 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.0002216/0.4521, allocations: 209.4 kB / 0.6776 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.971e-05/0.4522, allocations: 52.73 kB / 0.6777 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.4523, allocations: 58.08 kB / 0.6777 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.4523, allocations: 5.156 kB / 0.6778 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.828e-06/0.4523, allocations: 0 / 0.6778 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.4523, allocations: 3.984 kB / 0.6778 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006617/0.453, allocations: 0.5748 MB / 0.6783 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.453, allocations: 1.094 kB / 0.6783 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004931/0.4535, allocations: 127.8 kB / 0.6784 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.4535, allocations: 9.375 kB / 0.6784 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.4536, allocations: 6.625 kB / 0.6785 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4536, allocations: 0.9688 kB / 0.6785 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4536, allocations: 5.078 kB / 0.6785 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.4546, allocations: 0.6554 MB / 0.6791 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001347/0.4548, allocations: 140.6 kB / 0.6792 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.383e-05/0.4548, allocations: 9.969 kB / 0.6792 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.4551, allocations: 12.73 kB / 0.6793 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.384e-05/0.4551, allocations: 27.28 kB / 0.6793 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.4552, allocations: 7.812 kB / 0.6793 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004096/0.4556, allocations: 355.8 kB / 0.6796 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4556, allocations: 0 / 0.6796 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000444/0.456, allocations: 147.7 kB / 0.6798 GB, free: 11.22 MB / 0.5137 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.001286/0.4573, allocations: 1.202 MB / 0.6809 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006284/0.458, allocations: 328.1 kB / 0.6813 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.458, allocations: 0 / 0.6813 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002837/0.4583, allocations: 180.1 kB / 0.6814 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006435/0.4589, allocations: 129.4 kB / 0.6816 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006377/0.4653, allocations: 4.858 MB / 0.6863 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005573/0.4659, allocations: 0.8701 MB / 0.6871 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002552/0.4661, allocations: 54.39 kB / 0.6872 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002715/0.4664, allocations: 191.5 kB / 0.6874 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of SimCode: time 1.202e-06/0.4664, allocations: 0 / 0.6874 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03535/0.5018, allocations: 11.45 MB / 0.6986 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.249/8.751, allocations: 7.969 kB / 0.6986 GB, free: 13.78 MB / 0.5294 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)