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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001602/0.001602, 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.00194/0.001941, allocations: 191.4 kB / 16.53 MB, free: 6.391 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.484/1.484, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.693/2.693, allocations: 461.9 MB / 0.7346 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 65.23 kB / 0.8992 GB, free: 36.79 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2864, allocations: 157.4 MB / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004188/0.2906, allocations: 3.055 MB / 1.056 GB, free: 5.164 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002639/0.2933, allocations: 2.156 MB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002658/0.2935, allocations: 4 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001426/0.295, allocations: 0.4899 MB / 1.059 GB, free: 2.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.2954, allocations: 146.8 kB / 1.059 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.2955, allocations: 63.94 kB / 1.059 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.296, allocations: 448.9 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002323/0.2963, allocations: 151.2 kB / 1.059 GB, free: 1.707 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002211/0.2965, allocations: 155.3 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.2967, allocations: 187.2 kB / 1.06 GB, free: 1.371 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.895e-05/0.2968, allocations: 36 kB / 1.06 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.411e-05/0.2969, allocations: 32 kB / 1.06 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.297, allocations: 99.61 kB / 1.06 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.2972, allocations: 215 kB / 1.06 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004264/0.2976, allocations: 0.545 MB / 1.061 GB, free: 460 kB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.2976, allocations: 0 / 1.061 GB, free: 460 kB / 0.8106 GB Notification: Performance of FrontEnd: time 1.283e-06/0.2976, allocations: 0 / 1.061 GB, free: 460 kB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.358e-05/0.2976, allocations: 0 / 1.061 GB, free: 460 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.0009928/0.2987, allocations: 0.7006 MB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2987, allocations: 8.625 kB / 1.061 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.767e-05/0.2988, allocations: 58.72 kB / 1.061 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.62e-05/0.2988, allocations: 44.38 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004224/0.2993, allocations: 374.1 kB / 1.062 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.2993, allocations: 20.81 kB / 1.062 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.2993, allocations: 16.38 kB / 1.062 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000361/0.2997, allocations: 203.4 kB / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2997, allocations: 0 / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.975e-05/0.2997, allocations: 8 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.071e-05/0.2998, allocations: 11.98 kB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.3001, allocations: 165.6 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.3012, allocations: 0.8701 MB / 1.063 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.3015, allocations: 154.5 kB / 1.063 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.3017, allocations: 112.8 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.3017, allocations: 4 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.3018, allocations: 30.56 kB / 1.063 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=18): time 1.252e-06/0.3018, allocations: 4 kB / 1.063 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18): time 0.0005537/0.3023, allocations: 250.8 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.3024, allocations: 63.28 kB / 1.063 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004014/0.3028, allocations: 413.7 kB / 1.064 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3028, allocations: 33.7 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.3029, allocations: 208.1 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.348e-05/0.303, allocations: 67.03 kB / 1.064 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.071e-05/0.303, allocations: 37.7 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.3032, allocations: 350.8 kB / 1.065 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.3033, allocations: 51.97 kB / 1.065 GB, free: 12 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.3034, allocations: 55.97 kB / 1.065 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002707/0.3037, allocations: 134.4 kB / 1.065 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3037, allocations: 4 kB / 1.065 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003603/0.3041, allocations: 207 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.3041, allocations: 9.969 kB / 1.065 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.3041, allocations: 7.922 kB / 1.065 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.3041, allocations: 0 / 1.065 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.3044, allocations: 55.97 kB / 1.065 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.3044, allocations: 0 / 1.065 GB, free: 11.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.3045, allocations: 15.89 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.3046, allocations: 8 kB / 1.065 GB, free: 11.5 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.0001355/0.3047, allocations: 171.2 kB / 1.065 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.75e-05/0.3048, allocations: 39.53 kB / 1.065 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.732e-05/0.3048, allocations: 43.53 kB / 1.065 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-06/0.3048, allocations: 4 kB / 1.065 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3048, allocations: 0 / 1.065 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.3049, allocations: 3.984 kB / 1.065 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.3052, allocations: 365.4 kB / 1.066 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3052, allocations: 8 kB / 1.066 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.3055, allocations: 47.97 kB / 1.066 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.3055, allocations: 3.938 kB / 1.066 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.775e-05/0.3055, allocations: 11.94 kB / 1.066 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3055, allocations: 0 / 1.066 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.3055, allocations: 3.984 kB / 1.066 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005447/0.3061, allocations: 378.8 kB / 1.066 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.508e-05/0.3061, allocations: 116.6 kB / 1.066 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.318e-05/0.3062, allocations: 11.94 kB / 1.066 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.3064, allocations: 11.98 kB / 1.066 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/0.3064, allocations: 7.984 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3064, allocations: 4 kB / 1.066 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002856/0.3067, allocations: 307.1 kB / 1.067 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3067, allocations: 0 / 1.067 GB, free: 9.902 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002854/0.307, allocations: 71.91 kB / 1.067 GB, free: 9.832 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.0007834/0.3078, allocations: 0.9279 MB / 1.068 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003518/0.3082, allocations: 157.8 kB / 1.068 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3082, allocations: 0 / 1.068 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001538/0.3083, allocations: 81.92 kB / 1.068 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.3088, allocations: 89.45 kB / 1.068 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.3128, allocations: 3.532 MB / 1.071 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.3131, allocations: 0.7912 MB / 1.072 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001179/0.3132, allocations: 34.97 kB / 1.072 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.3134, allocations: 119.4 kB / 1.072 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3134, allocations: 3.938 kB / 1.072 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.171/1.484, allocations: 7.844 MB / 1.08 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/12.15, allocations: 9.375 kB / 1.08 GB, free: 12.38 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)