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.001612/0.001612, 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.002677/0.002678, allocations: 197.1 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.591/1.591, 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.818/1.818, allocations: 292.3 MB / 0.5489 GB, free: 12.82 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.001771/0.001772, allocations: 74.48 kB / 0.6717 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.271, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.00523/0.2763, allocations: 3.037 MB / 0.7865 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002957/0.2792, allocations: 2.181 MB / 0.7886 GB, free: 8.102 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002418/0.2795, allocations: 8 kB / 0.7886 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00151/0.281, allocations: 0.4938 MB / 0.7891 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002895/0.2813, allocations: 150.8 kB / 0.7892 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.2815, allocations: 51.95 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.282, allocations: 453.9 kB / 0.7897 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.2822, allocations: 151.2 kB / 0.7899 GB, free: 6.801 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.2825, allocations: 159.3 kB / 0.79 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.2827, allocations: 183.1 kB / 0.7902 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.2827, allocations: 32 kB / 0.7902 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.531e-05/0.2828, allocations: 36 kB / 0.7903 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.2829, allocations: 95.67 kB / 0.7904 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.2831, allocations: 214.9 kB / 0.7906 GB, free: 6.094 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0005412/0.2837, allocations: 0.5527 MB / 0.7911 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2837, allocations: 0 / 0.7911 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.354e-06/0.2837, allocations: 0 / 0.7911 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.136e-06/0.2837, allocations: 0 / 0.7911 GB, free: 5.539 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.001108/0.2848, allocations: 0.6928 MB / 0.7918 GB, free: 4.797 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.2849, allocations: 16.03 kB / 0.7918 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.174e-05/0.285, allocations: 58.72 kB / 0.7918 GB, free: 4.715 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.676e-05/0.2851, allocations: 48.38 kB / 0.7919 GB, free: 4.668 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.2856, allocations: 370.1 kB / 0.7922 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.2856, allocations: 16.75 kB / 0.7923 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.457e-05/0.2856, allocations: 24.38 kB / 0.7923 GB, free: 4.223 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.2861, allocations: 203.4 kB / 0.7925 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.2861, allocations: 4 kB / 0.7925 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.2861, allocations: 4 kB / 0.7925 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2861, allocations: 8 kB / 0.7925 GB, free: 4.008 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.2865, allocations: 165.7 kB / 0.7927 GB, free: 3.844 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.2878, allocations: 0.87 MB / 0.7935 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.2881, allocations: 154.6 kB / 0.7937 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002304/0.2883, allocations: 115.9 kB / 0.7938 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.2884, allocations: 0 / 0.7938 GB, free: 2.633 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.155e-05/0.2884, allocations: 34.56 kB / 0.7938 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=18): time 3.477e-06/0.2884, allocations: 0 / 0.7938 GB, free: 2.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18): time 0.0006225/0.2891, allocations: 264.2 kB / 0.794 GB, free: 2.328 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.2891, allocations: 51.41 kB / 0.7941 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004646/0.2896, allocations: 425.7 kB / 0.7945 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.2896, allocations: 29.64 kB / 0.7945 GB, free: 1.809 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.2898, allocations: 208.2 kB / 0.7947 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.229e-05/0.2898, allocations: 63.09 kB / 0.7948 GB, free: 1.539 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.206e-05/0.2899, allocations: 29.72 kB / 0.7948 GB, free: 1.504 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2901, allocations: 346.8 kB / 0.7951 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.2902, allocations: 55.97 kB / 0.7952 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2904, allocations: 63.92 kB / 0.7953 GB, free: 1.039 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002982/0.2907, allocations: 135.5 kB / 0.7954 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.2907, allocations: 0 / 0.7954 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003868/0.2911, allocations: 209.1 kB / 0.7956 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.2911, allocations: 8 kB / 0.7956 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.2911, allocations: 7.922 kB / 0.7956 GB, free: 0.6797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.2911, allocations: 4 kB / 0.7956 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.2914, allocations: 55.89 kB / 0.7957 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.2914, allocations: 4 kB / 0.7957 GB, free: 0.6172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.2915, allocations: 15.84 kB / 0.7957 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.2916, allocations: 4 kB / 0.7957 GB, free: 0.5977 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 (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.0001617/0.2917, allocations: 166.4 kB / 0.7958 GB, free: 436 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.858e-05/0.2918, allocations: 35.53 kB / 0.7959 GB, free: 400 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.003e-05/0.2919, allocations: 51.52 kB / 0.7959 GB, free: 344 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.2919, allocations: 4 kB / 0.7959 GB, free: 340 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.2919, allocations: 0 / 0.7959 GB, free: 340 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.2919, allocations: 7.984 kB / 0.7959 GB, free: 332 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004362/0.2923, allocations: 369.3 kB / 0.7963 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.2924, allocations: 0 / 0.7963 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.2926, allocations: 59.91 kB / 0.7963 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2926, allocations: 3.984 kB / 0.7964 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.654e-05/0.2926, allocations: 7.938 kB / 0.7964 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2927, allocations: 0 / 0.7964 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2927, allocations: 4 kB / 0.7964 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005928/0.2933, allocations: 366.9 kB / 0.7967 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.2934, allocations: 120.7 kB / 0.7968 GB, free: 15.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.891e-05/0.2934, allocations: 7.938 kB / 0.7968 GB, free: 15.32 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001511/0.2936, allocations: 11.92 kB / 0.7968 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.108e-05/0.2937, allocations: 20.05 kB / 0.7969 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.345e-06/0.2937, allocations: 4 kB / 0.7969 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003181/0.294, allocations: 299.1 kB / 0.7972 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.294, allocations: 0 / 0.7972 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003097/0.2943, allocations: 75.84 kB / 0.7972 GB, free: 14.92 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.0009116/0.2952, allocations: 0.9256 MB / 0.7981 GB, free: 13.97 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0003872/0.2956, allocations: 161.8 kB / 0.7983 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2956, allocations: 0 / 0.7983 GB, free: 13.81 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.2958, allocations: 75.91 kB / 0.7984 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006692/0.2965, allocations: 85.58 kB / 0.7984 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004507/0.301, allocations: 3.536 MB / 0.8019 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.3014, allocations: 0.7989 MB / 0.8027 GB, free: 9.211 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001281/0.3015, allocations: 30.97 kB / 0.8027 GB, free: 9.184 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.3017, allocations: 119.4 kB / 0.8028 GB, free: 9.066 MB / 0.6231 GB Notification: Performance of SimCode: time 5.91e-07/0.3017, allocations: 0 / 0.8028 GB, free: 9.066 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.3278, allocations: 7.857 MB / 0.8105 GB, free: 1.469 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.642/7.97, allocations: 19.23 kB / 0.8105 GB, free: 1.453 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)