Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.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.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance",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.001268/0.001268, allocations: 105.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.001328/0.001328, allocations: 195.1 kB / 16.63 MB, free: 6.328 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.376/1.376, 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.818/1.818, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001571/0.001571, allocations: 78.05 kB / 0.6718 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2061, allocations: 114.5 MB / 0.7836 GB, free: 13.27 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002541/0.2087, allocations: 1.299 MB / 0.7849 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004668/0.2134, allocations: 3.753 MB / 0.7886 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.05e-05/0.2135, allocations: 0 / 0.7886 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.235e-05/0.2136, allocations: 3.938 kB / 0.7886 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0005295/0.2141, allocations: 99.47 kB / 0.7887 GB, free: 8.082 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.2145, allocations: 135.5 kB / 0.7888 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.394e-05/0.2146, allocations: 27.91 kB / 0.7888 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.2146, allocations: 0 / 0.7888 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001108/0.2147, allocations: 31.8 kB / 0.7888 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001037/0.2149, allocations: 39.89 kB / 0.7889 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.926e-06/0.2149, allocations: 0 / 0.7889 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004841/0.2154, allocations: 299.6 kB / 0.7892 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.496e-05/0.2154, allocations: 11.92 kB / 0.7892 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 1.973e-05/0.2154, allocations: 4 kB / 0.7892 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.2156, allocations: 124 kB / 0.7893 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2157, allocations: 0 / 0.7893 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2157, allocations: 0 / 0.7893 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.2157, allocations: 4 kB / 0.7893 GB, free: 7.418 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003885/0.2161, allocations: 351.4 kB / 0.7896 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.2161, allocations: 12.03 kB / 0.7897 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.2162, allocations: 34.73 kB / 0.7897 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.244e-05/0.2162, allocations: 0.9375 kB / 0.7897 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.2163, allocations: 172.2 kB / 0.7899 GB, free: 6.766 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.2163, allocations: 4.375 kB / 0.7899 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.2163, allocations: 384 / 0.7899 GB, free: 6.762 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.354e-05/0.2164, allocations: 37.64 kB / 0.7899 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.2164, allocations: 3.938 kB / 0.7899 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.2165, allocations: 0 / 0.7899 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.2165, allocations: 3.984 kB / 0.7899 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.22e-05/0.2165, allocations: 4 kB / 0.7899 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001628/0.2167, allocations: 161.6 kB / 0.7901 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 4.904e-05/0.2167, allocations: 30.55 kB / 0.7901 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.841e-05/0.2168, allocations: 8.859 kB / 0.7901 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002619/0.217, allocations: 101.1 kB / 0.7902 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.2171, allocations: 30.56 kB / 0.7902 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.2171, allocations: 0 / 0.7902 GB, free: 6.293 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001491/0.2172, allocations: 49.69 kB / 0.7903 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.648e-05/0.2173, allocations: 51.41 kB / 0.7903 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.2174, allocations: 109.8 kB / 0.7904 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.2174, allocations: 25.7 kB / 0.7904 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.211e-05/0.2174, allocations: 80.14 kB / 0.7905 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.2174, allocations: 7.844 kB / 0.7905 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.2175, allocations: 13.72 kB / 0.7905 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2176, allocations: 315 kB / 0.7908 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.2177, allocations: 11.98 kB / 0.7909 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.298e-06/0.2177, allocations: 0 / 0.7909 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.12e-05/0.2177, allocations: 16.86 kB / 0.7909 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2177, allocations: 0 / 0.7909 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.419e-05/0.2178, allocations: 37.64 kB / 0.7909 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2178, allocations: 8.875 kB / 0.7909 GB, free: 5.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2178, allocations: 4 kB / 0.7909 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.2178, allocations: 0 / 0.7909 GB, free: 5.516 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.794e-05/0.2179, allocations: 12.02 kB / 0.7909 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.2179, allocations: 4 kB / 0.7909 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.742e-05/0.2179, allocations: 0 / 0.7909 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.2179, allocations: 0 / 0.7909 GB, free: 5.5 MB / 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 (2): * Single equations (assignments): 2 * 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 9.175e-05/0.218, allocations: 113.8 kB / 0.791 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.481e-05/0.2181, allocations: 11.84 kB / 0.7911 GB, free: 5.367 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001171/0.2182, allocations: 44.81 kB / 0.7911 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2182, allocations: 0 / 0.7911 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.2182, allocations: 8.031 kB / 0.7911 GB, free: 5.309 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2182, allocations: 3.938 kB / 0.7911 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.2183, allocations: 153.7 kB / 0.7913 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2183, allocations: 3.938 kB / 0.7913 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.168e-05/0.2184, allocations: 4 kB / 0.7913 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.2184, allocations: 0 / 0.7913 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.2184, allocations: 0 / 0.7913 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.2184, allocations: 3.938 kB / 0.7913 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2184, allocations: 0 / 0.7913 GB, free: 5.094 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.443e-05/0.2185, allocations: 69.12 kB / 0.7913 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.449e-05/0.2186, allocations: 81.05 kB / 0.7914 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.057e-05/0.2186, allocations: 0 / 0.7914 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.381e-05/0.2186, allocations: 0 / 0.7914 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.654e-05/0.2186, allocations: 7.984 kB / 0.7914 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-06/0.2186, allocations: 0 / 0.7914 GB, free: 4.902 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.021e-05/0.2187, allocations: 87.53 kB / 0.7915 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2187, allocations: 0 / 0.7915 GB, free: 4.816 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002168/0.2189, allocations: 20.03 kB / 0.7915 GB, free: 4.797 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0004267/0.2193, allocations: 0.6396 MB / 0.7921 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 7.528e-05/0.2194, allocations: 12 kB / 0.7922 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2194, allocations: 0 / 0.7922 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.156e-05/0.2194, allocations: 8.094 kB / 0.7922 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.2197, allocations: 4 kB / 0.7922 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004381/0.2201, allocations: 177.2 kB / 0.7923 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002359/0.2203, allocations: 0.6768 MB / 0.793 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.899e-05/0.2204, allocations: 4.062 kB / 0.793 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.005e-05/0.2204, allocations: 11.44 kB / 0.793 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of SimCode: time 2.9e-07/0.2204, allocations: 0 / 0.793 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.2393, allocations: 1.655 MB / 0.7946 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.54/7.779, allocations: 5.906 kB / 0.7946 GB, free: 1.668 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Boreholes_BaseClasses_Examples_ConvectionResistance.fmu > Buildings_8_Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance.pipe 2>&1)