Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_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_latest_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.001277/0.001277, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 190.8 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.555/2.555, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 65.53 kB / 0.8985 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2773/0.2786, allocations: 157.4 MB / 1.052 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004287/0.2829, allocations: 3.091 MB / 1.055 GB, free: 5.035 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002701/0.2856, allocations: 2.114 MB / 1.057 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002851/0.2859, allocations: 4 kB / 1.057 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001745/0.2877, allocations: 478 kB / 1.058 GB, free: 2.438 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005339/0.2883, allocations: 135.1 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.2885, allocations: 51.97 kB / 1.058 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007744/0.2893, allocations: 465.9 kB / 1.058 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002776/0.2896, allocations: 123.9 kB / 1.059 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003057/0.2899, allocations: 147.3 kB / 1.059 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003063/0.2902, allocations: 183.2 kB / 1.059 GB, free: 1.352 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.894e-05/0.2903, allocations: 20 kB / 1.059 GB, free: 1.332 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.139e-05/0.2903, allocations: 24 kB / 1.059 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.2905, allocations: 87.61 kB / 1.059 GB, free: 1.223 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.2907, allocations: 207 kB / 1.059 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004725/0.2912, allocations: 0.5293 MB / 1.06 GB, free: 500 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2912, allocations: 4 kB / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of FrontEnd: time 8.42e-07/0.2912, allocations: 0 / 1.06 GB, free: 496 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.365e-05/0.2913, allocations: 0 / 1.06 GB, free: 496 kB / 0.8106 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.001096/0.2924, allocations: 0.7007 MB / 1.06 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2924, allocations: 15.91 kB / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.031e-05/0.2925, allocations: 58.72 kB / 1.06 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.907e-05/0.2926, allocations: 48.38 kB / 1.06 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.2931, allocations: 374 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.2931, allocations: 20.81 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.2931, allocations: 24.38 kB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003987/0.2935, allocations: 203.4 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2936, allocations: 4 kB / 1.061 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.062e-05/0.2936, allocations: 8 kB / 1.061 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.2936, allocations: 8 kB / 1.061 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003765/0.294, allocations: 157.7 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.2952, allocations: 0.8661 MB / 1.062 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.2955, allocations: 158.5 kB / 1.062 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.2957, allocations: 120.8 kB / 1.062 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.2957, allocations: 0 / 1.062 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.2958, allocations: 34.56 kB / 1.062 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/0.2958, allocations: 0 / 1.062 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.000597/0.2964, allocations: 254.5 kB / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.2964, allocations: 55.41 kB / 1.063 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004595/0.2969, allocations: 413.7 kB / 1.063 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.2969, allocations: 29.7 kB / 1.063 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.2971, allocations: 212.1 kB / 1.063 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.2971, allocations: 67.03 kB / 1.063 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.2972, allocations: 33.7 kB / 1.063 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2973, allocations: 346.8 kB / 1.064 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.2975, allocations: 63.91 kB / 1.064 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001292/0.2976, allocations: 55.97 kB / 1.064 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.2979, allocations: 131.4 kB / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2979, allocations: 0 / 1.064 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003675/0.2983, allocations: 209.1 kB / 1.064 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.2983, allocations: 5.406 kB / 1.064 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2983, allocations: 11.94 kB / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.2983, allocations: 0 / 1.064 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.2986, allocations: 51.91 kB / 1.064 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.2986, allocations: 3.984 kB / 1.064 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001545/0.2988, allocations: 19.91 kB / 1.064 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.2988, allocations: 7.984 kB / 1.064 GB, free: 11.52 MB / 0.8262 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.0001499/0.2989, allocations: 165.8 kB / 1.064 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.908e-05/0.299, allocations: 35.53 kB / 1.064 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.27e-05/0.2991, allocations: 47.52 kB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2991, allocations: 3.938 kB / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2991, allocations: 0 / 1.065 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.2991, allocations: 7.938 kB / 1.065 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003912/0.2995, allocations: 365.4 kB / 1.065 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.2995, allocations: 0 / 1.065 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002478/0.2998, allocations: 55.95 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2998, allocations: 3.938 kB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.2998, allocations: 11.94 kB / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2998, allocations: 0 / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2998, allocations: 0 / 1.065 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005676/0.3004, allocations: 380.2 kB / 1.065 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.324e-05/0.3005, allocations: 124.6 kB / 1.065 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.641e-05/0.3005, allocations: 8 kB / 1.065 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001656/0.3007, allocations: 16 kB / 1.065 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.822e-05/0.3008, allocations: 11.97 kB / 1.065 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.538e-06/0.3008, allocations: 4 kB / 1.065 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003035/0.3011, allocations: 299.2 kB / 1.066 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3011, allocations: 4 kB / 1.066 GB, free: 9.914 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002945/0.3014, allocations: 67.84 kB / 1.066 GB, free: 9.848 MB / 0.8262 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.0008501/0.3023, allocations: 0.9282 MB / 1.067 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003268/0.3026, allocations: 150.2 kB / 1.067 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3026, allocations: 8.062 kB / 1.067 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001531/0.3028, allocations: 79.81 kB / 1.067 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005727/0.3034, allocations: 83.89 kB / 1.067 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00435/0.3077, allocations: 3.629 MB / 1.071 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003418/0.3081, allocations: 0.7953 MB / 1.071 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000131/0.3082, allocations: 42.94 kB / 1.071 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001533/0.3084, allocations: 111.4 kB / 1.071 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.3084, allocations: 0 / 1.071 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.3352, allocations: 7.493 MB / 1.079 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002451/0.3354, allocations: 284.1 kB / 1.079 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.913/2.248, allocations: 0 / 1.079 GB, free: 12.31 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)