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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001755/0.001754, 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.001658/0.001658, allocations: 198.2 kB / 16.14 MB, free: 6.656 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.45/1.45, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.6/2.6, allocations: 437 MB / 0.7099 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.001421, allocations: 63.91 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6564/0.6578, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.006389/0.6643, allocations: 4.178 MB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.004032/0.6683, allocations: 2.385 MB / 1.023 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005892/0.669, allocations: 11.94 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.6708, allocations: 0.49 MB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006662/0.6715, allocations: 222.4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003028/0.6718, allocations: 115.9 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.001017/0.6729, allocations: 0.8094 MB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004498/0.6733, allocations: 280.2 kB / 1.025 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.6737, allocations: 271 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003021/0.674, allocations: 314.6 kB / 1.026 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.579e-05/0.6741, allocations: 48 kB / 1.026 GB, free: 9.633 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.6742, allocations: 48 kB / 1.026 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.6743, allocations: 143.4 kB / 1.026 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.6747, allocations: 362.2 kB / 1.026 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007079/0.6754, allocations: 0.9655 MB / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.6754, allocations: 0 / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6754, allocations: 0 / 1.027 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.655e-06/0.6754, allocations: 0 / 1.027 GB, free: 8.121 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.001355/0.6768, allocations: 0.9502 MB / 1.028 GB, free: 7.117 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.6768, allocations: 12.03 kB / 1.028 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.911e-05/0.6769, allocations: 82.7 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.854e-05/0.677, allocations: 80.03 kB / 1.028 GB, free: 6.938 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.6775, allocations: 449.7 kB / 1.029 GB, free: 6.461 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.666e-05/0.6776, allocations: 33.38 kB / 1.029 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.161e-05/0.6777, allocations: 48.38 kB / 1.029 GB, free: 6.379 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007177/0.6784, allocations: 434.6 kB / 1.029 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.6784, allocations: 11.91 kB / 1.029 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.6785, allocations: 20 kB / 1.029 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.6785, allocations: 11.94 kB / 1.029 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006726/0.6792, allocations: 371.8 kB / 1.03 GB, free: 5.543 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.6811, allocations: 1.524 MB / 1.031 GB, free: 3.945 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/0.6817, allocations: 338.9 kB / 1.031 GB, free: 3.605 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004671/0.6822, allocations: 323.1 kB / 1.032 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.6822, allocations: 8.625 kB / 1.032 GB, free: 3.281 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.6822, allocations: 46.55 kB / 1.032 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=42): time 1.864e-06/0.6822, allocations: 3.938 kB / 1.032 GB, free: 3.223 MB / 0.7794 GB Notification: Performance of matching and sorting (n=42): time 0.000935/0.6832, allocations: 496.3 kB / 1.032 GB, free: 2.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.647e-05/0.6832, allocations: 59.19 kB / 1.032 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005245/0.6838, allocations: 485.9 kB / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.6838, allocations: 29.7 kB / 1.033 GB, free: 2.148 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000184/0.684, allocations: 280.4 kB / 1.033 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001229/0.6841, allocations: 145.8 kB / 1.033 GB, free: 1.723 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.293e-05/0.6842, allocations: 62.08 kB / 1.033 GB, free: 1.652 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.6844, allocations: 366.8 kB / 1.034 GB, free: 1.285 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.6846, allocations: 116.7 kB / 1.034 GB, free: 1.172 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.6849, allocations: 125.4 kB / 1.034 GB, free: 1.051 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/0.6854, allocations: 298.2 kB / 1.034 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.6854, allocations: 0 / 1.034 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000627/0.686, allocations: 404.1 kB / 1.034 GB, free: 364 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.686, allocations: 4 kB / 1.034 GB, free: 360 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.686, allocations: 0 / 1.034 GB, free: 360 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.6861, allocations: 4 kB / 1.034 GB, free: 356 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004959/0.6866, allocations: 123.9 kB / 1.035 GB, free: 232 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.6866, allocations: 7.984 kB / 1.035 GB, free: 224 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002637/0.6868, allocations: 47.56 kB / 1.035 GB, free: 176 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.6869, allocations: 12 kB / 1.035 GB, free: 164 kB / 0.7794 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.000215/0.6871, allocations: 202.2 kB / 1.035 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.242e-05/0.6872, allocations: 55.38 kB / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001032/0.6873, allocations: 61.11 kB / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.6873, allocations: 4 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6873, allocations: 0 / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.6873, allocations: 3.984 kB / 1.035 GB, free: 15.83 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006327/0.688, allocations: 0.575 MB / 1.035 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.688, allocations: 3.938 kB / 1.036 GB, free: 15.2 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005385/0.6885, allocations: 123.9 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.6885, allocations: 4 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.6886, allocations: 12 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.6886, allocations: 0 / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.6886, allocations: 3.938 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009411/0.6895, allocations: 0.6521 MB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.6897, allocations: 132.5 kB / 1.036 GB, free: 14.24 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.6897, allocations: 12 kB / 1.036 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.69, allocations: 27.88 kB / 1.036 GB, free: 14.2 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.69, allocations: 23.95 kB / 1.036 GB, free: 14.18 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.6901, allocations: 8 kB / 1.036 GB, free: 14.17 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.000376/0.6904, allocations: 351.1 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6904, allocations: 0 / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003858/0.6908, allocations: 147.6 kB / 1.037 GB, free: 13.69 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.001251/0.6921, allocations: 1.207 MB / 1.038 GB, free: 12.46 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0005817/0.6927, allocations: 320 kB / 1.038 GB, free: 12.14 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.6927, allocations: 0 / 1.038 GB, free: 12.14 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002857/0.693, allocations: 187.6 kB / 1.039 GB, free: 11.96 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007338/0.6937, allocations: 117.8 kB / 1.039 GB, free: 11.85 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006708/0.7005, allocations: 5.229 MB / 1.044 GB, free: 6.535 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004173/0.7009, allocations: 0.8668 MB / 1.045 GB, free: 5.641 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002237/0.7011, allocations: 56.38 kB / 1.045 GB, free: 5.586 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002363/0.7014, allocations: 191.4 kB / 1.045 GB, free: 5.398 MB / 0.795 GB Notification: Performance of SimCode: time 1.022e-06/0.7014, allocations: 0 / 1.045 GB, free: 5.398 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.001/1.702, allocations: 10.78 MB / 1.055 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003309/1.703, allocations: 285.2 kB / 1.056 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.084/4.787, allocations: 0 / 1.056 GB, free: 10.55 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)