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.0009775/0.0009775, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001033/0.001033, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.4 MB / 222.1 MB, free: 5.465 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.645/1.645, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005415/0.0005417, allocations: 19.38 kB / 0.6739 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2233, allocations: 116.3 MB / 0.7874 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004149/0.2275, allocations: 3.585 MB / 0.7909 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003253/0.2308, allocations: 2.261 MB / 0.7932 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000296/0.2311, allocations: 8 kB / 0.7932 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.2323, allocations: 453.9 kB / 0.7936 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004224/0.2327, allocations: 214.5 kB / 0.7938 GB, free: 5.223 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.2329, allocations: 83.91 kB / 0.7939 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007198/0.2336, allocations: 0.7552 MB / 0.7946 GB, free: 4.379 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003647/0.234, allocations: 245.5 kB / 0.7948 GB, free: 4.137 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.2343, allocations: 231 kB / 0.7951 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000295/0.2346, allocations: 282.8 kB / 0.7953 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/0.2346, allocations: 40 kB / 0.7954 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.33e-05/0.2347, allocations: 32 kB / 0.7954 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.2348, allocations: 119.5 kB / 0.7955 GB, free: 3.445 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.235, allocations: 165.3 kB / 0.7957 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006058/0.2356, allocations: 0.7945 MB / 0.7965 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2356, allocations: 0 / 0.7965 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/0.2356, allocations: 0 / 0.7965 GB, free: 2.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.2356, allocations: 0 / 0.7965 GB, free: 2.48 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.001239/0.2368, allocations: 0.8488 MB / 0.7973 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.2369, allocations: 11.97 kB / 0.7973 GB, free: 1.57 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.966e-05/0.237, allocations: 90.52 kB / 0.7974 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.2371, allocations: 71.16 kB / 0.7974 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005383/0.2377, allocations: 440.7 kB / 0.7979 GB, free: 0.9297 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.2377, allocations: 37 kB / 0.7979 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.2378, allocations: 48 kB / 0.7979 GB, free: 0.8477 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.2385, allocations: 430.4 kB / 0.7984 GB, free: 428 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.2385, allocations: 0 / 0.7984 GB, free: 428 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/0.2385, allocations: 20 kB / 0.7984 GB, free: 408 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.2386, allocations: 15.98 kB / 0.7984 GB, free: 392 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006783/0.2392, allocations: 371.8 kB / 0.7987 GB, free: 20 kB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.2412, allocations: 1.543 MB / 0.8003 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.2417, allocations: 342.7 kB / 0.8006 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004877/0.2422, allocations: 361.1 kB / 0.8009 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.2422, allocations: 4 kB / 0.8009 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.2423, allocations: 34.56 kB / 0.801 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.2423, allocations: 0 / 0.801 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of matching and sorting (n=42): time 0.0009128/0.2432, allocations: 0.5094 MB / 0.8015 GB, free: 13.14 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.514e-05/0.2433, allocations: 59.34 kB / 0.8015 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/0.2438, allocations: 489.9 kB / 0.802 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.2439, allocations: 33.7 kB / 0.802 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.2441, allocations: 276.4 kB / 0.8023 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.2442, allocations: 145.8 kB / 0.8024 GB, free: 12.13 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/0.2443, allocations: 4 kB / 0.8024 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001682/0.2444, allocations: 366.8 kB / 0.8028 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.2447, allocations: 120.7 kB / 0.8029 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.2449, allocations: 137.2 kB / 0.803 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.2452, allocations: 142.6 kB / 0.8032 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2452, allocations: 0 / 0.8032 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000627/0.2458, allocations: 411.8 kB / 0.8035 GB, free: 10.96 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.2459, allocations: 4 kB / 0.8036 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2459, allocations: 0 / 0.8036 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2459, allocations: 4 kB / 0.8036 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.2464, allocations: 127.8 kB / 0.8037 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2464, allocations: 8 kB / 0.8037 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.2466, allocations: 51.56 kB / 0.8037 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.2467, allocations: 12 kB / 0.8037 GB, free: 10.75 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002165/0.2469, allocations: 194.4 kB / 0.8039 GB, free: 10.55 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.279e-05/0.247, allocations: 59.38 kB / 0.804 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001127/0.2471, allocations: 57.11 kB / 0.804 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2471, allocations: 4 kB / 0.804 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.2471, allocations: 0 / 0.804 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.2471, allocations: 7.922 kB / 0.8041 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006303/0.2478, allocations: 0.5712 MB / 0.8046 GB, free: 9.809 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2478, allocations: 4 kB / 0.8046 GB, free: 9.805 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004971/0.2483, allocations: 135.8 kB / 0.8047 GB, free: 9.672 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-06/0.2483, allocations: 3.953 kB / 0.8047 GB, free: 9.668 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.434e-05/0.2483, allocations: 11.98 kB / 0.8048 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2483, allocations: 0 / 0.8048 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2483, allocations: 0 / 0.8048 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009449/0.2493, allocations: 0.6712 MB / 0.8054 GB, free: 8.969 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.2494, allocations: 128.5 kB / 0.8055 GB, free: 8.824 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.171e-05/0.2495, allocations: 11.95 kB / 0.8055 GB, free: 8.812 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.2497, allocations: 27.89 kB / 0.8056 GB, free: 8.785 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.137e-05/0.2498, allocations: 23.97 kB / 0.8056 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.2498, allocations: 12 kB / 0.8056 GB, free: 8.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003868/0.2502, allocations: 347.1 kB / 0.8059 GB, free: 8.41 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2502, allocations: 0 / 0.8059 GB, free: 8.41 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003925/0.2506, allocations: 143.6 kB / 0.8061 GB, free: 8.27 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 (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.001241/0.2518, allocations: 1.215 MB / 0.8073 GB, free: 7.023 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0005592/0.2524, allocations: 339.7 kB / 0.8076 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2524, allocations: 0 / 0.8076 GB, free: 6.691 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.2527, allocations: 187.7 kB / 0.8078 GB, free: 6.508 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006847/0.2534, allocations: 124.6 kB / 0.8079 GB, free: 6.387 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/0.2582, allocations: 3.315 MB / 0.8111 GB, free: 3.023 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.2586, allocations: 0.8706 MB / 0.812 GB, free: 2.121 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000205/0.2588, allocations: 56.39 kB / 0.812 GB, free: 2.066 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002474/0.2591, allocations: 191.3 kB / 0.8122 GB, free: 1.879 MB / 0.6231 GB Notification: Performance of SimCode: time 2.5e-07/0.2591, allocations: 4 kB / 0.8122 GB, free: 1.875 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02258/0.2817, allocations: 10.33 MB / 0.8223 GB, free: 7.875 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/0.2819, allocations: 250.7 kB / 0.8225 GB, free: 7.543 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.882/2.164, allocations: 3.094 kB / 0.8225 GB, free: 7.543 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --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) Environment - environmentSimulation: