Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_Buildings_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.001663/0.001663, allocations: 109.4 kB / 15.69 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002108/0.002108, allocations: 191 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.337/1.337, allocations: 205.1 MB / 222.5 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.656/1.656, allocations: 292.3 MB / 0.549 GB, free: 12.76 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002214/0.002214, allocations: 64.8 kB / 0.6718 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2096, allocations: 114.6 MB / 0.7837 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005499/0.2152, allocations: 4.143 MB / 0.7877 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003489/0.2187, allocations: 2.461 MB / 0.7901 GB, free: 6.598 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004433/0.2192, allocations: 8 kB / 0.7901 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.2208, allocations: 0.5402 MB / 0.7907 GB, free: 6.047 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0006302/0.2214, allocations: 250 kB / 0.7909 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.2217, allocations: 135.9 kB / 0.791 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0009709/0.2227, allocations: 0.8098 MB / 0.7918 GB, free: 4.852 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005168/0.2232, allocations: 330.5 kB / 0.7921 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004373/0.2237, allocations: 290.9 kB / 0.7924 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004685/0.2242, allocations: 330.6 kB / 0.7927 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001212/0.2243, allocations: 72 kB / 0.7928 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001588/0.2245, allocations: 76 kB / 0.7929 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001723/0.2246, allocations: 171.4 kB / 0.793 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004076/0.2251, allocations: 386.2 kB / 0.7934 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007872/0.2259, allocations: 0.9928 MB / 0.7944 GB, free: 2.234 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2259, allocations: 4 kB / 0.7944 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2259, allocations: 0 / 0.7944 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.2259, allocations: 4 kB / 0.7944 GB, free: 2.227 MB / 0.6075 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.001302/0.2272, allocations: 0.9501 MB / 0.7953 GB, free: 1.227 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.2272, allocations: 8.031 kB / 0.7953 GB, free: 1.219 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.391e-05/0.2273, allocations: 90.7 kB / 0.7954 GB, free: 1.121 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.878e-05/0.2274, allocations: 76 kB / 0.7955 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006096/0.2281, allocations: 461.7 kB / 0.7959 GB, free: 0.5547 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.118e-05/0.2281, allocations: 37.38 kB / 0.7959 GB, free: 0.5195 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.024e-05/0.2282, allocations: 44.38 kB / 0.796 GB, free: 488 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006888/0.2289, allocations: 434.6 kB / 0.7964 GB, free: 48 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.2289, allocations: 0 / 0.7964 GB, free: 48 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.993e-05/0.2289, allocations: 20 kB / 0.7964 GB, free: 28 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.229, allocations: 15.94 kB / 0.7964 GB, free: 12 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000671/0.2296, allocations: 363.8 kB / 0.7968 GB, free: 15.65 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2316, allocations: 1.524 MB / 0.7983 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004984/0.2321, allocations: 338.9 kB / 0.7986 GB, free: 13.71 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.2325, allocations: 320.7 kB / 0.7989 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.2326, allocations: 11.92 kB / 0.7989 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/0.2326, allocations: 38.56 kB / 0.7989 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=42): time 1.523e-06/0.2326, allocations: 0 / 0.7989 GB, free: 13.34 MB / 0.6231 GB Notification: Performance of matching and sorting (n=42): time 0.0008832/0.2335, allocations: 0.4948 MB / 0.7994 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.531e-05/0.2335, allocations: 59.41 kB / 0.7995 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005072/0.234, allocations: 485.9 kB / 0.7999 GB, free: 12.28 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.2341, allocations: 29.7 kB / 0.8 GB, free: 12.25 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.2343, allocations: 280.3 kB / 0.8002 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.2344, allocations: 145.8 kB / 0.8004 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.134e-05/0.2345, allocations: 62.08 kB / 0.8004 GB, free: 11.75 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.2346, allocations: 362.8 kB / 0.8008 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.2349, allocations: 128.6 kB / 0.8009 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000223/0.2351, allocations: 133.2 kB / 0.801 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.2356, allocations: 294.2 kB / 0.8013 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2356, allocations: 0 / 0.8013 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006052/0.2362, allocations: 396.3 kB / 0.8017 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.514e-05/0.2362, allocations: 4 kB / 0.8017 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.2362, allocations: 4 kB / 0.8017 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2362, allocations: 4.766 kB / 0.8017 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004817/0.2367, allocations: 123.9 kB / 0.8018 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.2368, allocations: 3.938 kB / 0.8018 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.237, allocations: 35.67 kB / 0.8019 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.956e-05/0.237, allocations: 12 kB / 0.8019 GB, free: 10.27 MB / 0.6231 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.0001908/0.2372, allocations: 194.4 kB / 0.8021 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.273e-05/0.2373, allocations: 59.28 kB / 0.8021 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.172e-05/0.2374, allocations: 65.05 kB / 0.8022 GB, free: 9.949 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2374, allocations: 4 kB / 0.8022 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2374, allocations: 0 / 0.8022 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2374, allocations: 3.984 kB / 0.8022 GB, free: 9.941 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005805/0.238, allocations: 0.575 MB / 0.8027 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.238, allocations: 3.938 kB / 0.8027 GB, free: 9.312 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005019/0.2385, allocations: 123.9 kB / 0.8029 GB, free: 9.191 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.2385, allocations: 0 / 0.8029 GB, free: 9.191 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.2385, allocations: 16 kB / 0.8029 GB, free: 9.176 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.2386, allocations: 3.984 kB / 0.8029 GB, free: 9.172 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2386, allocations: 0 / 0.8029 GB, free: 9.172 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009011/0.2395, allocations: 0.6467 MB / 0.8035 GB, free: 8.508 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.2396, allocations: 144.3 kB / 0.8037 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.647e-05/0.2396, allocations: 8 kB / 0.8037 GB, free: 8.34 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2399, allocations: 15.98 kB / 0.8037 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.42e-05/0.2399, allocations: 19.97 kB / 0.8037 GB, free: 8.305 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.24, allocations: 12 kB / 0.8037 GB, free: 8.293 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003465/0.2403, allocations: 355.1 kB / 0.804 GB, free: 7.949 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2403, allocations: 0 / 0.804 GB, free: 7.949 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003656/0.2407, allocations: 135.7 kB / 0.8042 GB, free: 7.816 MB / 0.6231 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.001162/0.2419, allocations: 1.212 MB / 0.8054 GB, free: 6.578 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005585/0.2424, allocations: 319.5 kB / 0.8057 GB, free: 6.266 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2424, allocations: 0 / 0.8057 GB, free: 6.266 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002682/0.2427, allocations: 183.8 kB / 0.8058 GB, free: 6.086 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005993/0.2433, allocations: 131.1 kB / 0.806 GB, free: 5.961 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005663/0.249, allocations: 4.836 MB / 0.8107 GB, free: 1.043 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.2494, allocations: 0.8743 MB / 0.8115 GB, free: 144 kB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001885/0.2496, allocations: 52.39 kB / 0.8116 GB, free: 92 kB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.2498, allocations: 191.5 kB / 0.8118 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of SimCode: time 4.91e-07/0.2498, allocations: 0 / 0.8118 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.2791, allocations: 11.26 MB / 0.8228 GB, free: 4.934 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.366, allocations: 10.86 kB / 0.8228 GB, free: 4.93 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)