Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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.007021/0.007021, allocations: 102.7 kB / 15.73 MB, free: 5.992 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.001758/0.001758, allocations: 191.2 kB / 16.67 MB, free: 5.91 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.4/1.4, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002451/0.002451, allocations: 275 kB / 290.8 MB, free: 1.738 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9997/0.9997, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002679/0.002679, allocations: 95.94 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1569, allocations: 86.98 MB / 0.766 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00575/0.1627, allocations: 4.135 MB / 0.77 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003803/0.1665, allocations: 2.409 MB / 0.7723 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004555/0.167, allocations: 15.94 kB / 0.7724 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001746/0.1688, allocations: 0.5441 MB / 0.7729 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0006469/0.1695, allocations: 246 kB / 0.7731 GB, free: 1.492 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.1698, allocations: 139.8 kB / 0.7733 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009069/0.1707, allocations: 0.817 MB / 0.7741 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004909/0.1712, allocations: 330.5 kB / 0.7744 GB, free: 216 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.2951/0.4663, allocations: 277 kB / 0.7746 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005825/0.4669, allocations: 331.7 kB / 0.775 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001834/0.4671, allocations: 76.72 kB / 0.775 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.4673, allocations: 74.5 kB / 0.7751 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001706/0.4674, allocations: 172.7 kB / 0.7753 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003573/0.4678, allocations: 386.4 kB / 0.7756 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.4689, allocations: 1.002 MB / 0.7766 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.469, allocations: 0 / 0.7766 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.254e-06/0.469, allocations: 0 / 0.7766 GB, free: 8.531 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.761e-05/0.469, allocations: 1.469 kB / 0.7766 GB, free: 8.531 MB / 0.5606 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.001485/0.4705, allocations: 0.9729 MB / 0.7776 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4705, allocations: 10.38 kB / 0.7776 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.759e-05/0.4706, allocations: 88.12 kB / 0.7777 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.4708, allocations: 76.94 kB / 0.7777 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006954/0.4715, allocations: 467.3 kB / 0.7782 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.4715, allocations: 34.88 kB / 0.7782 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.542e-05/0.4716, allocations: 50 kB / 0.7783 GB, free: 7.566 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007803/0.4724, allocations: 430.7 kB / 0.7787 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.4724, allocations: 3.953 kB / 0.7787 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.794e-05/0.4725, allocations: 23.3 kB / 0.7787 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.4725, allocations: 11.78 kB / 0.7787 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006962/0.4732, allocations: 367 kB / 0.7791 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001979/0.4752, allocations: 1.516 MB / 0.7805 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004874/0.4757, allocations: 348.7 kB / 0.7809 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004394/0.4761, allocations: 322.4 kB / 0.7812 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.4762, allocations: 3.812 kB / 0.7812 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.4762, allocations: 40.75 kB / 0.7812 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 3.597e-06/0.4762, allocations: 0.9375 kB / 0.7812 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.0009279/0.4771, allocations: 0.4906 MB / 0.7817 GB, free: 6.617 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.136e-05/0.4772, allocations: 55.47 kB / 0.7818 GB, free: 6.555 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005358/0.4777, allocations: 487.8 kB / 0.7822 GB, free: 6.328 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.375e-05/0.4777, allocations: 35.02 kB / 0.7822 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.4779, allocations: 282.9 kB / 0.7825 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.218e-05/0.478, allocations: 153.6 kB / 0.7827 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.741e-05/0.4781, allocations: 56.38 kB / 0.7827 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.751e-05/0.4782, allocations: 363.6 kB / 0.7831 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002371/0.4784, allocations: 122 kB / 0.7832 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.4786, allocations: 133.5 kB / 0.7833 GB, free: 5.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004876/0.4791, allocations: 302 kB / 0.7836 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4791, allocations: 0 / 0.7836 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000632/0.4798, allocations: 393.3 kB / 0.784 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.4798, allocations: 5.531 kB / 0.784 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.4798, allocations: 4.141 kB / 0.784 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.4798, allocations: 5.375 kB / 0.784 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.4803, allocations: 128.7 kB / 0.7841 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.4804, allocations: 2.875 kB / 0.7841 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.4807, allocations: 40.05 kB / 0.7842 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.114e-05/0.4807, allocations: 7.469 kB / 0.7842 GB, free: 5.113 MB / 0.5606 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.0002152/0.4809, allocations: 196.8 kB / 0.7843 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.23e-05/0.481, allocations: 55.02 kB / 0.7844 GB, free: 4.922 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001094/0.4811, allocations: 67.03 kB / 0.7845 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4811, allocations: 8.219 kB / 0.7845 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.4811, allocations: 2.031 kB / 0.7845 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4811, allocations: 4.078 kB / 0.7845 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000626/0.4818, allocations: 0.5671 MB / 0.785 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.4818, allocations: 1.109 kB / 0.785 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005198/0.4823, allocations: 129.5 kB / 0.7852 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.4823, allocations: 1.062 kB / 0.7852 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.432e-05/0.4824, allocations: 7.922 kB / 0.7852 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4824, allocations: 5.688 kB / 0.7852 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.4824, allocations: 2.125 kB / 0.7852 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009001/0.4833, allocations: 0.6543 MB / 0.7858 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.4834, allocations: 143 kB / 0.7859 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.282e-05/0.4835, allocations: 7.984 kB / 0.786 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002221/0.4837, allocations: 16.11 kB / 0.786 GB, free: 4.004 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.916e-05/0.4838, allocations: 23.17 kB / 0.786 GB, free: 4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.4838, allocations: 13.77 kB / 0.786 GB, free: 3.996 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003799/0.4842, allocations: 350.9 kB / 0.7863 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4842, allocations: 0 / 0.7863 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004219/0.4846, allocations: 142.7 kB / 0.7865 GB, free: 3.805 MB / 0.5606 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.001037/0.4857, allocations: 1.21 MB / 0.7877 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005538/0.4862, allocations: 328.9 kB / 0.788 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.4862, allocations: 0 / 0.788 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002556/0.4865, allocations: 184.6 kB / 0.7881 GB, free: 2.742 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000687/0.4872, allocations: 124.4 kB / 0.7883 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005981/0.4932, allocations: 4.87 MB / 0.793 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.4937, allocations: 0.8693 MB / 0.7939 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002502/0.494, allocations: 50.48 kB / 0.7939 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002282/0.4942, allocations: 197.5 kB / 0.7941 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of SimCode: time 8.22e-07/0.4942, allocations: 0 / 0.7941 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03997/0.5342, allocations: 11.48 MB / 0.8053 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.636/9.17, allocations: 3.531 kB / 0.8053 GB, free: 13.79 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)