Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.004183/0.004183, allocations: 100.4 kB / 15.73 MB, free: 5.953 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.001178/0.001178, allocations: 190.1 kB / 16.67 MB, free: 5.875 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.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002385/0.002385, allocations: 297.4 kB / 290.8 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.132/1.132, allocations: 178.5 MB / 0.5074 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002591/0.002591, allocations: 103.8 kB / 0.6944 GB, free: 15.09 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3875/0.3901, allocations: 89.12 MB / 0.7814 GB, free: 1.191 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002032/0.3922, allocations: 1.441 MB / 0.7828 GB, free: 60 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004238/0.3965, allocations: 2.901 MB / 0.7856 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.246e-05/0.3965, allocations: 4 kB / 0.7857 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.372e-05/0.3966, allocations: 3.938 kB / 0.7857 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.242e-05/0.3966, allocations: 18.84 kB / 0.7857 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00356/0.4002, allocations: 1.586 MB / 0.7872 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.486e-05/0.4003, allocations: 46.45 kB / 0.7873 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.437e-05/0.4003, allocations: 2.906 kB / 0.7873 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.027e-05/0.4004, allocations: 16.11 kB / 0.7873 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 2.876e-05/0.4004, allocations: 15.88 kB / 0.7873 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.4004, allocations: 5.094 kB / 0.7873 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002221/0.4026, allocations: 1.532 MB / 0.7888 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.886e-05/0.4027, allocations: 10.02 kB / 0.7888 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.292e-05/0.4027, allocations: 19.53 kB / 0.7888 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001484/0.4042, allocations: 1.114 MB / 0.7899 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.4042, allocations: 4 kB / 0.7899 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.283e-06/0.4042, allocations: 1.062 kB / 0.7899 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.759e-06/0.4042, allocations: 0 / 0.7899 GB, free: 11.11 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006353/0.4049, allocations: 0.5317 MB / 0.7904 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.4049, allocations: 9.25 kB / 0.7905 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.919e-05/0.405, allocations: 110 kB / 0.7906 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.861e-05/0.4051, allocations: 82.8 kB / 0.7906 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.4052, allocations: 247.5 kB / 0.7909 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.12e-05/0.4053, allocations: 152.4 kB / 0.791 GB, free: 9.973 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.4054, allocations: 154.9 kB / 0.7912 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.224e-05/0.4055, allocations: 110 kB / 0.7913 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.321e-05/0.4055, allocations: 75.28 kB / 0.7913 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.098e-05/0.4056, allocations: 151.8 kB / 0.7915 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.554e-05/0.4057, allocations: 150.6 kB / 0.7916 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.959e-05/0.4057, allocations: 159.6 kB / 0.7918 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000316/0.406, allocations: 469.1 kB / 0.7922 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 9.284e-05/0.4061, allocations: 166.5 kB / 0.7924 GB, free: 8.508 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.765e-05/0.4062, allocations: 80.14 kB / 0.7925 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.4062, allocations: 80.31 kB / 0.7925 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.4063, allocations: 119.5 kB / 0.7927 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 9.72e-07/0.4063, allocations: 0 / 0.7927 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 7.892e-05/0.4064, allocations: 36.03 kB / 0.7927 GB, free: 8.184 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.4065, allocations: 126.7 kB / 0.7928 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.4066, allocations: 127.4 kB / 0.7929 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.934e-05/0.4066, allocations: 27.3 kB / 0.793 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.4067, allocations: 101.3 kB / 0.7931 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.884e-06/0.4067, allocations: 0 / 0.7931 GB, free: 7.801 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.91e-05/0.4067, allocations: 27.86 kB / 0.7931 GB, free: 7.773 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4069, allocations: 312 kB / 0.7934 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.444e-05/0.4069, allocations: 7.094 kB / 0.7934 GB, free: 7.457 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.735e-05/0.4069, allocations: 7.609 kB / 0.7934 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.961e-05/0.407, allocations: 18.48 kB / 0.7934 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.407, allocations: 1.062 kB / 0.7934 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000121/0.4071, allocations: 48.33 kB / 0.7935 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.4071, allocations: 5.938 kB / 0.7935 GB, free: 7.398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.972e-05/0.4071, allocations: 10.59 kB / 0.7935 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.4072, allocations: 0 / 0.7935 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.965e-06/0.4072, allocations: 5.297 kB / 0.7935 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.4072, allocations: 0 / 0.7935 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.364e-05/0.4072, allocations: 9.156 kB / 0.7935 GB, free: 7.379 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.572e-06/0.4072, allocations: 1.125 kB / 0.7935 GB, free: 7.379 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 9.767e-05/0.4073, allocations: 183.2 kB / 0.7937 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.115e-05/0.4074, allocations: 115.2 kB / 0.7938 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.691e-05/0.4075, allocations: 115.3 kB / 0.7939 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.447e-05/0.4075, allocations: 185.9 kB / 0.7941 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.941e-05/0.4076, allocations: 180.2 kB / 0.7942 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.981e-05/0.4077, allocations: 177.4 kB / 0.7944 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/0.408, allocations: 419.9 kB / 0.7948 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.456e-05/0.408, allocations: 110.2 kB / 0.7949 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.536e-05/0.4081, allocations: 104.9 kB / 0.795 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.635e-05/0.4081, allocations: 181.6 kB / 0.7952 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-05/0.4082, allocations: 177.4 kB / 0.7953 GB, free: 5.359 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.436e-05/0.4083, allocations: 181.3 kB / 0.7955 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.257e-05/0.4084, allocations: 181.8 kB / 0.7957 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.4085, allocations: 312.9 kB / 0.796 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.691e-05/0.4086, allocations: 183 kB / 0.7962 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.428e-05/0.4087, allocations: 186 kB / 0.7963 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.088e-05/0.4088, allocations: 106 kB / 0.7964 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.4089, allocations: 185.2 kB / 0.7966 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.4089, allocations: 105.8 kB / 0.7967 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.589e-05/0.409, allocations: 98.23 kB / 0.7968 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.409, allocations: 0 / 0.7968 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000684/0.4097, allocations: 291 kB / 0.7971 GB, free: 3.703 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.001369/0.411, allocations: 1.195 MB / 0.7983 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.896e-05/0.4112, allocations: 38.7 kB / 0.7983 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4112, allocations: 0 / 0.7983 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.543e-06/0.4112, allocations: 0 / 0.7983 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004031/0.4116, allocations: 467.7 kB / 0.7987 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.413, allocations: 1.597 MB / 0.8003 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.4133, allocations: 0.6855 MB / 0.801 GB, free: 32 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.467e-05/0.4133, allocations: 4.016 kB / 0.801 GB, free: 28 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.4133, allocations: 21.44 kB / 0.801 GB, free: 8 kB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.4133, allocations: 0 / 0.801 GB, free: 8 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02902/0.4424, allocations: 7.11 MB / 0.8079 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.878/8.32, allocations: 12.67 kB / 0.808 GB, free: 12.38 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)