Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.00122/0.00122, 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.001353/0.001353, allocations: 193.9 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.238/1.238, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.155/2.155, allocations: 390.2 MB / 0.6647 GB, free: 248 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 67.89 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5809/0.5821, allocations: 140.4 MB / 0.9498 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004082/0.5863, allocations: 4.141 MB / 0.9538 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002314/0.5886, allocations: 2.414 MB / 0.9562 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002036/0.5888, allocations: 13.34 kB / 0.9562 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00118/0.59, allocations: 0.5353 MB / 0.9567 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003168/0.5903, allocations: 250.4 kB / 0.9569 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.5905, allocations: 140.3 kB / 0.9571 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005599/0.5911, allocations: 0.8121 MB / 0.9579 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003745/0.5914, allocations: 329.4 kB / 0.9582 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002554/0.5917, allocations: 292.8 kB / 0.9585 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002686/0.592, allocations: 332.2 kB / 0.9588 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.173e-05/0.5921, allocations: 74.25 kB / 0.9588 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001185/0.5922, allocations: 74.47 kB / 0.9589 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.5923, allocations: 165.8 kB / 0.9591 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.5926, allocations: 380 kB / 0.9594 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000592/0.5932, allocations: 0.9915 MB / 0.9604 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5932, allocations: 4 kB / 0.9604 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.203e-06/0.5932, allocations: 0 / 0.9604 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.337e-06/0.5933, allocations: 1.062 kB / 0.9604 GB, free: 0.9688 MB / 0.7169 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.001174/0.5944, allocations: 0.9475 MB / 0.9613 GB, free: 200 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.5945, allocations: 9.844 kB / 0.9613 GB, free: 200 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.247e-05/0.5946, allocations: 89.77 kB / 0.9614 GB, free: 116 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.654e-05/0.5947, allocations: 72.72 kB / 0.9615 GB, free: 80 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.5952, allocations: 457.6 kB / 0.9619 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.5953, allocations: 40.62 kB / 0.962 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.029e-05/0.5953, allocations: 47.31 kB / 0.962 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007253/0.5961, allocations: 431.5 kB / 0.9624 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.68e-05/0.5961, allocations: 0.7812 kB / 0.9624 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.83e-05/0.5961, allocations: 20.59 kB / 0.9625 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.5962, allocations: 11.12 kB / 0.9625 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006781/0.5968, allocations: 365.2 kB / 0.9628 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.5989, allocations: 1.547 MB / 0.9643 GB, free: 13.97 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005487/0.5994, allocations: 337.1 kB / 0.9646 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.5999, allocations: 316.3 kB / 0.9649 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.103e-05/0.6, allocations: 15.17 kB / 0.965 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.6, allocations: 36.77 kB / 0.965 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=42): time 1.853e-06/0.6, allocations: 1.062 kB / 0.965 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of matching and sorting (n=42): time 0.001029/0.6011, allocations: 0.4926 MB / 0.9655 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.341e-05/0.6011, allocations: 56.03 kB / 0.9655 GB, free: 13.28 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000581/0.6017, allocations: 485.8 kB / 0.966 GB, free: 13 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.6018, allocations: 31.92 kB / 0.966 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.602, allocations: 275 kB / 0.9663 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.6021, allocations: 143.8 kB / 0.9664 GB, free: 12.6 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.896e-05/0.6022, allocations: 59.95 kB / 0.9665 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6024, allocations: 364.1 kB / 0.9668 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.6026, allocations: 121.5 kB / 0.9669 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002441/0.6029, allocations: 132.3 kB / 0.9671 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005428/0.6034, allocations: 295.3 kB / 0.9674 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.6035, allocations: 0.875 kB / 0.9674 GB, free: 11.92 MB / 0.7325 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006638/0.6041, allocations: 400.5 kB / 0.9677 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.6042, allocations: 6.969 kB / 0.9677 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.6042, allocations: 3.938 kB / 0.9677 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.6042, allocations: 2.656 kB / 0.9677 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004786/0.6047, allocations: 123.9 kB / 0.9679 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.6047, allocations: 1.312 kB / 0.9679 GB, free: 11.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002156/0.6049, allocations: 37.14 kB / 0.9679 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.6049, allocations: 10.88 kB / 0.9679 GB, free: 11.65 MB / 0.7325 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.0001969/0.6051, allocations: 196.9 kB / 0.9681 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.633e-05/0.6052, allocations: 55.59 kB / 0.9682 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.6053, allocations: 62.8 kB / 0.9682 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.6054, allocations: 5 kB / 0.9682 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.6054, allocations: 3.984 kB / 0.9682 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.6054, allocations: 0.9375 kB / 0.9682 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006406/0.606, allocations: 0.5787 MB / 0.9688 GB, free: 10.92 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.606, allocations: 7.875 kB / 0.9688 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005045/0.6065, allocations: 127.9 kB / 0.9689 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.6066, allocations: 1.438 kB / 0.9689 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.476e-05/0.6066, allocations: 10.72 kB / 0.9689 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.6066, allocations: 1.281 kB / 0.9689 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.6066, allocations: 0 / 0.9689 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.6076, allocations: 0.6421 MB / 0.9696 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.6078, allocations: 140.4 kB / 0.9697 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.322e-05/0.6078, allocations: 6.594 kB / 0.9697 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002322/0.6081, allocations: 17.27 kB / 0.9697 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.6081, allocations: 18.94 kB / 0.9697 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.6082, allocations: 14.31 kB / 0.9697 GB, free: 10.31 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003833/0.6086, allocations: 356.7 kB / 0.9701 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6086, allocations: 0 / 0.9701 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004472/0.609, allocations: 143.7 kB / 0.9702 GB, free: 10.07 MB / 0.7325 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.001433/0.6104, allocations: 1.222 MB / 0.9714 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007382/0.6112, allocations: 338.4 kB / 0.9717 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6112, allocations: 0 / 0.9717 GB, free: 8.957 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003019/0.6115, allocations: 183.5 kB / 0.9719 GB, free: 8.875 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007237/0.6123, allocations: 128.8 kB / 0.972 GB, free: 8.805 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006726/0.619, allocations: 5.022 MB / 0.9769 GB, free: 5.488 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004605/0.6195, allocations: 0.8704 MB / 0.9778 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002144/0.6197, allocations: 60.38 kB / 0.9778 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.62, allocations: 187.4 kB / 0.978 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of SimCode: time 6.51e-07/0.62, allocations: 3.938 kB / 0.978 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03471/0.6547, allocations: 11.23 MB / 0.989 GB, free: 9.402 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.141/8.796, allocations: 3.75 kB / 0.989 GB, free: 9.402 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)