Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.001334/0.001334, 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.00145/0.001451, allocations: 193.1 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002168/0.002168, allocations: 282.5 kB / 290.7 MB, free: 2.023 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.923/0.923, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 105.8 kB / 0.5954 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1314, allocations: 86.98 MB / 0.6804 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002478/0.1339, allocations: 1.42 MB / 0.6817 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00403/0.138, allocations: 2.895 MB / 0.6846 GB, free: 12.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.134e-05/0.138, allocations: 4 kB / 0.6846 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.293e-05/0.138, allocations: 11.92 kB / 0.6846 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.104e-05/0.1381, allocations: 11.86 kB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003465/0.1416, allocations: 1.583 MB / 0.6861 GB, free: 10.6 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.063e-05/0.1416, allocations: 39.73 kB / 0.6862 GB, free: 10.56 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.424e-05/0.1417, allocations: 4 kB / 0.6862 GB, free: 10.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.332e-05/0.1417, allocations: 11.94 kB / 0.6862 GB, free: 10.54 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.604e-05/0.1417, allocations: 19.86 kB / 0.6862 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.1418, allocations: 4 kB / 0.6862 GB, free: 10.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001927/0.1437, allocations: 1.459 MB / 0.6876 GB, free: 9.059 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.464e-05/0.1437, allocations: 7.984 kB / 0.6876 GB, free: 9.051 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.1438, allocations: 19.88 kB / 0.6877 GB, free: 9.031 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.1452, allocations: 1.103 MB / 0.6887 GB, free: 7.926 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1453, allocations: 0 / 0.6887 GB, free: 7.926 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1453, allocations: 0 / 0.6887 GB, free: 7.926 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1453, allocations: 0 / 0.6887 GB, free: 7.926 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006256/0.1459, allocations: 0.5146 MB / 0.6892 GB, free: 7.363 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1459, allocations: 16.03 kB / 0.6893 GB, free: 7.348 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.085e-05/0.146, allocations: 106 kB / 0.6894 GB, free: 7.234 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.244e-05/0.1461, allocations: 84.12 kB / 0.6894 GB, free: 7.152 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001219/0.1462, allocations: 253.4 kB / 0.6897 GB, free: 6.867 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.329e-05/0.1463, allocations: 150.9 kB / 0.6898 GB, free: 6.719 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.134e-05/0.1463, allocations: 150.9 kB / 0.69 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.678e-05/0.1464, allocations: 116.9 kB / 0.6901 GB, free: 6.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.1464, allocations: 75.28 kB / 0.6902 GB, free: 6.375 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.382e-05/0.1464, allocations: 154.6 kB / 0.6903 GB, free: 6.223 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.68e-05/0.1465, allocations: 150.6 kB / 0.6904 GB, free: 6.074 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.015e-05/0.1465, allocations: 154.6 kB / 0.6906 GB, free: 5.922 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002471/0.1468, allocations: 473.8 kB / 0.691 GB, free: 5.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.328e-05/0.1468, allocations: 169.1 kB / 0.6912 GB, free: 5.234 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.536e-05/0.1469, allocations: 80.14 kB / 0.6913 GB, free: 5.152 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1469, allocations: 79.22 kB / 0.6914 GB, free: 5.074 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.445e-05/0.1469, allocations: 113.8 kB / 0.6915 GB, free: 4.953 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 7.61e-07/0.147, allocations: 4 kB / 0.6915 GB, free: 4.949 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 6.508e-05/0.147, allocations: 29.7 kB / 0.6915 GB, free: 4.914 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.1471, allocations: 134.6 kB / 0.6916 GB, free: 4.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.1472, allocations: 135.9 kB / 0.6918 GB, free: 4.629 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.1472, allocations: 25.7 kB / 0.6918 GB, free: 4.598 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.213e-05/0.1473, allocations: 92.12 kB / 0.6919 GB, free: 4.504 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.453e-06/0.1473, allocations: 0 / 0.6919 GB, free: 4.504 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.223e-05/0.1473, allocations: 21.7 kB / 0.6919 GB, free: 4.477 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.453e-05/0.1474, allocations: 318.8 kB / 0.6922 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.128e-05/0.1474, allocations: 4 kB / 0.6922 GB, free: 4.152 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.007e-05/0.1474, allocations: 12.05 kB / 0.6922 GB, free: 4.141 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.408e-05/0.1475, allocations: 16.86 kB / 0.6922 GB, free: 4.121 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1475, allocations: 0 / 0.6922 GB, free: 4.121 MB / 494.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000114/0.1476, allocations: 53.55 kB / 0.6923 GB, free: 4.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/0.1476, allocations: 7.938 kB / 0.6923 GB, free: 4.055 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.1477, allocations: 4 kB / 0.6923 GB, free: 4.051 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.1477, allocations: 7.922 kB / 0.6923 GB, free: 4.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1477, allocations: 4.062 kB / 0.6923 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.1477, allocations: 0 / 0.6923 GB, free: 4.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.907e-05/0.1477, allocations: 4 kB / 0.6923 GB, free: 4.035 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.1477, allocations: 0 / 0.6923 GB, free: 4.035 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 7.638e-05/0.1478, allocations: 181.8 kB / 0.6925 GB, free: 3.848 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.1479, allocations: 112.8 kB / 0.6926 GB, free: 3.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.733e-05/0.1479, allocations: 116.8 kB / 0.6927 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.412e-05/0.148, allocations: 184.2 kB / 0.6929 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-05/0.148, allocations: 176.3 kB / 0.693 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-05/0.1481, allocations: 180.2 kB / 0.6932 GB, free: 3.055 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001992/0.1483, allocations: 417.2 kB / 0.6936 GB, free: 2.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-05/0.1483, allocations: 108.9 kB / 0.6937 GB, free: 2.477 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.09e-05/0.1484, allocations: 105 kB / 0.6938 GB, free: 2.367 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.439e-05/0.1484, allocations: 180.3 kB / 0.694 GB, free: 2.184 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.1485, allocations: 180.2 kB / 0.6942 GB, free: 2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.866e-05/0.1485, allocations: 176.3 kB / 0.6943 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.558e-05/0.1486, allocations: 188.2 kB / 0.6945 GB, free: 1.629 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.1487, allocations: 311.8 kB / 0.6948 GB, free: 1.301 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.1488, allocations: 185.9 kB / 0.695 GB, free: 1.094 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.1489, allocations: 180.3 kB / 0.6952 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.418e-05/0.149, allocations: 116.9 kB / 0.6953 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.972e-05/0.149, allocations: 176.3 kB / 0.6954 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-05/0.1491, allocations: 109 kB / 0.6955 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.499e-05/0.1491, allocations: 99.2 kB / 0.6956 GB, free: 408 kB / 494.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1491, allocations: 3.938 kB / 0.6956 GB, free: 404 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006529/0.1498, allocations: 283.8 kB / 0.6959 GB, free: 120 kB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.001192/0.151, allocations: 1.175 MB / 0.6971 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.994e-05/0.1511, allocations: 37.7 kB / 0.6971 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.1511, allocations: 0 / 0.6971 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 5.63e-06/0.1511, allocations: 3.938 kB / 0.6971 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.1514, allocations: 474.7 kB / 0.6975 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.1527, allocations: 1.606 MB / 0.6991 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.1529, allocations: 0.6846 MB / 0.6998 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.146e-05/0.1529, allocations: 0 / 0.6998 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.149e-05/0.1529, allocations: 11.44 kB / 0.6998 GB, free: 12 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1529, allocations: 0 / 0.6998 GB, free: 12 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7288/0.8817, allocations: 7.084 MB / 0.7067 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/11.16, allocations: 14.38 kB / 0.7067 GB, free: 5.113 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)