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.001031/0.001031, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.001056/0.001056, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.244/1.244, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002016/0.002016, allocations: 290.1 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8866/0.8866, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 94.64 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1534, allocations: 86.97 MB / 0.6816 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.00484/0.1583, allocations: 4.138 MB / 0.6857 GB, free: 3.281 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002858/0.1612, allocations: 2.413 MB / 0.688 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002133/0.1614, allocations: 12 kB / 0.6881 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.1627, allocations: 0.5325 MB / 0.6886 GB, free: 316 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000371/0.1631, allocations: 254 kB / 0.6888 GB, free: 60 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2444/0.4075, allocations: 135.6 kB / 0.6889 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00188/0.4094, allocations: 0.8082 MB / 0.6897 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007576/0.4102, allocations: 325.6 kB / 0.69 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006204/0.4108, allocations: 287.1 kB / 0.6903 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005731/0.4114, allocations: 328.8 kB / 0.6906 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001669/0.4116, allocations: 74.94 kB / 0.6907 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002345/0.4119, allocations: 75.88 kB / 0.6908 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001692/0.412, allocations: 172.6 kB / 0.6909 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005611/0.4126, allocations: 385.7 kB / 0.6913 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.4138, allocations: 0.9999 MB / 0.6923 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.4138, allocations: 1.25 kB / 0.6923 GB, free: 12.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4138, allocations: 4.906 kB / 0.6923 GB, free: 12.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.136e-05/0.4138, allocations: 0 / 0.6923 GB, free: 12.71 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.001414/0.4152, allocations: 0.9465 MB / 0.6932 GB, free: 12.12 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.4153, allocations: 8.844 kB / 0.6932 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.4154, allocations: 73.94 kB / 0.6933 GB, free: 12.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000563/0.416, allocations: 459 kB / 0.6937 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.621e-05/0.416, allocations: 38.47 kB / 0.6938 GB, free: 11.82 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.483e-05/0.4161, allocations: 49.2 kB / 0.6938 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007128/0.4168, allocations: 432.1 kB / 0.6942 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.4168, allocations: 5.609 kB / 0.6942 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.648e-05/0.4169, allocations: 24.19 kB / 0.6943 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.4169, allocations: 11.78 kB / 0.6943 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006479/0.4175, allocations: 365.7 kB / 0.6946 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.4195, allocations: 1.518 MB / 0.6961 GB, free: 10.72 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.42, allocations: 336.4 kB / 0.6964 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.4204, allocations: 320.9 kB / 0.6967 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.4204, allocations: 7.75 kB / 0.6967 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.586e-05/0.4205, allocations: 43.41 kB / 0.6968 GB, free: 10.41 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.893e-06/0.4205, allocations: 0.7812 kB / 0.6968 GB, free: 10.41 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009197/0.4214, allocations: 499.2 kB / 0.6973 GB, free: 10.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.482e-05/0.4214, allocations: 57.73 kB / 0.6973 GB, free: 10.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005687/0.422, allocations: 488.9 kB / 0.6978 GB, free: 9.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.353e-05/0.422, allocations: 31.58 kB / 0.6978 GB, free: 9.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.4222, allocations: 278.6 kB / 0.6981 GB, free: 9.656 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.813e-05/0.4223, allocations: 139.4 kB / 0.6982 GB, free: 9.547 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.235e-05/0.4224, allocations: 64.67 kB / 0.6983 GB, free: 9.504 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.4225, allocations: 360.6 kB / 0.6986 GB, free: 9.172 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.4227, allocations: 124.2 kB / 0.6987 GB, free: 9.129 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000234/0.423, allocations: 131.3 kB / 0.6989 GB, free: 9.078 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004822/0.4235, allocations: 298.2 kB / 0.6991 GB, free: 8.938 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4235, allocations: 3.938 kB / 0.6991 GB, free: 8.934 MB / 494.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006177/0.4241, allocations: 394 kB / 0.6995 GB, free: 8.754 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.4241, allocations: 13.03 kB / 0.6995 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.4241, allocations: 0.5 kB / 0.6995 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.4242, allocations: 3.109 kB / 0.6995 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.4247, allocations: 127.5 kB / 0.6997 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.4247, allocations: 2.625 kB / 0.6997 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.4249, allocations: 38.86 kB / 0.6997 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.425, allocations: 11.91 kB / 0.6997 GB, free: 8.711 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.0001742/0.4251, allocations: 191.8 kB / 0.6999 GB, free: 8.555 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.353e-05/0.4252, allocations: 54.84 kB / 0.6999 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.777e-05/0.4253, allocations: 61.77 kB / 0.7 GB, free: 8.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4253, allocations: 4.062 kB / 0.7 GB, free: 8.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.4253, allocations: 6.438 kB / 0.7 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4254, allocations: 5.016 kB / 0.7 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006185/0.426, allocations: 0.5753 MB / 0.7006 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.426, allocations: 0 / 0.7006 GB, free: 8.125 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/0.4265, allocations: 124.9 kB / 0.7007 GB, free: 8.121 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.4265, allocations: 5.406 kB / 0.7007 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.4265, allocations: 12.12 kB / 0.7007 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.4265, allocations: 2.859 kB / 0.7007 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4265, allocations: 0 / 0.7007 GB, free: 8.109 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008875/0.4274, allocations: 0.6446 MB / 0.7013 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001086/0.4275, allocations: 140.3 kB / 0.7015 GB, free: 7.621 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/0.4276, allocations: 11.33 kB / 0.7015 GB, free: 7.613 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002125/0.4278, allocations: 15.08 kB / 0.7015 GB, free: 7.605 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.4279, allocations: 20.14 kB / 0.7015 GB, free: 7.605 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.4279, allocations: 19.34 kB / 0.7015 GB, free: 7.598 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003612/0.4283, allocations: 354.2 kB / 0.7019 GB, free: 7.434 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4283, allocations: 0 / 0.7019 GB, free: 7.434 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004199/0.4287, allocations: 141 kB / 0.702 GB, free: 7.406 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.0001162/0.4289, allocations: 118.2 kB / 0.7021 GB, free: 7.312 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0005465/0.4294, allocations: 316.6 kB / 0.7024 GB, free: 7.211 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4294, allocations: 9.156 kB / 0.7024 GB, free: 7.203 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.4297, allocations: 177.2 kB / 0.7026 GB, free: 7.152 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006051/0.4303, allocations: 126.5 kB / 0.7027 GB, free: 7.102 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.432, allocations: 1.186 MB / 0.7039 GB, free: 6.402 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.4323, allocations: 0.8684 MB / 0.7047 GB, free: 5.691 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.4326, allocations: 52.44 kB / 0.7048 GB, free: 5.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.52e-05/0.4327, allocations: 35.44 kB / 0.7048 GB, free: 5.672 MB / 494.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4327, allocations: 0 / 0.7048 GB, free: 5.672 MB / 494.1 MB Notification: Performance of Templates: time 0.01173/0.4444, allocations: 5.938 MB / 0.7106 GB, free: 5.348 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)