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.001686/0.001686, allocations: 108 kB / 15.6 MB, free: 132 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.002214/0.002214, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.507/1.507, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.812/1.812, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.002361/0.002361, allocations: 70.27 kB / 0.6716 GB, free: 26.33 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2705, allocations: 114.5 MB / 0.7835 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Boreholes.BaseClasses.Examples.ConvectionResistance): time 0.002628/0.2732, allocations: 1.29 MB / 0.7847 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004457/0.2776, allocations: 3.749 MB / 0.7884 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.318e-05/0.2777, allocations: 0 / 0.7884 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.693e-05/0.2777, allocations: 3.984 kB / 0.7884 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004608/0.2782, allocations: 103.5 kB / 0.7885 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.2786, allocations: 131.5 kB / 0.7886 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.689e-05/0.2787, allocations: 23.92 kB / 0.7887 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.024e-05/0.2787, allocations: 8 kB / 0.7887 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.2789, allocations: 31.78 kB / 0.7887 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.657e-05/0.279, allocations: 39.89 kB / 0.7887 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.279, allocations: 4 kB / 0.7887 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004643/0.2795, allocations: 299.6 kB / 0.789 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.2795, allocations: 3.938 kB / 0.789 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.537e-05/0.2795, allocations: 8 kB / 0.789 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.2797, allocations: 124 kB / 0.7891 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.2797, allocations: 0 / 0.7891 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.573e-06/0.2797, allocations: 0 / 0.7891 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.401e-06/0.2798, allocations: 0 / 0.7891 GB, free: 7.602 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.0004208/0.2802, allocations: 361.8 kB / 0.7895 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.2802, allocations: 8.031 kB / 0.7895 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.496e-05/0.2803, allocations: 38.67 kB / 0.7895 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.2803, allocations: 4.938 kB / 0.7895 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.2804, allocations: 164.3 kB / 0.7897 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.428e-06/0.2805, allocations: 4.375 kB / 0.7897 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.2805, allocations: 8.359 kB / 0.7897 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.056e-05/0.2806, allocations: 33.64 kB / 0.7897 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.2806, allocations: 3.938 kB / 0.7897 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.2806, allocations: 4 kB / 0.7898 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.2806, allocations: 0 / 0.7898 GB, free: 6.887 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.565e-05/0.2806, allocations: 7.984 kB / 0.7898 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000191/0.2808, allocations: 153.7 kB / 0.7899 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 5.287e-05/0.2809, allocations: 26.52 kB / 0.7899 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.505e-05/0.2809, allocations: 8.922 kB / 0.7899 GB, free: 6.633 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002654/0.2812, allocations: 101 kB / 0.79 GB, free: 6.516 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.2812, allocations: 34.56 kB / 0.7901 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.2812, allocations: 0 / 0.7901 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.0001546/0.2814, allocations: 41.69 kB / 0.7901 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.63e-05/0.2815, allocations: 59.34 kB / 0.7902 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.938e-05/0.2816, allocations: 101.8 kB / 0.7903 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/0.2816, allocations: 25.83 kB / 0.7903 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.476e-05/0.2816, allocations: 84.14 kB / 0.7904 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.2816, allocations: 7.906 kB / 0.7904 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.919e-05/0.2817, allocations: 13.72 kB / 0.7904 GB, free: 6.102 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001366/0.2818, allocations: 314.8 kB / 0.7907 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.345e-05/0.2818, allocations: 0 / 0.7907 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.387e-05/0.2819, allocations: 7.984 kB / 0.7907 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.243e-05/0.2819, allocations: 12.86 kB / 0.7907 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2819, allocations: 4.062 kB / 0.7907 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.568e-05/0.282, allocations: 45.58 kB / 0.7908 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.282, allocations: 4 kB / 0.7908 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.282, allocations: 3.938 kB / 0.7908 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.282, allocations: 0 / 0.7908 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.897e-05/0.2821, allocations: 11.98 kB / 0.7908 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2821, allocations: 0 / 0.7908 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.577e-05/0.2821, allocations: 0 / 0.7908 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.2821, allocations: 7.984 kB / 0.7908 GB, free: 5.68 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 6.994e-05/0.2822, allocations: 113.8 kB / 0.7909 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.2822, allocations: 7.844 kB / 0.7909 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.2823, allocations: 48.81 kB / 0.7909 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2823, allocations: 0 / 0.7909 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.2824, allocations: 256 / 0.7909 GB, free: 5.496 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2824, allocations: 3.938 kB / 0.7909 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001022/0.2825, allocations: 157.7 kB / 0.7911 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.2825, allocations: 3.938 kB / 0.7911 GB, free: 5.285 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.205e-05/0.2825, allocations: 7.969 kB / 0.7911 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2825, allocations: 4 kB / 0.7911 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.2825, allocations: 0 / 0.7911 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.2825, allocations: 4 kB / 0.7911 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2825, allocations: 0 / 0.7911 GB, free: 5.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.69e-05/0.2826, allocations: 61.12 kB / 0.7912 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.2827, allocations: 85.05 kB / 0.7913 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.2827, allocations: 0 / 0.7913 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.406e-05/0.2827, allocations: 4.031 kB / 0.7913 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.688e-05/0.2827, allocations: 3.984 kB / 0.7913 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.2828, allocations: 4 kB / 0.7913 GB, free: 5.078 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.821e-05/0.2828, allocations: 79.28 kB / 0.7913 GB, free: 5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2828, allocations: 4 kB / 0.7913 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002071/0.283, allocations: 20 kB / 0.7914 GB, free: 4.977 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.0004309/0.2835, allocations: 0.6474 MB / 0.792 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 8.68e-05/0.2836, allocations: 8 kB / 0.792 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2836, allocations: 0 / 0.792 GB, free: 4.293 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 1.383e-05/0.2836, allocations: 7.938 kB / 0.792 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002332/0.2838, allocations: 0 / 0.792 GB, free: 4.285 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004221/0.2843, allocations: 173.5 kB / 0.7922 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.2845, allocations: 0.6806 MB / 0.7928 GB, free: 3.371 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.723e-05/0.2846, allocations: 4 kB / 0.7928 GB, free: 3.367 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/0.2846, allocations: 7.438 kB / 0.7929 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2846, allocations: 4 kB / 0.7929 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01858/0.3032, allocations: 1.636 MB / 0.7945 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.738/8.041, allocations: 2.875 kB / 0.7945 GB, free: 1.852 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)