Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.001192/0.001192, allocations: 108 kB / 15.61 MB, free: 152 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.001187/0.001187, allocations: 196 kB / 16.53 MB, free: 6.664 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.198/1.198, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00196/0.00196, allocations: 271 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.8535/0.8535, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00208/0.002081, allocations: 100.3 kB / 0.5954 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1296, allocations: 86.98 MB / 0.6803 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003691/0.1333, allocations: 3.015 MB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.1356, allocations: 2.146 MB / 0.6854 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.1357, allocations: 4 kB / 0.6854 GB, free: 11.38 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001104/0.1368, allocations: 0.4938 MB / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.137, allocations: 142.9 kB / 0.686 GB, free: 10.74 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001069/0.1372, allocations: 71.88 kB / 0.6861 GB, free: 10.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000389/0.1376, allocations: 445.9 kB / 0.6865 GB, free: 10.23 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.1378, allocations: 151.2 kB / 0.6866 GB, free: 10.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.1379, allocations: 151.4 kB / 0.6868 GB, free: 9.938 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.1381, allocations: 179.2 kB / 0.6869 GB, free: 9.762 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.1382, allocations: 40 kB / 0.687 GB, free: 9.723 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.785e-05/0.1382, allocations: 39.94 kB / 0.687 GB, free: 9.684 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1383, allocations: 103.5 kB / 0.6871 GB, free: 9.582 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.1385, allocations: 215 kB / 0.6873 GB, free: 9.371 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003962/0.1389, allocations: 0.541 MB / 0.6879 GB, free: 8.828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1389, allocations: 0 / 0.6879 GB, free: 8.828 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1389, allocations: 0 / 0.6879 GB, free: 8.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1389, allocations: 0 / 0.6879 GB, free: 8.828 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008714/0.1398, allocations: 0.7006 MB / 0.6885 GB, free: 8.078 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1399, allocations: 12.02 kB / 0.6885 GB, free: 8.066 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.349e-05/0.1399, allocations: 58.67 kB / 0.6886 GB, free: 8 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.852e-05/0.14, allocations: 48.38 kB / 0.6887 GB, free: 7.953 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.1404, allocations: 370.1 kB / 0.689 GB, free: 7.555 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.1404, allocations: 16.81 kB / 0.689 GB, free: 7.539 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.239e-05/0.1404, allocations: 16.38 kB / 0.689 GB, free: 7.523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.1408, allocations: 211.4 kB / 0.6892 GB, free: 7.312 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1408, allocations: 0 / 0.6892 GB, free: 7.312 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.1408, allocations: 12 kB / 0.6892 GB, free: 7.301 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1408, allocations: 4 kB / 0.6893 GB, free: 7.297 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003515/0.1412, allocations: 165.6 kB / 0.6894 GB, free: 7.137 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.1422, allocations: 0.87 MB / 0.6903 GB, free: 6.191 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.1425, allocations: 158.5 kB / 0.6904 GB, free: 6.027 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001915/0.1427, allocations: 108.8 kB / 0.6905 GB, free: 5.918 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.1427, allocations: 3.938 kB / 0.6905 GB, free: 5.914 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.1428, allocations: 38.56 kB / 0.6906 GB, free: 5.867 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.262e-06/0.1428, allocations: 0 / 0.6906 GB, free: 5.867 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005366/0.1433, allocations: 259 kB / 0.6908 GB, free: 5.609 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.88e-05/0.1434, allocations: 51.41 kB / 0.6909 GB, free: 5.547 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004115/0.1438, allocations: 421.7 kB / 0.6913 GB, free: 5.129 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.1438, allocations: 29.7 kB / 0.6913 GB, free: 5.094 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.1439, allocations: 204.2 kB / 0.6915 GB, free: 4.887 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.81e-05/0.144, allocations: 67.08 kB / 0.6915 GB, free: 4.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.961e-05/0.144, allocations: 33.72 kB / 0.6916 GB, free: 4.781 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1442, allocations: 350.8 kB / 0.6919 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.1443, allocations: 55.92 kB / 0.692 GB, free: 4.375 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.1444, allocations: 61.86 kB / 0.692 GB, free: 4.316 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002723/0.1447, allocations: 130.7 kB / 0.6921 GB, free: 4.188 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1447, allocations: 0 / 0.6921 GB, free: 4.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003561/0.1451, allocations: 209.1 kB / 0.6923 GB, free: 3.977 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.058e-05/0.1451, allocations: 4 kB / 0.6923 GB, free: 3.973 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.1451, allocations: 3.938 kB / 0.6924 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.1451, allocations: 4 kB / 0.6924 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002316/0.1454, allocations: 59.89 kB / 0.6924 GB, free: 3.906 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1454, allocations: 3.938 kB / 0.6924 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.1455, allocations: 15.84 kB / 0.6924 GB, free: 3.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.1455, allocations: 8 kB / 0.6924 GB, free: 3.879 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 (20): * Single equations (assignments): 20 * 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.0001366/0.1457, allocations: 174.4 kB / 0.6926 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.686e-05/0.1457, allocations: 39.53 kB / 0.6926 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.51e-05/0.1458, allocations: 43.53 kB / 0.6927 GB, free: 3.613 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1458, allocations: 7.984 kB / 0.6927 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.1458, allocations: 0 / 0.6927 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.1458, allocations: 0 / 0.6927 GB, free: 3.605 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003466/0.1462, allocations: 369.3 kB / 0.693 GB, free: 3.195 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1462, allocations: 0 / 0.693 GB, free: 3.195 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.1464, allocations: 55.95 kB / 0.6931 GB, free: 3.141 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1464, allocations: 4 kB / 0.6931 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.1465, allocations: 7.938 kB / 0.6931 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1465, allocations: 0 / 0.6931 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1465, allocations: 0 / 0.6931 GB, free: 3.129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005367/0.147, allocations: 381.2 kB / 0.6935 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/0.1471, allocations: 120.7 kB / 0.6936 GB, free: 2.605 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.369e-05/0.1472, allocations: 11.92 kB / 0.6936 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.1473, allocations: 8 kB / 0.6936 GB, free: 2.586 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.54e-05/0.1474, allocations: 11.98 kB / 0.6936 GB, free: 2.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1474, allocations: 0 / 0.6936 GB, free: 2.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002921/0.1477, allocations: 307.1 kB / 0.6939 GB, free: 2.273 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1477, allocations: 0 / 0.6939 GB, free: 2.273 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00028/0.148, allocations: 71.84 kB / 0.694 GB, free: 2.203 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0007862/0.1487, allocations: 0.9286 MB / 0.6949 GB, free: 1.25 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00034/0.1491, allocations: 150.4 kB / 0.695 GB, free: 1.105 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1491, allocations: 4.062 kB / 0.695 GB, free: 1.102 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.1493, allocations: 79.81 kB / 0.6951 GB, free: 1.023 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000489/0.1498, allocations: 100.9 kB / 0.6952 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003809/0.1536, allocations: 3.534 MB / 0.6987 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.1539, allocations: 0.7951 MB / 0.6994 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001046/0.154, allocations: 38.95 kB / 0.6995 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.1541, allocations: 119.4 kB / 0.6996 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1542, allocations: 0 / 0.6996 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.093/3.247, allocations: 7.855 MB / 0.7073 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.612/10.86, allocations: 9.812 kB / 0.7073 GB, free: 4.758 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)