Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 109.3 kB / 15.7 MB, free: 128 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.001029/0.001029, allocations: 192.8 kB / 16.63 MB, free: 6.613 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.284/1.284, allocations: 222.9 MB / 240.3 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002028/0.002028, allocations: 274.6 kB / 290.8 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9131/0.9131, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 95.84 kB / 0.6814 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1477, allocations: 86.97 MB / 0.7664 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004572/0.1523, allocations: 4.144 MB / 0.7704 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002873/0.1552, allocations: 2.402 MB / 0.7728 GB, free: 1.84 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.1554, allocations: 15.94 kB / 0.7728 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001267/0.1567, allocations: 0.5381 MB / 0.7733 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003608/0.157, allocations: 246 kB / 0.7735 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000202/0.1573, allocations: 143.8 kB / 0.7737 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006968/0.158, allocations: 0.8098 MB / 0.7745 GB, free: 92 kB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3127/0.4707, allocations: 321.4 kB / 0.7748 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005164/0.4713, allocations: 281.6 kB / 0.775 GB, free: 9.668 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000365/0.4717, allocations: 332.7 kB / 0.7754 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.4718, allocations: 75.03 kB / 0.7754 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.4719, allocations: 74.84 kB / 0.7755 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001531/0.472, allocations: 170.2 kB / 0.7757 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003062/0.4724, allocations: 388 kB / 0.776 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008947/0.4733, allocations: 0.9968 MB / 0.777 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4733, allocations: 0 / 0.777 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.903e-06/0.4733, allocations: 1.781 kB / 0.777 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.4733, allocations: 1.938 kB / 0.777 GB, free: 9.363 MB / 0.5606 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.001335/0.4746, allocations: 0.9476 MB / 0.7779 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.4747, allocations: 10.19 kB / 0.7779 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.4748, allocations: 76.41 kB / 0.778 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.4753, allocations: 466.6 kB / 0.7785 GB, free: 8.469 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.4754, allocations: 36.94 kB / 0.7785 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.94e-05/0.4755, allocations: 46.72 kB / 0.7785 GB, free: 8.465 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006849/0.4761, allocations: 431.2 kB / 0.7789 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.4762, allocations: 4.469 kB / 0.779 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/0.4762, allocations: 23.47 kB / 0.779 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.4762, allocations: 13.86 kB / 0.779 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006619/0.4769, allocations: 364.5 kB / 0.7793 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.4786, allocations: 1.52 MB / 0.7808 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004747/0.4791, allocations: 340 kB / 0.7811 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004311/0.4796, allocations: 323.6 kB / 0.7815 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.4796, allocations: 3.594 kB / 0.7815 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.824e-05/0.4796, allocations: 45.12 kB / 0.7815 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 1.542e-06/0.4796, allocations: 1.594 kB / 0.7815 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.0008664/0.4805, allocations: 0.4946 MB / 0.782 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.4805, allocations: 56.09 kB / 0.782 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005043/0.481, allocations: 485.6 kB / 0.7825 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.4811, allocations: 32.45 kB / 0.7825 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.4812, allocations: 278.5 kB / 0.7828 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.328e-05/0.4813, allocations: 144 kB / 0.7829 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.484e-05/0.4814, allocations: 60.41 kB / 0.783 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.151e-05/0.4815, allocations: 360.8 kB / 0.7833 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.4817, allocations: 124.5 kB / 0.7835 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.4819, allocations: 124.7 kB / 0.7836 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000479/0.4824, allocations: 303.2 kB / 0.7839 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.4824, allocations: 0 / 0.7839 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006264/0.4831, allocations: 395 kB / 0.7842 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.4831, allocations: 10.22 kB / 0.7843 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.4831, allocations: 0 / 0.7843 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.4831, allocations: 2.781 kB / 0.7843 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.4836, allocations: 130.2 kB / 0.7844 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.4836, allocations: 3.906 kB / 0.7844 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.4839, allocations: 37.92 kB / 0.7844 GB, free: 5.578 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.4839, allocations: 10.91 kB / 0.7844 GB, free: 5.574 MB / 0.5606 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.0001653/0.4841, allocations: 195.2 kB / 0.7846 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/0.4841, allocations: 56.03 kB / 0.7847 GB, free: 5.383 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.4843, allocations: 63.52 kB / 0.7847 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.4843, allocations: 6.125 kB / 0.7847 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.4843, allocations: 4.906 kB / 0.7847 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4843, allocations: 5.906 kB / 0.7847 GB, free: 5.336 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005322/0.4848, allocations: 0.5654 MB / 0.7853 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4848, allocations: 0 / 0.7853 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/0.4853, allocations: 124.2 kB / 0.7854 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.4854, allocations: 7.562 kB / 0.7854 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.4854, allocations: 13.2 kB / 0.7854 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4854, allocations: 3.625 kB / 0.7854 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4854, allocations: 0 / 0.7854 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008324/0.4862, allocations: 0.6495 MB / 0.7861 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.653e-05/0.4863, allocations: 143.7 kB / 0.7862 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.686e-05/0.4864, allocations: 7.641 kB / 0.7862 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.4866, allocations: 16.14 kB / 0.7862 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.195e-05/0.4867, allocations: 24.09 kB / 0.7863 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.4867, allocations: 12.16 kB / 0.7863 GB, free: 4.453 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003555/0.4871, allocations: 348.4 kB / 0.7866 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.293e-06/0.4871, allocations: 0 / 0.7866 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003773/0.4874, allocations: 145.2 kB / 0.7867 GB, free: 4.27 MB / 0.5606 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.0001083/0.4876, allocations: 116 kB / 0.7868 GB, free: 4.172 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005437/0.4881, allocations: 319.9 kB / 0.7872 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.4881, allocations: 0 / 0.7872 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002576/0.4884, allocations: 178.8 kB / 0.7873 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006361/0.489, allocations: 130 kB / 0.7874 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.4906, allocations: 1.192 MB / 0.7886 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/0.491, allocations: 0.8689 MB / 0.7895 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001871/0.4912, allocations: 48.8 kB / 0.7895 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.934e-05/0.4913, allocations: 35.78 kB / 0.7895 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of SimCode: time 3e-07/0.4913, allocations: 0 / 0.7895 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of Templates: time 0.01161/0.5029, allocations: 5.956 MB / 0.7954 GB, free: 2.242 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)