Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.001297/0.001297, 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.001322/0.001322, allocations: 188.5 kB / 16.62 MB, free: 6.609 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.339/1.339, allocations: 205.1 MB / 222.5 MB, free: 4.562 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.635/1.635, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001382/0.001382, allocations: 69.2 kB / 0.6718 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2222/0.2236, allocations: 114.5 MB / 0.7837 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004517/0.2282, allocations: 3.053 MB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00275/0.231, allocations: 2.181 MB / 0.7888 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.2313, allocations: 8 kB / 0.7888 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.2327, allocations: 0.4899 MB / 0.7893 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003245/0.233, allocations: 150.8 kB / 0.7894 GB, free: 7.312 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001309/0.2332, allocations: 59.94 kB / 0.7895 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004693/0.2336, allocations: 449.8 kB / 0.7899 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.2339, allocations: 143.2 kB / 0.79 GB, free: 6.668 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.2341, allocations: 159.3 kB / 0.7902 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002024/0.2343, allocations: 187.1 kB / 0.7904 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.2344, allocations: 36 kB / 0.7904 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.387e-05/0.2344, allocations: 40 kB / 0.7904 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.2345, allocations: 91.69 kB / 0.7905 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.2347, allocations: 218.9 kB / 0.7907 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004415/0.2352, allocations: 0.545 MB / 0.7913 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2352, allocations: 0 / 0.7913 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2352, allocations: 0 / 0.7913 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.464e-06/0.2352, allocations: 0 / 0.7913 GB, free: 5.402 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009547/0.2362, allocations: 0.7006 MB / 0.7919 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.2362, allocations: 8.031 kB / 0.7919 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.41e-05/0.2363, allocations: 58.73 kB / 0.792 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.53e-05/0.2363, allocations: 48.38 kB / 0.7921 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.2368, allocations: 378 kB / 0.7924 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.2369, allocations: 20.81 kB / 0.7924 GB, free: 4.098 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.2369, allocations: 24.38 kB / 0.7925 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.2373, allocations: 199.4 kB / 0.7926 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.2373, allocations: 0 / 0.7926 GB, free: 3.879 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.2373, allocations: 8 kB / 0.7927 GB, free: 3.871 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.2373, allocations: 8 kB / 0.7927 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003564/0.2377, allocations: 165.6 kB / 0.7928 GB, free: 3.699 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.2388, allocations: 0.87 MB / 0.7937 GB, free: 2.762 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.2391, allocations: 142.6 kB / 0.7938 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001969/0.2393, allocations: 116.8 kB / 0.7939 GB, free: 2.496 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.2394, allocations: 4 kB / 0.7939 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.697e-05/0.2394, allocations: 34.55 kB / 0.794 GB, free: 2.449 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 1.493e-06/0.2394, allocations: 3.938 kB / 0.794 GB, free: 2.445 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005557/0.24, allocations: 260 kB / 0.7942 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.24, allocations: 55.41 kB / 0.7943 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004113/0.2404, allocations: 413.7 kB / 0.7947 GB, free: 1.711 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.967e-05/0.2404, allocations: 33.7 kB / 0.7947 GB, free: 1.672 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.2406, allocations: 208.2 kB / 0.7949 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.563e-05/0.2406, allocations: 63.09 kB / 0.7949 GB, free: 1.402 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.224e-05/0.2407, allocations: 33.64 kB / 0.795 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2408, allocations: 350.8 kB / 0.7953 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.241, allocations: 55.97 kB / 0.7954 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.2411, allocations: 59.92 kB / 0.7954 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.2414, allocations: 139.2 kB / 0.7956 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.2414, allocations: 0 / 0.7956 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003555/0.2418, allocations: 209.1 kB / 0.7958 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2418, allocations: 4 kB / 0.7958 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-06/0.2418, allocations: 7.938 kB / 0.7958 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.2418, allocations: 4 kB / 0.7958 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.2421, allocations: 55.91 kB / 0.7958 GB, free: 492 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.2421, allocations: 0 / 0.7958 GB, free: 492 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001408/0.2422, allocations: 23.83 kB / 0.7958 GB, free: 468 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.2422, allocations: 3.938 kB / 0.7958 GB, free: 464 kB / 0.6075 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 (20): * Single equations (assignments): 20 * 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.0001429/0.2424, allocations: 166.5 kB / 0.796 GB, free: 288 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.609e-05/0.2424, allocations: 35.53 kB / 0.796 GB, free: 252 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.982e-05/0.2425, allocations: 43.53 kB / 0.7961 GB, free: 204 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.2425, allocations: 4 kB / 0.7961 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2426, allocations: 0 / 0.7961 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2426, allocations: 0 / 0.7961 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003913/0.243, allocations: 377.3 kB / 0.7964 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.243, allocations: 0 / 0.7964 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.2432, allocations: 55.91 kB / 0.7965 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.2432, allocations: 0 / 0.7965 GB, free: 15.72 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.2432, allocations: 7.938 kB / 0.7965 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.2433, allocations: 0 / 0.7965 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2433, allocations: 0 / 0.7965 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000561/0.2438, allocations: 378.9 kB / 0.7969 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.769e-05/0.2439, allocations: 120.7 kB / 0.797 GB, free: 15.19 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.244, allocations: 7.875 kB / 0.797 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.2441, allocations: 11.98 kB / 0.797 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.2442, allocations: 7.984 kB / 0.797 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.001e-05/0.2442, allocations: 12.06 kB / 0.797 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002896/0.2445, allocations: 299.2 kB / 0.7973 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2445, allocations: 0 / 0.7973 GB, free: 14.86 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002923/0.2448, allocations: 71.84 kB / 0.7974 GB, free: 14.79 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0008187/0.2456, allocations: 0.9315 MB / 0.7983 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003453/0.246, allocations: 143.8 kB / 0.7984 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.246, allocations: 0 / 0.7984 GB, free: 13.7 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.2461, allocations: 75.91 kB / 0.7985 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.2467, allocations: 97.42 kB / 0.7986 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004092/0.2508, allocations: 3.476 MB / 0.802 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.2511, allocations: 0.7951 MB / 0.8028 GB, free: 9.145 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001337/0.2513, allocations: 38.95 kB / 0.8028 GB, free: 9.109 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001478/0.2514, allocations: 119.4 kB / 0.8029 GB, free: 8.992 MB / 0.6231 GB Notification: Performance of SimCode: time 8.71e-07/0.2514, allocations: 0 / 0.8029 GB, free: 8.992 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.2763, allocations: 7.858 MB / 0.8106 GB, free: 1.406 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.61/7.886, allocations: 19.98 kB / 0.8106 GB, free: 1.391 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)