Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.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(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.004972/0.004972, allocations: 97.3 kB / 15.73 MB, free: 6.039 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.001273/0.001273, allocations: 202.2 kB / 16.68 MB, free: 5.961 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0-master/package.mo): time 1.041/1.041, allocations: 143.3 MB / 433.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 67.89 kB / 0.5954 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3989, allocations: 82.02 MB / 0.6755 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005314/0.4042, allocations: 4.135 MB / 0.6795 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.003993/0.4083, allocations: 2.42 MB / 0.6819 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002666/0.4086, allocations: 9.531 kB / 0.6819 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001538/0.4101, allocations: 0.542 MB / 0.6824 GB, free: 11.35 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0005528/0.4107, allocations: 247.5 kB / 0.6826 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.411, allocations: 134.5 kB / 0.6828 GB, free: 11.02 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001027/0.412, allocations: 0.8194 MB / 0.6836 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005185/0.4125, allocations: 328.8 kB / 0.6839 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003917/0.4129, allocations: 287.2 kB / 0.6842 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004038/0.4133, allocations: 325 kB / 0.6845 GB, free: 9.938 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.18e-05/0.4134, allocations: 74.19 kB / 0.6845 GB, free: 9.938 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001162/0.4136, allocations: 78.09 kB / 0.6846 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001856/0.4138, allocations: 174.9 kB / 0.6848 GB, free: 9.789 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003868/0.4141, allocations: 383.4 kB / 0.6852 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.4153, allocations: 1.037 MB / 0.6862 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.4153, allocations: 0 / 0.6862 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4153, allocations: 0 / 0.6862 GB, free: 8.73 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.4153, allocations: 0 / 0.6862 GB, free: 8.73 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.001504/0.4168, allocations: 0.9628 MB / 0.6871 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.4168, allocations: 9.969 kB / 0.6871 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.417, allocations: 90.2 kB / 0.6872 GB, free: 7.859 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.4171, allocations: 76.5 kB / 0.6873 GB, free: 7.82 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/0.4177, allocations: 464.9 kB / 0.6877 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.325e-05/0.4178, allocations: 36.53 kB / 0.6878 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.542e-05/0.4179, allocations: 47.41 kB / 0.6878 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007786/0.4187, allocations: 430.7 kB / 0.6882 GB, free: 7.129 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.4187, allocations: 5.422 kB / 0.6882 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.4187, allocations: 20.09 kB / 0.6882 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.4188, allocations: 11.06 kB / 0.6882 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000714/0.4195, allocations: 368.7 kB / 0.6886 GB, free: 6.934 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.4216, allocations: 1.529 MB / 0.6901 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.4222, allocations: 345.3 kB / 0.6904 GB, free: 5.539 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005027/0.4227, allocations: 320.3 kB / 0.6907 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.4227, allocations: 8.656 kB / 0.6907 GB, free: 5.391 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.4228, allocations: 36.88 kB / 0.6908 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=42): time 1.623e-06/0.4228, allocations: 0 / 0.6908 GB, free: 5.348 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42): time 0.00102/0.4238, allocations: 0.4932 MB / 0.6912 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.4239, allocations: 58.59 kB / 0.6913 GB, free: 5.023 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006007/0.4245, allocations: 486.4 kB / 0.6918 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.4245, allocations: 32.39 kB / 0.6918 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/0.4247, allocations: 278.6 kB / 0.6921 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.4249, allocations: 156.8 kB / 0.6922 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.425, allocations: 67.94 kB / 0.6923 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001752/0.4252, allocations: 362.6 kB / 0.6926 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.4254, allocations: 121.5 kB / 0.6927 GB, free: 3.859 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002539/0.4257, allocations: 125.7 kB / 0.6929 GB, free: 3.801 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005546/0.4262, allocations: 293.5 kB / 0.6931 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.4262, allocations: 0 / 0.6931 GB, free: 3.652 MB / 0.5137 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006848/0.4269, allocations: 406.3 kB / 0.6935 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.427, allocations: 4 kB / 0.6935 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.427, allocations: 4 kB / 0.6935 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.427, allocations: 3.938 kB / 0.6935 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005208/0.4275, allocations: 127.8 kB / 0.6937 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.4275, allocations: 0 / 0.6937 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002521/0.4278, allocations: 35.73 kB / 0.6937 GB, free: 3.238 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.4278, allocations: 16 kB / 0.6937 GB, free: 3.223 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.000235/0.4281, allocations: 201.7 kB / 0.6939 GB, free: 3.016 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.245e-05/0.4282, allocations: 59.61 kB / 0.694 GB, free: 2.957 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.4283, allocations: 61.09 kB / 0.694 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.4283, allocations: 4 kB / 0.694 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.4283, allocations: 0 / 0.694 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.4283, allocations: 0 / 0.694 GB, free: 2.895 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007186/0.429, allocations: 0.5713 MB / 0.6946 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.4291, allocations: 3.938 kB / 0.6946 GB, free: 2.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005895/0.4296, allocations: 127.9 kB / 0.6947 GB, free: 2.145 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.747e-06/0.4297, allocations: 4 kB / 0.6947 GB, free: 2.141 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.4297, allocations: 7.938 kB / 0.6947 GB, free: 2.133 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.4297, allocations: 4 kB / 0.6947 GB, free: 2.129 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.4297, allocations: 0 / 0.6947 GB, free: 2.129 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001056/0.4308, allocations: 0.6482 MB / 0.6954 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.4309, allocations: 144.6 kB / 0.6955 GB, free: 1.305 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.234e-05/0.431, allocations: 12 kB / 0.6955 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.4312, allocations: 11.98 kB / 0.6955 GB, free: 1.281 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.4313, allocations: 23.97 kB / 0.6955 GB, free: 1.258 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.4313, allocations: 12 kB / 0.6955 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0004136/0.4317, allocations: 351.1 kB / 0.6959 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.964e-06/0.4317, allocations: 0 / 0.6959 GB, free: 0.9023 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004222/0.4322, allocations: 147.7 kB / 0.696 GB, free: 0.7578 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.001421/0.4336, allocations: 1.212 MB / 0.6972 GB, free: 15.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0006473/0.4342, allocations: 328.1 kB / 0.6975 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4343, allocations: 0 / 0.6975 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003066/0.4346, allocations: 183.4 kB / 0.6977 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/0.4352, allocations: 133.4 kB / 0.6978 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007132/0.4424, allocations: 4.855 MB / 0.7026 GB, free: 9.953 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005987/0.443, allocations: 0.8742 MB / 0.7034 GB, free: 9.051 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002716/0.4433, allocations: 60.38 kB / 0.7035 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.4436, allocations: 195.3 kB / 0.7037 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of SimCode: time 6.71e-07/0.4436, allocations: 0 / 0.7037 GB, free: 8.797 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03966/0.4833, allocations: 11.49 MB / 0.7149 GB, free: 13.64 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.821/9.305, allocations: 9.438 kB / 0.7149 GB, free: 13.64 MB / 0.545 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.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 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)