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: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_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.001215/0.001215, 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.001163/0.001163, allocations: 193.7 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 278.9 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8621/0.8621, allocations: 169.3 MB / 0.4982 GB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002097/0.002097, allocations: 99.33 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1287, allocations: 86.99 MB / 0.6803 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004748/0.1335, allocations: 4.138 MB / 0.6844 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002922/0.1365, allocations: 2.398 MB / 0.6867 GB, free: 9.984 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002911/0.1368, allocations: 12 kB / 0.6867 GB, free: 9.973 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00134/0.1381, allocations: 0.5363 MB / 0.6872 GB, free: 9.434 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004591/0.1386, allocations: 253.9 kB / 0.6875 GB, free: 9.184 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.1388, allocations: 143.9 kB / 0.6876 GB, free: 9.043 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007278/0.1396, allocations: 0.8084 MB / 0.6884 GB, free: 8.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003938/0.14, allocations: 326.5 kB / 0.6887 GB, free: 7.914 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.1403, allocations: 290.9 kB / 0.689 GB, free: 7.629 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.1406, allocations: 326.6 kB / 0.6893 GB, free: 7.309 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.273e-05/0.1407, allocations: 76 kB / 0.6894 GB, free: 7.234 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.1408, allocations: 76 kB / 0.6895 GB, free: 7.16 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001384/0.141, allocations: 171.4 kB / 0.6896 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003242/0.1413, allocations: 386.2 kB / 0.69 GB, free: 6.613 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007077/0.142, allocations: 0.9889 MB / 0.691 GB, free: 5.621 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.142, allocations: 0 / 0.691 GB, free: 5.621 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.142, allocations: 0 / 0.691 GB, free: 5.621 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.686e-05/0.1421, allocations: 0 / 0.691 GB, free: 5.621 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.001297/0.1434, allocations: 0.9502 MB / 0.6919 GB, free: 4.621 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1434, allocations: 16.02 kB / 0.6919 GB, free: 4.605 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.204e-05/0.1435, allocations: 86.72 kB / 0.692 GB, free: 4.512 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.1436, allocations: 76.08 kB / 0.6921 GB, free: 4.438 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000493/0.1441, allocations: 449.7 kB / 0.6925 GB, free: 3.961 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.1441, allocations: 37.38 kB / 0.6925 GB, free: 3.926 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.086e-05/0.1442, allocations: 52.28 kB / 0.6926 GB, free: 3.875 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/0.1449, allocations: 430.5 kB / 0.693 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.1449, allocations: 4 kB / 0.693 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.1449, allocations: 20 kB / 0.693 GB, free: 3.426 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.145, allocations: 12 kB / 0.693 GB, free: 3.414 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006513/0.1456, allocations: 363.8 kB / 0.6934 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.1474, allocations: 1.532 MB / 0.6949 GB, free: 1.453 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.1479, allocations: 350.8 kB / 0.6952 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/0.1484, allocations: 317.5 kB / 0.6955 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.1484, allocations: 7.938 kB / 0.6955 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.1484, allocations: 38.56 kB / 0.6955 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.442e-06/0.1484, allocations: 0 / 0.6955 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.000876/0.1493, allocations: 493.8 kB / 0.696 GB, free: 252 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.121e-05/0.1494, allocations: 59.34 kB / 0.6961 GB, free: 180 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.1499, allocations: 493.9 kB / 0.6965 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.1499, allocations: 41.64 kB / 0.6966 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.1501, allocations: 276.4 kB / 0.6968 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.1502, allocations: 153.8 kB / 0.697 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.04e-05/0.1503, allocations: 54.08 kB / 0.697 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1504, allocations: 362.8 kB / 0.6974 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002334/0.1507, allocations: 120.7 kB / 0.6975 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.1509, allocations: 125.4 kB / 0.6976 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004731/0.1514, allocations: 302 kB / 0.6979 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1514, allocations: 0 / 0.6979 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005822/0.152, allocations: 392.2 kB / 0.6983 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.152, allocations: 7.984 kB / 0.6983 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.152, allocations: 4 kB / 0.6983 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.152, allocations: 0 / 0.6983 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004616/0.1525, allocations: 131.8 kB / 0.6984 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.1525, allocations: 0 / 0.6984 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/0.1527, allocations: 39.59 kB / 0.6985 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.793e-05/0.1527, allocations: 8 kB / 0.6985 GB, free: 13.67 MB / 0.4981 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.0001737/0.1529, allocations: 194.4 kB / 0.6987 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.331e-05/0.153, allocations: 55.36 kB / 0.6987 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.426e-05/0.1531, allocations: 65.09 kB / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1531, allocations: 4 kB / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.1531, allocations: 0 / 0.6988 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.1531, allocations: 4 kB / 0.6988 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005575/0.1537, allocations: 0.5751 MB / 0.6993 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.1537, allocations: 7.875 kB / 0.6993 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004756/0.1541, allocations: 123.9 kB / 0.6995 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1542, allocations: 4 kB / 0.6995 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.1542, allocations: 11.98 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1542, allocations: 4 kB / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1542, allocations: 0 / 0.6995 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008626/0.1551, allocations: 0.6518 MB / 0.7001 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.856e-05/0.1552, allocations: 144.3 kB / 0.7003 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.1552, allocations: 8 kB / 0.7003 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.1554, allocations: 8 kB / 0.7003 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.1555, allocations: 23.97 kB / 0.7003 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.1555, allocations: 15.98 kB / 0.7003 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003337/0.1559, allocations: 351.1 kB / 0.7006 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1559, allocations: 0 / 0.7006 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003473/0.1562, allocations: 139.7 kB / 0.7008 GB, free: 11.21 MB / 0.4981 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.00111/0.1573, allocations: 1.211 MB / 0.702 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006328/0.158, allocations: 339.7 kB / 0.7023 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.158, allocations: 0 / 0.7023 GB, free: 9.641 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002561/0.1583, allocations: 179.8 kB / 0.7025 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.1588, allocations: 128.6 kB / 0.7026 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005523/0.1644, allocations: 5.029 MB / 0.7075 GB, free: 4.223 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.1648, allocations: 0.8742 MB / 0.7083 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001695/0.1649, allocations: 48.41 kB / 0.7084 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002233/0.1652, allocations: 191.4 kB / 0.7086 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1652, allocations: 0 / 0.7086 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.081/3.247, allocations: 11.25 MB / 0.7196 GB, free: 8.145 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.63/10.88, allocations: 11.28 kB / 0.7196 GB, free: 8.141 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)