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.009381/0.009382, allocations: 97.81 kB / 15.73 MB, free: 6.004 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.002403/0.002402, allocations: 195.2 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.041/2.041, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.094/1.094, allocations: 132.2 MB / 422.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002813/0.002813, allocations: 63.97 kB / 0.5809 GB, free: 24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2528, allocations: 80.21 MB / 0.6592 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.01006/0.263, allocations: 4.135 MB / 0.6633 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006761/0.2698, allocations: 2.414 MB / 0.6656 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000734/0.2706, allocations: 12 kB / 0.6656 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002835/0.2735, allocations: 0.5402 MB / 0.6662 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001427/0.275, allocations: 250 kB / 0.6664 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005293/0.2755, allocations: 135.9 kB / 0.6665 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0017/0.2772, allocations: 0.8175 MB / 0.6673 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008364/0.2781, allocations: 322.5 kB / 0.6676 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006673/0.2788, allocations: 294.9 kB / 0.6679 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006208/0.2794, allocations: 326.6 kB / 0.6682 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001468/0.2796, allocations: 76 kB / 0.6683 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00024/0.2798, allocations: 72 kB / 0.6684 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002861/0.2801, allocations: 171.5 kB / 0.6685 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007141/0.2808, allocations: 386.2 kB / 0.6689 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.2825, allocations: 1 MB / 0.6699 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.2826, allocations: 0 / 0.6699 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of FrontEnd: time 5.05e-06/0.2826, allocations: 0 / 0.6699 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.933e-05/0.2826, allocations: 0 / 0.6699 GB, free: 15.8 MB / 0.5137 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.002318/0.285, allocations: 0.973 MB / 0.6708 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.444e-05/0.285, allocations: 8.031 kB / 0.6708 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.2852, allocations: 94.64 kB / 0.6709 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.2854, allocations: 76.47 kB / 0.671 GB, free: 14.6 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001098/0.2865, allocations: 462 kB / 0.6715 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-05/0.2866, allocations: 45.11 kB / 0.6715 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.2867, allocations: 51.98 kB / 0.6715 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.288, allocations: 422.5 kB / 0.6719 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.2881, allocations: 4 kB / 0.672 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.2881, allocations: 16 kB / 0.672 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.2882, allocations: 12 kB / 0.672 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.2895, allocations: 367.8 kB / 0.6723 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.293, allocations: 1.536 MB / 0.6738 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009822/0.294, allocations: 345.8 kB / 0.6742 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008086/0.2948, allocations: 317.5 kB / 0.6745 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.098e-05/0.2949, allocations: 4 kB / 0.6745 GB, free: 10.93 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.649e-05/0.295, allocations: 38.56 kB / 0.6745 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 3.687e-06/0.295, allocations: 0 / 0.6745 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.00166/0.2967, allocations: 0.4907 MB / 0.675 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.41e-05/0.2968, allocations: 59.41 kB / 0.675 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.2978, allocations: 489.9 kB / 0.6755 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.481e-05/0.2978, allocations: 33.7 kB / 0.6755 GB, free: 9.781 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003403/0.2982, allocations: 284.7 kB / 0.6758 GB, free: 9.5 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.2984, allocations: 154.6 kB / 0.676 GB, free: 9.348 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.2986, allocations: 58.08 kB / 0.676 GB, free: 9.281 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0003201/0.2989, allocations: 362.8 kB / 0.6764 GB, free: 8.918 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003893/0.2993, allocations: 120.7 kB / 0.6765 GB, free: 8.801 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.2998, allocations: 125.2 kB / 0.6766 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.3007, allocations: 306.3 kB / 0.6769 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3007, allocations: 0 / 0.6769 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001205/0.3019, allocations: 396.5 kB / 0.6773 GB, free: 7.984 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.302, allocations: 8 kB / 0.6773 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.302, allocations: 0 / 0.6773 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.302, allocations: 0 / 0.6773 GB, free: 7.977 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.3029, allocations: 123.9 kB / 0.6774 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.3029, allocations: 8 kB / 0.6774 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.3033, allocations: 35.77 kB / 0.6774 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.445e-05/0.3034, allocations: 8 kB / 0.6774 GB, free: 7.805 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.0004091/0.3038, allocations: 198.6 kB / 0.6776 GB, free: 7.602 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001541/0.304, allocations: 55.67 kB / 0.6777 GB, free: 7.547 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000187/0.3042, allocations: 61.09 kB / 0.6777 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.3042, allocations: 4 kB / 0.6777 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.737e-06/0.3042, allocations: 0 / 0.6777 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.3042, allocations: 11.98 kB / 0.6778 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.3055, allocations: 0.5712 MB / 0.6783 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.3055, allocations: 7.938 kB / 0.6783 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/0.3065, allocations: 131.8 kB / 0.6784 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.3065, allocations: 0 / 0.6784 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/0.3065, allocations: 8 kB / 0.6785 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3066, allocations: 0 / 0.6785 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3066, allocations: 0 / 0.6785 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.3084, allocations: 0.6626 MB / 0.6791 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.3087, allocations: 140.6 kB / 0.6792 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.3088, allocations: 8 kB / 0.6792 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/0.3092, allocations: 8 kB / 0.6792 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.3093, allocations: 27.95 kB / 0.6793 GB, free: 5.828 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.3094, allocations: 12 kB / 0.6793 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007708/0.3102, allocations: 351.1 kB / 0.6796 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.1e-07/0.3102, allocations: 0 / 0.6796 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007783/0.311, allocations: 143.7 kB / 0.6798 GB, free: 5.336 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.002412/0.3134, allocations: 1.208 MB / 0.6809 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001188/0.3146, allocations: 323.8 kB / 0.6812 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3147, allocations: 4 kB / 0.6812 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0005704/0.3152, allocations: 183.8 kB / 0.6814 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.3165, allocations: 130.9 kB / 0.6815 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.3285, allocations: 4.858 MB / 0.6863 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008118/0.3293, allocations: 0.8704 MB / 0.6871 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.000417/0.3298, allocations: 52.38 kB / 0.6872 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.3303, allocations: 187.4 kB / 0.6874 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of SimCode: time 4.578e-06/0.3303, allocations: 0 / 0.6874 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06177/0.3921, allocations: 11.45 MB / 0.6986 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/13.66, allocations: 20.56 kB / 0.6986 GB, free: 2.246 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)