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.001211/0.001211, 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.001234/0.001234, allocations: 194.3 kB / 16.14 MB, free: 6.66 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.31/1.31, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 287 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9001/0.9001, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 92.16 kB / 0.5947 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1486, allocations: 86.98 MB / 0.6796 GB, free: 1 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004916/0.1535, allocations: 4.153 MB / 0.6836 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.1562, allocations: 2.366 MB / 0.686 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.1564, allocations: 15.94 kB / 0.686 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.1576, allocations: 0.5017 MB / 0.6865 GB, free: 9.938 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003244/0.158, allocations: 210.5 kB / 0.6867 GB, free: 9.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001892/0.1581, allocations: 119.9 kB / 0.6868 GB, free: 9.613 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006665/0.1588, allocations: 0.8059 MB / 0.6876 GB, free: 8.805 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003586/0.1592, allocations: 276.1 kB / 0.6878 GB, free: 8.531 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002451/0.1594, allocations: 262.9 kB / 0.6881 GB, free: 8.273 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.1597, allocations: 326.5 kB / 0.6884 GB, free: 7.953 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.871e-05/0.1598, allocations: 48 kB / 0.6884 GB, free: 7.906 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.137e-05/0.1599, allocations: 51.94 kB / 0.6885 GB, free: 7.855 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001293/0.16, allocations: 139.4 kB / 0.6886 GB, free: 7.719 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.1603, allocations: 366.2 kB / 0.689 GB, free: 7.359 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006891/0.161, allocations: 0.9654 MB / 0.6899 GB, free: 6.391 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1611, allocations: 0 / 0.6899 GB, free: 6.391 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1611, allocations: 0 / 0.6899 GB, free: 6.391 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1611, allocations: 0 / 0.6899 GB, free: 6.391 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.001308/0.1624, allocations: 0.9424 MB / 0.6908 GB, free: 5.398 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.1624, allocations: 12.03 kB / 0.6908 GB, free: 5.387 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.498e-05/0.1625, allocations: 82.7 kB / 0.6909 GB, free: 5.297 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.115e-05/0.1626, allocations: 80.09 kB / 0.691 GB, free: 5.219 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005109/0.1632, allocations: 461.7 kB / 0.6914 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.1632, allocations: 29.38 kB / 0.6915 GB, free: 4.703 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.984e-05/0.1633, allocations: 52.28 kB / 0.6915 GB, free: 4.652 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007043/0.164, allocations: 430.6 kB / 0.6919 GB, free: 4.223 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.164, allocations: 7.984 kB / 0.6919 GB, free: 4.215 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.947e-05/0.164, allocations: 20 kB / 0.692 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.1641, allocations: 19.88 kB / 0.692 GB, free: 4.176 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.1647, allocations: 367.8 kB / 0.6923 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001863/0.1666, allocations: 1.52 MB / 0.6938 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.1671, allocations: 338.9 kB / 0.6941 GB, free: 1.887 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004332/0.1675, allocations: 325.5 kB / 0.6944 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.283e-05/0.1676, allocations: 7.938 kB / 0.6944 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.1676, allocations: 38.56 kB / 0.6945 GB, free: 1.512 MB / 494.1 MB Notification: Performance of pre-optimization done (n=42): time 1.383e-06/0.1676, allocations: 3.938 kB / 0.6945 GB, free: 1.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008567/0.1685, allocations: 0.4892 MB / 0.695 GB, free: 1.012 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.581e-05/0.1685, allocations: 55.41 kB / 0.695 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004918/0.169, allocations: 485.9 kB / 0.6955 GB, free: 476 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.169, allocations: 37.69 kB / 0.6955 GB, free: 432 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.1692, allocations: 272.4 kB / 0.6958 GB, free: 156 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.1693, allocations: 149.8 kB / 0.6959 GB, free: 4 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.998e-05/0.1694, allocations: 62.16 kB / 0.696 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1696, allocations: 366.8 kB / 0.6963 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.1698, allocations: 120.6 kB / 0.6964 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.1701, allocations: 129.4 kB / 0.6966 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004727/0.1705, allocations: 298 kB / 0.6969 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1705, allocations: 0 / 0.6969 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006045/0.1712, allocations: 400.2 kB / 0.6972 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1712, allocations: 7.984 kB / 0.6972 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1712, allocations: 0 / 0.6972 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.1712, allocations: 4 kB / 0.6972 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000473/0.1717, allocations: 123.9 kB / 0.6974 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1717, allocations: 7.875 kB / 0.6974 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002313/0.1719, allocations: 47.58 kB / 0.6974 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.172, allocations: 12 kB / 0.6974 GB, free: 14.43 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.0001975/0.1722, allocations: 198.4 kB / 0.6976 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.055e-05/0.1722, allocations: 51.38 kB / 0.6977 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.65e-05/0.1723, allocations: 65.09 kB / 0.6977 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.1723, allocations: 4 kB / 0.6977 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1723, allocations: 0 / 0.6977 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1724, allocations: 4 kB / 0.6977 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005956/0.173, allocations: 0.5788 MB / 0.6983 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.173, allocations: 3.938 kB / 0.6983 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004951/0.1735, allocations: 123.9 kB / 0.6984 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1735, allocations: 0 / 0.6984 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.1735, allocations: 8 kB / 0.6984 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1735, allocations: 3.984 kB / 0.6984 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1735, allocations: 4 kB / 0.6984 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009186/0.1744, allocations: 0.6518 MB / 0.6991 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.1746, allocations: 136.4 kB / 0.6992 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.1746, allocations: 11.98 kB / 0.6992 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.1749, allocations: 19.98 kB / 0.6992 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.705e-05/0.1749, allocations: 27.97 kB / 0.6993 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.1749, allocations: 8 kB / 0.6993 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003667/0.1753, allocations: 351.1 kB / 0.6996 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1753, allocations: 0 / 0.6996 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003722/0.1757, allocations: 147.6 kB / 0.6997 GB, free: 11.96 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.001188/0.1769, allocations: 1.2 MB / 0.7009 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005319/0.1774, allocations: 320.2 kB / 0.7012 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.1774, allocations: 0 / 0.7012 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002767/0.1777, allocations: 183.6 kB / 0.7014 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006721/0.1784, allocations: 132.9 kB / 0.7015 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006437/0.1849, allocations: 5.225 MB / 0.7066 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.1853, allocations: 0.8707 MB / 0.7075 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002181/0.1855, allocations: 64.33 kB / 0.7075 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.1858, allocations: 191.4 kB / 0.7077 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of SimCode: time 4.1e-07/0.1858, allocations: 0 / 0.7077 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.2076, allocations: 10.8 MB / 0.7183 GB, free: 9.195 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.2078, allocations: 282.7 kB / 0.7185 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/2.041, allocations: 2.578 kB / 0.7185 GB, free: 8.82 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)