Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.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.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",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.001574/0.001574, 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.001941/0.001941, allocations: 195 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.347/1.347, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.651/2.651, allocations: 461.9 MB / 0.7346 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 64.14 kB / 0.8992 GB, free: 36.95 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2903, allocations: 157.4 MB / 1.053 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005312/0.2957, allocations: 4.166 MB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003306/0.299, allocations: 2.421 MB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003882/0.2994, allocations: 12 kB / 1.059 GB, free: 1.59 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001559/0.3011, allocations: 0.5315 MB / 1.06 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005497/0.3016, allocations: 254 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.3019, allocations: 139.8 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0007163/0.3026, allocations: 0.7944 MB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004071/0.303, allocations: 326.5 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002784/0.3033, allocations: 294.8 kB / 1.062 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.3036, allocations: 326.6 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.868e-05/0.3037, allocations: 76 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.3038, allocations: 72 kB / 1.062 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.304, allocations: 171.5 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003048/0.3043, allocations: 382.2 kB / 1.063 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007436/0.305, allocations: 0.9889 MB / 1.064 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.305, allocations: 4 kB / 1.064 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.543e-06/0.3051, allocations: 0 / 1.064 GB, free: 13.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.107e-05/0.3051, allocations: 0 / 1.064 GB, free: 13.27 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001263/0.3063, allocations: 0.9424 MB / 1.065 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.3064, allocations: 12.62 kB / 1.065 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.836e-05/0.3065, allocations: 90.7 kB / 1.065 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.395e-05/0.3066, allocations: 72.09 kB / 1.065 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005171/0.3071, allocations: 461.6 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.3071, allocations: 45.31 kB / 1.065 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.3072, allocations: 48.38 kB / 1.065 GB, free: 11.51 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.3079, allocations: 430.6 kB / 1.066 GB, free: 11.08 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3079, allocations: 7.844 kB / 1.066 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/0.308, allocations: 16 kB / 1.066 GB, free: 11.06 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.308, allocations: 12 kB / 1.066 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006663/0.3087, allocations: 375.7 kB / 1.066 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.3106, allocations: 1.524 MB / 1.068 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.3111, allocations: 347.7 kB / 1.068 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004436/0.3116, allocations: 316.8 kB / 1.068 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.3116, allocations: 11.88 kB / 1.068 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.3116, allocations: 42.48 kB / 1.068 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=42): time 1.693e-06/0.3116, allocations: 0 / 1.068 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of matching and sorting (n=42): time 0.0008985/0.3125, allocations: 498.3 kB / 1.069 GB, free: 7.871 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.3126, allocations: 55.41 kB / 1.069 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005443/0.3131, allocations: 485.9 kB / 1.069 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.3132, allocations: 33.7 kB / 1.069 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001758/0.3134, allocations: 276.3 kB / 1.069 GB, free: 7.004 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.3135, allocations: 145.9 kB / 1.07 GB, free: 6.859 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.135e-05/0.3136, allocations: 58.08 kB / 1.07 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3137, allocations: 366.8 kB / 1.07 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002377/0.314, allocations: 124.7 kB / 1.07 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.3142, allocations: 133.4 kB / 1.07 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005026/0.3147, allocations: 294 kB / 1.071 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.3148, allocations: 0 / 1.071 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006569/0.3154, allocations: 400.1 kB / 1.071 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3154, allocations: 4 kB / 1.071 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3155, allocations: 4 kB / 1.071 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.3155, allocations: 0 / 1.071 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000502/0.316, allocations: 127.8 kB / 1.071 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.316, allocations: 0 / 1.071 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.3162, allocations: 43.58 kB / 1.071 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.3163, allocations: 12 kB / 1.071 GB, free: 5.301 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 (46): * Single equations (assignments): 46 * 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.0002123/0.3165, allocations: 197.7 kB / 1.071 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.84e-05/0.3166, allocations: 55.38 kB / 1.071 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.3167, allocations: 57.11 kB / 1.071 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.3167, allocations: 7.984 kB / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3167, allocations: 0 / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.3167, allocations: 0 / 1.071 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006288/0.3173, allocations: 0.5751 MB / 1.072 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3174, allocations: 3.938 kB / 1.072 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/0.3179, allocations: 127.9 kB / 1.072 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.3179, allocations: 7.938 kB / 1.072 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.3179, allocations: 8 kB / 1.072 GB, free: 4.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3179, allocations: 4 kB / 1.072 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3179, allocations: 0 / 1.072 GB, free: 4.203 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009241/0.3189, allocations: 0.643 MB / 1.073 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.319, allocations: 144.4 kB / 1.073 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/0.3191, allocations: 8 kB / 1.073 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.3193, allocations: 19.92 kB / 1.073 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.3193, allocations: 19.97 kB / 1.073 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.3194, allocations: 16 kB / 1.073 GB, free: 3.32 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003863/0.3198, allocations: 351.1 kB / 1.073 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3198, allocations: 0 / 1.073 GB, free: 2.984 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003796/0.3202, allocations: 143.6 kB / 1.073 GB, free: 2.844 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (intRes2UTub.capFil1.T,intRes2UTub.capFil2.T,intRes2UTub.capFil3.T,intRes2UTub.capFil4.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 (42): * Single equations (assignments): 42 * 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.001223/0.3214, allocations: 1.207 MB / 1.075 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000678/0.3221, allocations: 339.5 kB / 1.075 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3221, allocations: 0 / 1.075 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000276/0.3224, allocations: 179.8 kB / 1.075 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.323, allocations: 125.3 kB / 1.075 GB, free: 0.9805 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006312/0.3293, allocations: 5.019 MB / 1.08 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004331/0.3298, allocations: 0.8704 MB / 1.081 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001988/0.33, allocations: 52.38 kB / 1.081 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002294/0.3302, allocations: 187.4 kB / 1.081 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of SimCode: time 7.01e-07/0.3302, allocations: 0 / 1.081 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4293/0.7595, allocations: 11.24 MB / 1.092 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.31, allocations: 13.06 kB / 1.092 GB, free: 15.78 MB / 0.8575 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)