Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.363/1.363, allocations: 252 MB / 267 MB, free: 10.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 175.6 kB / 326.6 MB, free: 2.199 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.4 MB / 0.5777 GB, free: 20.5 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007698/0.0007698, allocations: 102.8 kB / 0.6823 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.0003331, allocations: 11.25 kB / 0.7965 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2154, allocations: 106.3 MB / 0.9003 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.003189/0.2187, allocations: 3.594 MB / 0.9039 GB, free: 60.5 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2208, allocations: 2.261 MB / 0.9061 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001889/0.221, allocations: 15.94 kB / 0.9061 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0009499/0.222, allocations: 445.9 kB / 0.9065 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.2223, allocations: 218.5 kB / 0.9067 GB, free: 57.56 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.2225, allocations: 79.94 kB / 0.9068 GB, free: 57.48 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0005208/0.223, allocations: 0.7552 MB / 0.9075 GB, free: 56.72 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.2233, allocations: 241.5 kB / 0.9078 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.2235, allocations: 235 kB / 0.908 GB, free: 56.25 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002304/0.2237, allocations: 270.8 kB / 0.9082 GB, free: 55.99 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 4.761e-05/0.2238, allocations: 36 kB / 0.9083 GB, free: 55.95 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.799e-05/0.2239, allocations: 36 kB / 0.9083 GB, free: 55.92 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 9.389e-05/0.224, allocations: 127.5 kB / 0.9084 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 9.32e-05/0.2241, allocations: 165.3 kB / 0.9086 GB, free: 55.62 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.00045/0.2245, allocations: 0.7828 MB / 0.9094 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2245, allocations: 0 / 0.9094 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.964e-06/0.2246, allocations: 4 kB / 0.9094 GB, free: 54.84 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.737e-06/0.2246, allocations: 0 / 0.9094 GB, free: 54.84 MB / 0.6042 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.001087/0.2257, allocations: 0.8488 MB / 0.9102 GB, free: 53.93 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.2257, allocations: 16.02 kB / 0.9102 GB, free: 53.92 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.336e-05/0.2258, allocations: 78.53 kB / 0.9103 GB, free: 53.83 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.45e-05/0.2259, allocations: 83.09 kB / 0.9104 GB, free: 53.75 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.2263, allocations: 436.8 kB / 0.9108 GB, free: 53.29 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.2264, allocations: 32.98 kB / 0.9108 GB, free: 53.25 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.728e-05/0.2264, allocations: 55.91 kB / 0.9109 GB, free: 53.2 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006772/0.2271, allocations: 434.4 kB / 0.9113 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.2271, allocations: 0 / 0.9113 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.502e-05/0.2272, allocations: 20 kB / 0.9113 GB, free: 52.75 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.2272, allocations: 12 kB / 0.9113 GB, free: 52.73 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006019/0.2278, allocations: 371.8 kB / 0.9117 GB, free: 52.37 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.2294, allocations: 1.535 MB / 0.9132 GB, free: 50.76 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/0.2299, allocations: 354.6 kB / 0.9135 GB, free: 50.4 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004222/0.2303, allocations: 352.7 kB / 0.9138 GB, free: 50.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.2303, allocations: 8 kB / 0.9138 GB, free: 50.05 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.753e-05/0.2304, allocations: 34.56 kB / 0.9139 GB, free: 50 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.2304, allocations: 7.938 kB / 0.9139 GB, free: 50 MB / 0.6042 GB Notification: Performance of matching and sorting (n=42): time 0.0008441/0.2312, allocations: 0.5048 MB / 0.9144 GB, free: 49.48 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.2313, allocations: 55.41 kB / 0.9144 GB, free: 49.42 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.2317, allocations: 485.9 kB / 0.9149 GB, free: 48.94 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.2317, allocations: 29.7 kB / 0.9149 GB, free: 48.91 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.2319, allocations: 284.3 kB / 0.9152 GB, free: 48.62 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 8.015e-05/0.2319, allocations: 137.9 kB / 0.9153 GB, free: 48.49 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.485e-05/0.232, allocations: 12 kB / 0.9153 GB, free: 48.48 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.952e-05/0.232, allocations: 362.8 kB / 0.9157 GB, free: 48.11 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002169/0.2323, allocations: 124.7 kB / 0.9158 GB, free: 47.99 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002105/0.2325, allocations: 133.2 kB / 0.9159 GB, free: 47.86 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.2327, allocations: 145.8 kB / 0.9161 GB, free: 47.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2327, allocations: 4 kB / 0.9161 GB, free: 47.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005378/0.2333, allocations: 396.6 kB / 0.9164 GB, free: 47.32 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.2333, allocations: 14.64 kB / 0.9165 GB, free: 47.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.2333, allocations: 0 / 0.9165 GB, free: 47.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.2333, allocations: 4 kB / 0.9165 GB, free: 47.3 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.2338, allocations: 131.9 kB / 0.9166 GB, free: 47.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.2338, allocations: 4.703 kB / 0.9166 GB, free: 47.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.2341, allocations: 55.61 kB / 0.9166 GB, free: 47.12 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.2341, allocations: 8 kB / 0.9167 GB, free: 47.11 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.2343, allocations: 201.7 kB / 0.9168 GB, free: 46.9 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.352e-05/0.2344, allocations: 51.34 kB / 0.9169 GB, free: 46.85 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.866e-05/0.2345, allocations: 61.09 kB / 0.917 GB, free: 46.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.2345, allocations: 8 kB / 0.917 GB, free: 46.78 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.2345, allocations: 3.938 kB / 0.917 GB, free: 46.78 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2345, allocations: 0 / 0.917 GB, free: 46.78 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004972/0.235, allocations: 0.5674 MB / 0.9175 GB, free: 46.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.235, allocations: 7.953 kB / 0.9175 GB, free: 46.15 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004807/0.2355, allocations: 123.9 kB / 0.9176 GB, free: 46.03 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.2355, allocations: 4 kB / 0.9176 GB, free: 46.03 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.2355, allocations: 4 kB / 0.9176 GB, free: 46.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.2355, allocations: 7.984 kB / 0.9177 GB, free: 46.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2355, allocations: 0 / 0.9177 GB, free: 46.02 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008395/0.2364, allocations: 0.6671 MB / 0.9183 GB, free: 45.33 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 8.763e-05/0.2365, allocations: 144.3 kB / 0.9184 GB, free: 45.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.583e-05/0.2366, allocations: 15.98 kB / 0.9185 GB, free: 45.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.2368, allocations: 19.98 kB / 0.9185 GB, free: 45.14 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.599e-05/0.2369, allocations: 23.97 kB / 0.9185 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.2369, allocations: 8 kB / 0.9185 GB, free: 45.11 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003316/0.2372, allocations: 347.1 kB / 0.9188 GB, free: 44.77 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2372, allocations: 0 / 0.9188 GB, free: 44.77 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003524/0.2376, allocations: 151.5 kB / 0.919 GB, free: 44.62 MB / 0.6042 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001088/0.2387, allocations: 1.215 MB / 0.9202 GB, free: 43.38 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005374/0.2392, allocations: 332.1 kB / 0.9205 GB, free: 43.05 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2392, allocations: 4 kB / 0.9205 GB, free: 43.05 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002587/0.2395, allocations: 183.6 kB / 0.9207 GB, free: 42.87 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006613/0.2402, allocations: 126 kB / 0.9208 GB, free: 42.75 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004156/0.2443, allocations: 3.32 MB / 0.924 GB, free: 39.37 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002501/0.2446, allocations: 0.8745 MB / 0.9249 GB, free: 38.47 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.000185/0.2448, allocations: 52.39 kB / 0.9249 GB, free: 38.42 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.245, allocations: 187.4 kB / 0.9251 GB, free: 38.23 MB / 0.6042 GB Notification: Performance of SimCode: time 1.152e-06/0.245, allocations: 0 / 0.9251 GB, free: 38.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02147/0.2665, allocations: 10.35 MB / 0.9352 GB, free: 28.23 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001718/0.2667, allocations: 262.4 kB / 0.9355 GB, free: 27.88 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.184/2.45, allocations: 4.062 kB / 0.9355 GB, free: 27.87 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)