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.001444/0.001444, allocations: 108 kB / 16.37 MB, free: 6.477 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.001542/0.001542, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002118/0.002118, allocations: 285.3 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9205/0.9205, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 90.81 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1364, allocations: 86.98 MB / 0.6816 GB, free: 7.469 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004865/0.1413, allocations: 4.137 MB / 0.6857 GB, free: 3.305 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002726/0.144, allocations: 2.406 MB / 0.688 GB, free: 0.8867 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001803/0.1442, allocations: 12 kB / 0.688 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001181/0.1454, allocations: 0.5391 MB / 0.6886 GB, free: 344 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003459/0.1458, allocations: 254 kB / 0.6888 GB, free: 88 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2256/0.3715, allocations: 132.1 kB / 0.6889 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.3725, allocations: 0.8082 MB / 0.6897 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004071/0.3729, allocations: 326.9 kB / 0.69 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003005/0.3732, allocations: 293.1 kB / 0.6903 GB, free: 13 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.3736, allocations: 325.7 kB / 0.6906 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.016e-05/0.3737, allocations: 75.78 kB / 0.6907 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001182/0.3738, allocations: 74.31 kB / 0.6908 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001459/0.374, allocations: 173.7 kB / 0.6909 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003032/0.3743, allocations: 382.6 kB / 0.6913 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008481/0.3751, allocations: 1.003 MB / 0.6923 GB, free: 12.69 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3751, allocations: 0.8125 kB / 0.6923 GB, free: 12.69 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3751, allocations: 0 / 0.6923 GB, free: 12.69 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.3752, allocations: 3.594 kB / 0.6923 GB, free: 12.69 MB / 494.1 MB 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.001245/0.3764, allocations: 0.9503 MB / 0.6932 GB, free: 12.1 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.3765, allocations: 10.22 kB / 0.6932 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.86e-05/0.3766, allocations: 71.94 kB / 0.6933 GB, free: 12.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.3771, allocations: 459.5 kB / 0.6937 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.3771, allocations: 36.28 kB / 0.6938 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.935e-05/0.3772, allocations: 47.62 kB / 0.6938 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006895/0.3779, allocations: 429.5 kB / 0.6942 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.3779, allocations: 3.938 kB / 0.6942 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.684e-05/0.3779, allocations: 21.45 kB / 0.6942 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.378, allocations: 13.5 kB / 0.6943 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006665/0.3786, allocations: 365.3 kB / 0.6946 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.3805, allocations: 1.522 MB / 0.6961 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.381, allocations: 336.7 kB / 0.6964 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004485/0.3815, allocations: 324.8 kB / 0.6967 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.3815, allocations: 4.344 kB / 0.6967 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.591e-05/0.3815, allocations: 44.55 kB / 0.6968 GB, free: 10.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.593e-06/0.3815, allocations: 3.938 kB / 0.6968 GB, free: 10.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008884/0.3824, allocations: 499.4 kB / 0.6973 GB, free: 10.22 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.3825, allocations: 56.16 kB / 0.6973 GB, free: 10.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/0.383, allocations: 487.6 kB / 0.6978 GB, free: 9.938 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.383, allocations: 32.11 kB / 0.6978 GB, free: 9.902 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.3832, allocations: 279.2 kB / 0.6981 GB, free: 9.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.323e-05/0.3833, allocations: 143.2 kB / 0.6982 GB, free: 9.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.864e-05/0.3834, allocations: 65.23 kB / 0.6983 GB, free: 9.527 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.506e-05/0.3834, allocations: 363.6 kB / 0.6986 GB, free: 9.191 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.3837, allocations: 119.4 kB / 0.6987 GB, free: 9.148 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002225/0.3839, allocations: 127.5 kB / 0.6988 GB, free: 9.102 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.3844, allocations: 298.5 kB / 0.6991 GB, free: 8.961 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3844, allocations: 0 / 0.6991 GB, free: 8.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006017/0.385, allocations: 401 kB / 0.6995 GB, free: 8.777 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.385, allocations: 9.344 kB / 0.6995 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.385, allocations: 0.7188 kB / 0.6995 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.3851, allocations: 3.125 kB / 0.6995 GB, free: 8.773 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004952/0.3856, allocations: 124.5 kB / 0.6996 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3856, allocations: 2.094 kB / 0.6996 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.3858, allocations: 39.94 kB / 0.6997 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.105e-05/0.3858, allocations: 11.03 kB / 0.6997 GB, free: 8.738 MB / 494.1 MB 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.0001669/0.386, allocations: 199.7 kB / 0.6999 GB, free: 8.578 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.596e-05/0.3861, allocations: 55.34 kB / 0.6999 GB, free: 8.547 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.588e-05/0.3862, allocations: 61.22 kB / 0.7 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.3862, allocations: 4.969 kB / 0.7 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3862, allocations: 0.6562 kB / 0.7 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3862, allocations: 2.016 kB / 0.7 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005996/0.3868, allocations: 0.5764 MB / 0.7006 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.3868, allocations: 2.375 kB / 0.7006 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005143/0.3873, allocations: 124.3 kB / 0.7007 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.3873, allocations: 5.812 kB / 0.7007 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.3874, allocations: 7 kB / 0.7007 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.3874, allocations: 2.031 kB / 0.7007 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3874, allocations: 0 / 0.7007 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009341/0.3883, allocations: 0.6523 MB / 0.7013 GB, free: 7.781 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/0.3884, allocations: 136.3 kB / 0.7015 GB, free: 7.648 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.316e-05/0.3885, allocations: 14.47 kB / 0.7015 GB, free: 7.637 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.3887, allocations: 11.06 kB / 0.7015 GB, free: 7.633 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.3888, allocations: 27.95 kB / 0.7015 GB, free: 7.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.3888, allocations: 11.83 kB / 0.7015 GB, free: 7.621 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003559/0.3892, allocations: 356.6 kB / 0.7019 GB, free: 7.457 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3892, allocations: 0 / 0.7019 GB, free: 7.457 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003848/0.3896, allocations: 148.7 kB / 0.702 GB, free: 7.422 MB / 494.1 MB 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.000101/0.3897, allocations: 114.1 kB / 0.7021 GB, free: 7.332 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005549/0.3903, allocations: 318.6 kB / 0.7024 GB, free: 7.227 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3903, allocations: 3.188 kB / 0.7024 GB, free: 7.227 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002871/0.3906, allocations: 183.9 kB / 0.7026 GB, free: 7.168 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.3912, allocations: 118.8 kB / 0.7027 GB, free: 7.125 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.3929, allocations: 1.19 MB / 0.7039 GB, free: 6.422 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.3933, allocations: 0.8714 MB / 0.7047 GB, free: 5.711 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.3935, allocations: 59.92 kB / 0.7048 GB, free: 5.695 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.3937, allocations: 35.44 kB / 0.7048 GB, free: 5.688 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3937, allocations: 0 / 0.7048 GB, free: 5.688 MB / 494.1 MB Notification: Performance of Templates: time 0.01205/0.4057, allocations: 5.94 MB / 0.7106 GB, free: 5.367 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)