Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_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_dev_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.004673/0.004673, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.001103/0.001103, allocations: 198.7 kB / 16.68 MB, free: 6.375 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9248/0.9248, allocations: 135.1 MB / 425.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.91 kB / 0.5852 GB, free: 3.777 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.374/0.3753, allocations: 80.91 MB / 0.6642 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004306/0.3796, allocations: 4.137 MB / 0.6682 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002821/0.3825, allocations: 2.408 MB / 0.6706 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002601/0.3828, allocations: 15.22 kB / 0.6706 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001265/0.3841, allocations: 0.5369 MB / 0.6711 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003802/0.3844, allocations: 249.2 kB / 0.6714 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.3846, allocations: 150.2 kB / 0.6715 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006176/0.3853, allocations: 0.8048 MB / 0.6723 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003982/0.3857, allocations: 329 kB / 0.6726 GB, free: 0.6758 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002813/0.386, allocations: 294.2 kB / 0.6729 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002961/0.3863, allocations: 332.6 kB / 0.6732 GB, free: 280 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.004e-05/0.3864, allocations: 74.16 kB / 0.6733 GB, free: 280 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.3865, allocations: 75.03 kB / 0.6734 GB, free: 280 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001266/0.3866, allocations: 177.2 kB / 0.6735 GB, free: 128 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003569/0.387, allocations: 379.9 kB / 0.6739 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0009458/0.3879, allocations: 1.003 MB / 0.6749 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.388, allocations: 1.406 kB / 0.6749 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.733e-06/0.388, allocations: 0 / 0.6749 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.41e-05/0.388, allocations: 0 / 0.6749 GB, free: 15.11 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.001478/0.3895, allocations: 0.9661 MB / 0.6758 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3895, allocations: 10.25 kB / 0.6758 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.553e-05/0.3896, allocations: 93.73 kB / 0.6759 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.3897, allocations: 77.53 kB / 0.676 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006504/0.3904, allocations: 459.1 kB / 0.6764 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.22e-05/0.3904, allocations: 40.78 kB / 0.6765 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/0.3905, allocations: 51.61 kB / 0.6765 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008063/0.3913, allocations: 422.7 kB / 0.6769 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.3914, allocations: 5.438 kB / 0.6769 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.974e-05/0.3914, allocations: 23.34 kB / 0.6769 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.3914, allocations: 16.38 kB / 0.677 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007051/0.3921, allocations: 372 kB / 0.6773 GB, free: 13.3 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.3942, allocations: 1.521 MB / 0.6788 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005301/0.3948, allocations: 344.9 kB / 0.6791 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005162/0.3953, allocations: 319.5 kB / 0.6794 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.922e-05/0.3954, allocations: 8.125 kB / 0.6794 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.3954, allocations: 41.56 kB / 0.6795 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.3954, allocations: 0 / 0.6795 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.001005/0.3964, allocations: 0.4972 MB / 0.68 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.3965, allocations: 55.94 kB / 0.68 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005686/0.397, allocations: 485.7 kB / 0.6805 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.3971, allocations: 31.7 kB / 0.6805 GB, free: 11.07 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001851/0.3973, allocations: 275.8 kB / 0.6808 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.3974, allocations: 154.5 kB / 0.6809 GB, free: 10.69 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.3975, allocations: 61.48 kB / 0.681 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3976, allocations: 363.2 kB / 0.6813 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002454/0.3979, allocations: 121.8 kB / 0.6814 GB, free: 10.23 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.3981, allocations: 132.6 kB / 0.6816 GB, free: 10.17 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005102/0.3987, allocations: 301.1 kB / 0.6819 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3987, allocations: 0 / 0.6819 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006876/0.3994, allocations: 397.1 kB / 0.6822 GB, free: 9.805 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3994, allocations: 7.219 kB / 0.6822 GB, free: 9.805 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3994, allocations: 1.531 kB / 0.6822 GB, free: 9.805 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.3994, allocations: 0.6562 kB / 0.6822 GB, free: 9.805 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000503/0.3999, allocations: 124.1 kB / 0.6824 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3999, allocations: 2.25 kB / 0.6824 GB, free: 9.777 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.4002, allocations: 36.36 kB / 0.6824 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.4003, allocations: 15.53 kB / 0.6824 GB, free: 9.742 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.0002125/0.4005, allocations: 200.6 kB / 0.6826 GB, free: 9.57 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.588e-05/0.4006, allocations: 52.45 kB / 0.6827 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.4007, allocations: 63.09 kB / 0.6827 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.4007, allocations: 3.812 kB / 0.6827 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4007, allocations: 1.344 kB / 0.6827 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.543e-06/0.4007, allocations: 3.984 kB / 0.6827 GB, free: 9.488 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006824/0.4014, allocations: 0.5708 MB / 0.6833 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4014, allocations: 0 / 0.6833 GB, free: 9.016 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005294/0.402, allocations: 131.8 kB / 0.6834 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.402, allocations: 2.719 kB / 0.6834 GB, free: 8.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.402, allocations: 9.188 kB / 0.6834 GB, free: 8.973 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.402, allocations: 2.406 kB / 0.6834 GB, free: 8.973 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.402, allocations: 3.938 kB / 0.6834 GB, free: 8.969 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.4031, allocations: 0.6609 MB / 0.6841 GB, free: 8.559 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.4033, allocations: 140.2 kB / 0.6842 GB, free: 8.418 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.7e-05/0.4034, allocations: 7.281 kB / 0.6842 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.4036, allocations: 16.09 kB / 0.6842 GB, free: 8.402 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.4037, allocations: 23.08 kB / 0.6842 GB, free: 8.391 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.4037, allocations: 11.91 kB / 0.6843 GB, free: 8.387 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003846/0.4041, allocations: 351.7 kB / 0.6846 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4041, allocations: 0 / 0.6846 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004739/0.4046, allocations: 144.1 kB / 0.6847 GB, free: 8.152 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.001235/0.4058, allocations: 1.207 MB / 0.6859 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006117/0.4065, allocations: 327.7 kB / 0.6862 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4065, allocations: 0 / 0.6862 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.4068, allocations: 184.4 kB / 0.6864 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007353/0.4075, allocations: 131.8 kB / 0.6865 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006855/0.4144, allocations: 4.867 MB / 0.6913 GB, free: 3.824 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004654/0.4149, allocations: 0.8668 MB / 0.6921 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002998/0.4152, allocations: 57.66 kB / 0.6922 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.4155, allocations: 188.2 kB / 0.6924 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of SimCode: time 1.031e-06/0.4155, allocations: 0 / 0.6924 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03257/0.4481, allocations: 11.46 MB / 0.7035 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/8.68, allocations: 7.219 kB / 0.7036 GB, free: 9.102 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)