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.001254/0.001254, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001277/0.001277, allocations: 194.4 kB / 16.14 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.255/1.255, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001925/0.001925, allocations: 279.1 kB / 290.2 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.886/0.886, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 97.36 kB / 0.5947 GB, free: 28.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1392, allocations: 86.97 MB / 0.6796 GB, free: 1.016 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.004041/0.1433, allocations: 3.051 MB / 0.6826 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002303/0.1456, allocations: 2.115 MB / 0.6846 GB, free: 11.84 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.1458, allocations: 12 kB / 0.6846 GB, free: 11.82 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001144/0.147, allocations: 482 kB / 0.6851 GB, free: 11.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002083/0.1472, allocations: 123.2 kB / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.494e-05/0.1473, allocations: 55.91 kB / 0.6853 GB, free: 11.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003961/0.1477, allocations: 470.8 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.1479, allocations: 131.9 kB / 0.6858 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.1481, allocations: 143.3 kB / 0.686 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000172/0.1482, allocations: 175.2 kB / 0.6862 GB, free: 10.27 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.1483, allocations: 24 kB / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.725e-05/0.1484, allocations: 27.94 kB / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.777e-05/0.1485, allocations: 87.61 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.1486, allocations: 202.9 kB / 0.6865 GB, free: 9.938 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.1491, allocations: 0.5372 MB / 0.687 GB, free: 9.398 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1491, allocations: 0 / 0.687 GB, free: 9.398 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1491, allocations: 0 / 0.687 GB, free: 9.398 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.1491, allocations: 0 / 0.687 GB, free: 9.398 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.00091/0.15, allocations: 0.7045 MB / 0.6877 GB, free: 8.645 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1501, allocations: 8.031 kB / 0.6877 GB, free: 8.637 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.255e-05/0.1501, allocations: 54.73 kB / 0.6878 GB, free: 8.574 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.402e-05/0.1502, allocations: 52.38 kB / 0.6878 GB, free: 8.523 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004037/0.1506, allocations: 370.1 kB / 0.6882 GB, free: 8.125 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1506, allocations: 16.81 kB / 0.6882 GB, free: 8.109 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.662e-05/0.1507, allocations: 28.36 kB / 0.6882 GB, free: 8.082 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.1511, allocations: 199.4 kB / 0.6884 GB, free: 7.883 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1511, allocations: 4 kB / 0.6884 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.1511, allocations: 12 kB / 0.6884 GB, free: 7.867 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.1511, allocations: 4 kB / 0.6884 GB, free: 7.863 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003652/0.1515, allocations: 165.6 kB / 0.6886 GB, free: 7.703 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.1526, allocations: 0.8661 MB / 0.6894 GB, free: 6.762 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002858/0.1529, allocations: 154.5 kB / 0.6896 GB, free: 6.602 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.1531, allocations: 122.5 kB / 0.6897 GB, free: 6.48 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.1531, allocations: 3.984 kB / 0.6897 GB, free: 6.477 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.1532, allocations: 30.56 kB / 0.6897 GB, free: 6.438 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.1532, allocations: 0 / 0.6897 GB, free: 6.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005606/0.1537, allocations: 257.3 kB / 0.69 GB, free: 6.18 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.1538, allocations: 55.41 kB / 0.69 GB, free: 6.113 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004329/0.1542, allocations: 421.7 kB / 0.6904 GB, free: 5.691 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.1542, allocations: 29.7 kB / 0.6904 GB, free: 5.656 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.1544, allocations: 204.2 kB / 0.6906 GB, free: 5.449 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.313e-05/0.1544, allocations: 67.08 kB / 0.6907 GB, free: 5.383 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.1545, allocations: 25.72 kB / 0.6907 GB, free: 5.352 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1546, allocations: 354.7 kB / 0.6911 GB, free: 4.996 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.1548, allocations: 63.86 kB / 0.6911 GB, free: 4.934 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001337/0.1549, allocations: 63.95 kB / 0.6912 GB, free: 4.871 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.1552, allocations: 126.4 kB / 0.6913 GB, free: 4.746 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1552, allocations: 0 / 0.6913 GB, free: 4.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003771/0.1556, allocations: 210.8 kB / 0.6915 GB, free: 4.535 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.1556, allocations: 6.188 kB / 0.6915 GB, free: 4.531 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1556, allocations: 3.938 kB / 0.6915 GB, free: 4.527 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.1557, allocations: 7.984 kB / 0.6915 GB, free: 4.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002456/0.1559, allocations: 59.91 kB / 0.6916 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.1559, allocations: 0 / 0.6916 GB, free: 4.461 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001473/0.1561, allocations: 23.83 kB / 0.6916 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.1561, allocations: 4 kB / 0.6916 GB, free: 4.434 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.0001537/0.1563, allocations: 162.5 kB / 0.6918 GB, free: 4.266 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/0.1563, allocations: 43.47 kB / 0.6918 GB, free: 4.223 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.396e-05/0.1564, allocations: 43.53 kB / 0.6918 GB, free: 4.176 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.1564, allocations: 4 kB / 0.6918 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1564, allocations: 0 / 0.6918 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1564, allocations: 0 / 0.6918 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003824/0.1568, allocations: 373.3 kB / 0.6922 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1568, allocations: 0 / 0.6922 GB, free: 3.758 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00025/0.1571, allocations: 55.97 kB / 0.6923 GB, free: 3.703 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1571, allocations: 0 / 0.6923 GB, free: 3.703 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.1571, allocations: 3.938 kB / 0.6923 GB, free: 3.699 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1571, allocations: 11.94 kB / 0.6923 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1571, allocations: 0 / 0.6923 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005567/0.1577, allocations: 375 kB / 0.6926 GB, free: 3.305 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.187e-05/0.1578, allocations: 120.6 kB / 0.6927 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.304e-05/0.1578, allocations: 7.938 kB / 0.6927 GB, free: 3.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.158, allocations: 16.05 kB / 0.6928 GB, free: 3.145 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.718e-05/0.158, allocations: 7.984 kB / 0.6928 GB, free: 3.137 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.284e-06/0.1581, allocations: 4 kB / 0.6928 GB, free: 3.133 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002976/0.1584, allocations: 307.1 kB / 0.6931 GB, free: 2.836 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1584, allocations: 0 / 0.6931 GB, free: 2.836 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.1587, allocations: 71.84 kB / 0.6931 GB, free: 2.766 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.0008129/0.1595, allocations: 0.9284 MB / 0.694 GB, free: 1.812 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003219/0.1598, allocations: 145.5 kB / 0.6942 GB, free: 1.672 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1598, allocations: 0 / 0.6942 GB, free: 1.672 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.16, allocations: 83.95 kB / 0.6943 GB, free: 1.59 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000552/0.1605, allocations: 81.45 kB / 0.6943 GB, free: 1.512 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004287/0.1648, allocations: 3.642 MB / 0.6979 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.1652, allocations: 0.8031 MB / 0.6987 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001262/0.1653, allocations: 34.95 kB / 0.6987 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.1655, allocations: 119.4 kB / 0.6988 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1655, allocations: 0 / 0.6988 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.183, allocations: 7.508 MB / 0.7062 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.1833, allocations: 291.4 kB / 0.7064 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.828/2.012, allocations: 4 kB / 0.7064 GB, free: 5.219 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)