Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001401/0.001401, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001261/0.001261, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.354/1.354, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.415/2.415, allocations: 437 MB / 0.7101 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.89 kB / 0.8689 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7576/0.7589, allocations: 151.6 MB / 1.017 GB, free: 2.672 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005778/0.7647, allocations: 4.174 MB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003782/0.7685, allocations: 2.381 MB / 1.023 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006244/0.7692, allocations: 8 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001928/0.7711, allocations: 0.5056 MB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0007642/0.7719, allocations: 218.4 kB / 1.024 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003355/0.7723, allocations: 115.9 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001149/0.7734, allocations: 0.8098 MB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005512/0.774, allocations: 326.5 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004639/0.7745, allocations: 295 kB / 1.026 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004873/0.775, allocations: 338.6 kB / 1.026 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001221/0.7751, allocations: 72 kB / 1.026 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.7753, allocations: 76 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.7755, allocations: 175.4 kB / 1.026 GB, free: 9.168 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0004859/0.776, allocations: 382.2 kB / 1.027 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0009211/0.7769, allocations: 0.9772 MB / 1.028 GB, free: 7.812 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.7769, allocations: 8 kB / 1.028 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.7769, allocations: 0 / 1.028 GB, free: 7.805 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.609e-05/0.777, allocations: 0 / 1.028 GB, free: 7.805 MB / 0.7794 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.00182/0.7788, allocations: 0.9462 MB / 1.028 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.7788, allocations: 12.03 kB / 1.028 GB, free: 6.793 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001202/0.779, allocations: 86.7 kB / 1.029 GB, free: 6.699 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.7791, allocations: 76.09 kB / 1.029 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007134/0.7799, allocations: 445.7 kB / 1.029 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.803e-05/0.7799, allocations: 41.38 kB / 1.029 GB, free: 6.109 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.693e-05/0.78, allocations: 48.38 kB / 1.029 GB, free: 6.062 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008382/0.7808, allocations: 438.5 kB / 1.03 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.7809, allocations: 4 kB / 1.03 GB, free: 5.621 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.7809, allocations: 20 kB / 1.03 GB, free: 5.602 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.7809, allocations: 8 kB / 1.03 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007356/0.7817, allocations: 367.8 kB / 1.03 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002135/0.7838, allocations: 1.547 MB / 1.031 GB, free: 3.617 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005016/0.7843, allocations: 334.9 kB / 1.032 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.7848, allocations: 327.3 kB / 1.032 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.7849, allocations: 8.625 kB / 1.032 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.7849, allocations: 34.56 kB / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 2.184e-06/0.7849, allocations: 0 / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.0009747/0.7859, allocations: 0.4886 MB / 1.033 GB, free: 2.414 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.7859, allocations: 67.06 kB / 1.033 GB, free: 2.336 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006002/0.7865, allocations: 489.9 kB / 1.033 GB, free: 1.852 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.7866, allocations: 29.7 kB / 1.033 GB, free: 1.816 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002406/0.7868, allocations: 276.4 kB / 1.033 GB, free: 1.539 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001242/0.787, allocations: 145.8 kB / 1.034 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.7871, allocations: 62.08 kB / 1.034 GB, free: 1.324 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001853/0.7873, allocations: 358.8 kB / 1.034 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.7875, allocations: 124.7 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.7878, allocations: 133.2 kB / 1.034 GB, free: 0.7148 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.7883, allocations: 290.4 kB / 1.034 GB, free: 440 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.7883, allocations: 0 / 1.034 GB, free: 440 kB / 0.7794 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006514/0.789, allocations: 404.1 kB / 1.035 GB, free: 28 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.789, allocations: 4 kB / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.789, allocations: 0 / 1.035 GB, free: 24 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.789, allocations: 8 kB / 1.035 GB, free: 16 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005219/0.7896, allocations: 123.9 kB / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.7896, allocations: 0 / 1.035 GB, free: 15.89 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.7899, allocations: 43.66 kB / 1.035 GB, free: 15.85 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.7899, allocations: 16 kB / 1.035 GB, free: 15.84 MB / 0.795 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.0002269/0.7901, allocations: 198.3 kB / 1.035 GB, free: 15.63 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.059e-05/0.7902, allocations: 55.28 kB / 1.035 GB, free: 15.58 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.7903, allocations: 57.11 kB / 1.035 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.7903, allocations: 4 kB / 1.035 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.7903, allocations: 0 / 1.035 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.7904, allocations: 3.984 kB / 1.035 GB, free: 15.51 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006819/0.791, allocations: 0.5751 MB / 1.036 GB, free: 14.89 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.7911, allocations: 7.875 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005178/0.7916, allocations: 131.9 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.7916, allocations: 0 / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.7916, allocations: 12 kB / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.7916, allocations: 0 / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7916, allocations: 0 / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.7927, allocations: 0.652 MB / 1.037 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/0.7929, allocations: 136.5 kB / 1.037 GB, free: 13.92 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.429e-05/0.7929, allocations: 4 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.7932, allocations: 24.08 kB / 1.037 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.036e-05/0.7933, allocations: 27.89 kB / 1.037 GB, free: 13.86 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.7933, allocations: 11.98 kB / 1.037 GB, free: 13.85 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0003955/0.7937, allocations: 355.1 kB / 1.037 GB, free: 13.51 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7937, allocations: 0 / 1.037 GB, free: 13.51 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004016/0.7941, allocations: 147.5 kB / 1.037 GB, free: 13.36 MB / 0.795 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.001378/0.7955, allocations: 1.207 MB / 1.039 GB, free: 12.13 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007068/0.7962, allocations: 343.7 kB / 1.039 GB, free: 11.79 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.7962, allocations: 0 / 1.039 GB, free: 11.79 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002758/0.7965, allocations: 179.9 kB / 1.039 GB, free: 11.62 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007859/0.7973, allocations: 136.1 kB / 1.039 GB, free: 11.49 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007666/0.805, allocations: 5.207 MB / 1.044 GB, free: 6.203 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006167/0.8056, allocations: 0.8743 MB / 1.045 GB, free: 5.301 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002262/0.8058, allocations: 56.39 kB / 1.045 GB, free: 5.242 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.8062, allocations: 187.4 kB / 1.045 GB, free: 5.059 MB / 0.795 GB Notification: Performance of SimCode: time 4.41e-07/0.8062, allocations: 0 / 1.045 GB, free: 5.059 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02834/0.8345, allocations: 11.07 MB / 1.056 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002373/0.8348, allocations: 284.1 kB / 1.056 GB, free: 9.957 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/2.896, allocations: 4 kB / 1.056 GB, free: 9.953 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)