Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_0_0_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_0_0_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 8.0.0/package.mo): time 2.696/2.696, allocations: 287.3 MB / 302.3 MB, free: 8.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00158/0.001579, allocations: 182.3 kB / 370.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.173/2.173, allocations: 205.4 MB / 0.6295 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001093, allocations: 84.81 kB / 0.7428 GB, free: 6.57 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000497/0.0004971, allocations: 16.34 kB / 0.8658 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2247, allocations: 115.3 MB / 0.9783 GB, free: 28.23 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004772/0.2296, allocations: 3.268 MB / 0.9815 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.004188/0.2338, allocations: 2.234 MB / 0.9837 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005672/0.2344, allocations: 12 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.002139/0.2366, allocations: 482.1 kB / 0.9842 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0008352/0.2375, allocations: 251.3 kB / 0.9844 GB, free: 21.96 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003203/0.2378, allocations: 79.92 kB / 0.9845 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.001004/0.2388, allocations: 0.555 MB / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004891/0.2394, allocations: 253.4 kB / 0.9853 GB, free: 21.08 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005001/0.2399, allocations: 235.1 kB / 0.9855 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003774/0.2403, allocations: 262.9 kB / 0.9857 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 8.364e-05/0.2404, allocations: 32 kB / 0.9858 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.2405, allocations: 36 kB / 0.9858 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001383/0.2407, allocations: 127.5 kB / 0.9859 GB, free: 20.4 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.2408, allocations: 161.4 kB / 0.9861 GB, free: 20.24 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0008556/0.2417, allocations: 0.7828 MB / 0.9868 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2417, allocations: 0 / 0.9868 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.997e-06/0.2417, allocations: 4 kB / 0.9869 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.42e-05/0.2418, allocations: 0 / 0.9869 GB, free: 19.45 MB / 0.6198 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.001775/0.2435, allocations: 0.8488 MB / 0.9877 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 7.039e-05/0.2436, allocations: 16.02 kB / 0.9877 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001639/0.2438, allocations: 90.52 kB / 0.9878 GB, free: 18.44 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001601/0.244, allocations: 75.11 kB / 0.9879 GB, free: 18.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007778/0.2448, allocations: 440.7 kB / 0.9883 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.2448, allocations: 40.98 kB / 0.9883 GB, free: 17.85 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.699e-05/0.2449, allocations: 44 kB / 0.9884 GB, free: 17.81 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.2461, allocations: 426.5 kB / 0.9888 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.2461, allocations: 0 / 0.9888 GB, free: 17.39 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.039e-05/0.2462, allocations: 20 kB / 0.9888 GB, free: 17.37 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.2462, allocations: 15.98 kB / 0.9888 GB, free: 17.35 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.2473, allocations: 375.8 kB / 0.9892 GB, free: 16.98 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003012/0.2504, allocations: 1.535 MB / 0.9907 GB, free: 15.38 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.2512, allocations: 346.8 kB / 0.991 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2512, allocations: 4 kB / 0.991 GB, free: 15.02 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.2513, allocations: 35.25 kB / 0.991 GB, free: 14.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=42): time 2.905e-06/0.2513, allocations: 4 kB / 0.991 GB, free: 14.97 MB / 0.6198 GB Notification: Performance of matching and sorting (n=42): time 0.001453/0.2528, allocations: 0.4983 MB / 0.9915 GB, free: 14.47 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2528, allocations: 56.17 kB / 0.9916 GB, free: 14.4 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007275/0.2536, allocations: 485.9 kB / 0.992 GB, free: 13.92 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.224e-05/0.2536, allocations: 33.7 kB / 0.9921 GB, free: 13.88 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.2538, allocations: 280.3 kB / 0.9923 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/0.254, allocations: 145.8 kB / 0.9925 GB, free: 13.46 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.71e-05/0.254, allocations: 12 kB / 0.9925 GB, free: 13.45 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2541, allocations: 358.8 kB / 0.9928 GB, free: 13.09 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000392/0.2545, allocations: 124.6 kB / 0.9929 GB, free: 12.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/0.2549, allocations: 133.4 kB / 0.9931 GB, free: 12.83 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004278/0.2554, allocations: 142.6 kB / 0.9932 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2554, allocations: 0 / 0.9932 GB, free: 12.69 MB / 0.6198 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001097/0.2565, allocations: 411.7 kB / 0.9936 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.2565, allocations: 4 kB / 0.9936 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.2566, allocations: 0 / 0.9936 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.2566, allocations: 4 kB / 0.9936 GB, free: 12.28 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000892/0.2575, allocations: 123.9 kB / 0.9937 GB, free: 12.16 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.2575, allocations: 7.984 kB / 0.9937 GB, free: 12.15 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.258, allocations: 51.67 kB / 0.9938 GB, free: 12.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.933e-05/0.2581, allocations: 8 kB / 0.9938 GB, free: 12.09 MB / 0.6198 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.0003444/0.2584, allocations: 198.1 kB / 0.994 GB, free: 11.89 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.2586, allocations: 55.3 kB / 0.994 GB, free: 11.83 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.2587, allocations: 65.09 kB / 0.9941 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.2587, allocations: 4 kB / 0.9941 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.2587, allocations: 4 kB / 0.9941 GB, free: 11.76 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.2587, allocations: 0 / 0.9941 GB, free: 11.76 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009068/0.2597, allocations: 0.5788 MB / 0.9947 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2597, allocations: 0 / 0.9947 GB, free: 11.13 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009927/0.2607, allocations: 127.9 kB / 0.9948 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.2607, allocations: 0 / 0.9948 GB, free: 11.01 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.2608, allocations: 15.95 kB / 0.9948 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.2608, allocations: 0 / 0.9948 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2608, allocations: 4 kB / 0.9948 GB, free: 10.99 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.2623, allocations: 0.6697 MB / 0.9955 GB, free: 10.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.2625, allocations: 140.4 kB / 0.9956 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.2626, allocations: 4 kB / 0.9956 GB, free: 10.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.2631, allocations: 23.94 kB / 0.9956 GB, free: 10.12 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.45e-05/0.2632, allocations: 31.95 kB / 0.9956 GB, free: 10.09 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.2632, allocations: 15.94 kB / 0.9957 GB, free: 10.07 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005502/0.2638, allocations: 343.1 kB / 0.996 GB, free: 9.738 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.5e-07/0.2638, allocations: 0 / 0.996 GB, free: 9.738 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005829/0.2644, allocations: 147.6 kB / 0.9961 GB, free: 9.594 MB / 0.6198 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.001689/0.2661, allocations: 1.223 MB / 0.9973 GB, free: 8.344 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009058/0.267, allocations: 331.7 kB / 0.9976 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.267, allocations: 0 / 0.9976 GB, free: 8.02 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0004286/0.2675, allocations: 179.8 kB / 0.9978 GB, free: 7.844 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009534/0.2685, allocations: 119.3 kB / 0.9979 GB, free: 7.73 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007279/0.2758, allocations: 3.276 MB / 1.001 GB, free: 4.402 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.2762, allocations: 0.8863 MB / 1.002 GB, free: 3.488 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0003387/0.2765, allocations: 52.38 kB / 1.002 GB, free: 3.438 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.2769, allocations: 191.4 kB / 1.002 GB, free: 3.25 MB / 0.6198 GB Notification: Performance of SimCode: time 1.283e-06/0.2769, allocations: 3.938 kB / 1.002 GB, free: 3.246 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05157/0.3285, allocations: 10.32 MB / 1.012 GB, free: 9.215 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003777/0.3289, allocations: 250.2 kB / 1.013 GB, free: 8.883 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/3.251, allocations: 7.031 kB / 1.013 GB, free: 8.879 MB / 0.6355 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_8.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)