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.00132/0.00132, allocations: 101.4 kB / 15.69 MB, free: 140 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.001494/0.001494, allocations: 196.8 kB / 16.63 MB, free: 6.621 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.397/1.397, 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.79 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.001364/0.001364, allocations: 73.5 kB / 0.6718 GB, free: 26.06 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.205/0.2064, allocations: 114.6 MB / 0.7837 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004164/0.2106, allocations: 3.038 MB / 0.7866 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002668/0.2133, allocations: 2.181 MB / 0.7888 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002729/0.2136, allocations: 8 kB / 0.7888 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.2151, allocations: 0.4977 MB / 0.7893 GB, free: 7.453 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003011/0.2154, allocations: 150.8 kB / 0.7894 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001185/0.2155, allocations: 59.94 kB / 0.7895 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.216, allocations: 449.8 kB / 0.7899 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.2162, allocations: 151.2 kB / 0.79 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/0.2164, allocations: 151.3 kB / 0.7902 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002046/0.2166, allocations: 187.1 kB / 0.7904 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.206e-05/0.2167, allocations: 32 kB / 0.7904 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.036e-05/0.2167, allocations: 36 kB / 0.7904 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.976e-05/0.2168, allocations: 99.67 kB / 0.7905 GB, free: 6.156 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.217, allocations: 214.9 kB / 0.7907 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.2174, allocations: 0.5489 MB / 0.7913 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2174, allocations: 0 / 0.7913 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2174, allocations: 0 / 0.7913 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.2174, allocations: 0 / 0.7913 GB, free: 5.395 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.0009056/0.2184, allocations: 0.6967 MB / 0.7919 GB, free: 4.648 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.2184, allocations: 15.97 kB / 0.792 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.652e-05/0.2185, allocations: 54.73 kB / 0.792 GB, free: 4.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.447e-05/0.2185, allocations: 48.38 kB / 0.7921 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004556/0.219, allocations: 386 kB / 0.7924 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.219, allocations: 12.81 kB / 0.7924 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.671e-05/0.2191, allocations: 20.38 kB / 0.7925 GB, free: 4.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.2194, allocations: 211.4 kB / 0.7927 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2194, allocations: 0 / 0.7927 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.965e-05/0.2195, allocations: 8 kB / 0.7927 GB, free: 3.855 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.2195, allocations: 4 kB / 0.7927 GB, free: 3.852 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003506/0.2198, allocations: 161.7 kB / 0.7928 GB, free: 3.691 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.2209, allocations: 0.8661 MB / 0.7937 GB, free: 2.758 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002699/0.2212, allocations: 154.6 kB / 0.7938 GB, free: 2.598 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.2214, allocations: 108.8 kB / 0.7939 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.2214, allocations: 4 kB / 0.7939 GB, free: 2.484 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.2214, allocations: 34.56 kB / 0.794 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 2.335e-06/0.2214, allocations: 0 / 0.794 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0005646/0.222, allocations: 260.7 kB / 0.7942 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.222, allocations: 55.41 kB / 0.7943 GB, free: 2.117 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.2224, allocations: 421.7 kB / 0.7947 GB, free: 1.699 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.2225, allocations: 29.7 kB / 0.7947 GB, free: 1.664 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.2226, allocations: 204.2 kB / 0.7949 GB, free: 1.461 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.118e-05/0.2226, allocations: 67.08 kB / 0.7949 GB, free: 1.395 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.2227, allocations: 33.72 kB / 0.795 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2228, allocations: 342.8 kB / 0.7953 GB, free: 1.012 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.223, allocations: 55.97 kB / 0.7954 GB, free: 0.957 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.2231, allocations: 59.92 kB / 0.7954 GB, free: 0.8984 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.2234, allocations: 139.5 kB / 0.7955 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2234, allocations: 0 / 0.7955 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003572/0.2237, allocations: 209.1 kB / 0.7957 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.2238, allocations: 4 kB / 0.7957 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.2238, allocations: 3.938 kB / 0.7958 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2238, allocations: 4 kB / 0.7958 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002409/0.224, allocations: 67.88 kB / 0.7958 GB, free: 484 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2241, allocations: 0 / 0.7958 GB, free: 484 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00014/0.2242, allocations: 19.84 kB / 0.7958 GB, free: 464 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.2242, allocations: 7.938 kB / 0.7958 GB, free: 456 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.0001312/0.2244, allocations: 162.5 kB / 0.796 GB, free: 284 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.357e-05/0.2244, allocations: 35.53 kB / 0.796 GB, free: 248 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.857e-05/0.2245, allocations: 43.53 kB / 0.7961 GB, free: 200 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.2245, allocations: 3.984 kB / 0.7961 GB, free: 196 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2245, allocations: 8 kB / 0.7961 GB, free: 188 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2245, allocations: 3.938 kB / 0.7961 GB, free: 184 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003664/0.2249, allocations: 373.3 kB / 0.7964 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2249, allocations: 0 / 0.7964 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.2252, allocations: 55.89 kB / 0.7965 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.2252, allocations: 4 kB / 0.7965 GB, free: 15.71 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.545e-05/0.2252, allocations: 7.938 kB / 0.7965 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2252, allocations: 0 / 0.7965 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2252, allocations: 0 / 0.7965 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005564/0.2258, allocations: 373.3 kB / 0.7969 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 8.374e-05/0.2259, allocations: 120.7 kB / 0.797 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.447e-05/0.2259, allocations: 7.938 kB / 0.797 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.2261, allocations: 11.92 kB / 0.797 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.109e-05/0.2261, allocations: 15.98 kB / 0.797 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.2261, allocations: 0 / 0.797 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0002776/0.2264, allocations: 307.2 kB / 0.7973 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2264, allocations: 0 / 0.7973 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0002836/0.2267, allocations: 75.84 kB / 0.7974 GB, free: 14.77 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.0007909/0.2275, allocations: 0.9255 MB / 0.7983 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003326/0.2278, allocations: 143.8 kB / 0.7984 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2279, allocations: 0 / 0.7984 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001537/0.228, allocations: 79.91 kB / 0.7985 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005079/0.2285, allocations: 91.94 kB / 0.7986 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003948/0.2325, allocations: 3.479 MB / 0.802 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.2328, allocations: 0.7951 MB / 0.8028 GB, free: 9.137 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001214/0.2329, allocations: 34.97 kB / 0.8028 GB, free: 9.105 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.2331, allocations: 119.4 kB / 0.8029 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of SimCode: time 4.41e-07/0.2331, allocations: 0 / 0.8029 GB, free: 8.988 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.2586, allocations: 7.854 MB / 0.8106 GB, free: 1.406 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.755/8.014, allocations: 16.61 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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-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)