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.007605/0.007605, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.001713/0.001713, allocations: 196 kB / 16.67 MB, free: 5.93 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.283/1.283, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002223/0.002223, allocations: 275 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9166/0.9166, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 95.86 kB / 0.681 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1548/0.1566, allocations: 86.98 MB / 0.766 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004961/0.1616, allocations: 4.137 MB / 0.77 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003153/0.1648, allocations: 2.402 MB / 0.7723 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003744/0.1652, allocations: 12 kB / 0.7723 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.1668, allocations: 0.5402 MB / 0.7729 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005693/0.1673, allocations: 246 kB / 0.7731 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1676, allocations: 135.9 kB / 0.7732 GB, free: 1.371 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008312/0.1684, allocations: 0.8194 MB / 0.774 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004175/0.1689, allocations: 338.4 kB / 0.7744 GB, free: 220 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3152/0.4841, allocations: 282.5 kB / 0.7746 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000572/0.4847, allocations: 330.4 kB / 0.7749 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.4849, allocations: 75.28 kB / 0.775 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.485, allocations: 74.94 kB / 0.7751 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001679/0.4852, allocations: 171.2 kB / 0.7753 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003361/0.4855, allocations: 387.6 kB / 0.7756 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001029/0.4866, allocations: 0.9979 MB / 0.7766 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4866, allocations: 0 / 0.7766 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.442e-06/0.4866, allocations: 0 / 0.7766 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.299e-05/0.4866, allocations: 1.906 kB / 0.7766 GB, free: 8.57 MB / 0.5606 GB 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.001355/0.488, allocations: 0.9487 MB / 0.7775 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.488, allocations: 10.53 kB / 0.7775 GB, free: 7.98 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.416e-05/0.4881, allocations: 89.94 kB / 0.7776 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.4882, allocations: 72.88 kB / 0.7777 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005845/0.4888, allocations: 460.7 kB / 0.7781 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.4889, allocations: 38 kB / 0.7782 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.168e-05/0.4889, allocations: 45.59 kB / 0.7782 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007087/0.4897, allocations: 431 kB / 0.7786 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.4897, allocations: 2 kB / 0.7786 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.823e-05/0.4897, allocations: 23.09 kB / 0.7786 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.4898, allocations: 11.72 kB / 0.7787 GB, free: 7.594 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006465/0.4904, allocations: 369 kB / 0.779 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.4922, allocations: 1.518 MB / 0.7805 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004716/0.4927, allocations: 343.1 kB / 0.7808 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004552/0.4931, allocations: 321.9 kB / 0.7811 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.4932, allocations: 4.562 kB / 0.7811 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.4932, allocations: 52.39 kB / 0.7812 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 1.573e-06/0.4932, allocations: 0 / 0.7812 GB, free: 6.902 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.0009223/0.4941, allocations: 495.8 kB / 0.7817 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.4942, allocations: 55.22 kB / 0.7817 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005439/0.4947, allocations: 488.8 kB / 0.7822 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.4948, allocations: 31.11 kB / 0.7822 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000137/0.4949, allocations: 282.2 kB / 0.7825 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.542e-05/0.495, allocations: 138.9 kB / 0.7826 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-05/0.4951, allocations: 61.89 kB / 0.7827 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.444e-05/0.4952, allocations: 359.7 kB / 0.783 GB, free: 5.66 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002399/0.4954, allocations: 127 kB / 0.7831 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.4957, allocations: 125.1 kB / 0.7832 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004849/0.4962, allocations: 302.9 kB / 0.7835 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4962, allocations: 1.094 kB / 0.7835 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006247/0.4968, allocations: 402.3 kB / 0.7839 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.4968, allocations: 3.938 kB / 0.7839 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.4968, allocations: 1.406 kB / 0.7839 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.4969, allocations: 2.031 kB / 0.7839 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.4974, allocations: 127.5 kB / 0.784 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.4974, allocations: 1.828 kB / 0.784 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002259/0.4976, allocations: 45.77 kB / 0.7841 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.4976, allocations: 10.88 kB / 0.7841 GB, free: 5.199 MB / 0.5606 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.0001762/0.4978, allocations: 195.5 kB / 0.7843 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.346e-05/0.4979, allocations: 56.88 kB / 0.7843 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.872e-05/0.498, allocations: 62.91 kB / 0.7844 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.498, allocations: 4.031 kB / 0.7844 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.498, allocations: 4.719 kB / 0.7844 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.498, allocations: 0.5156 kB / 0.7844 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005875/0.4986, allocations: 0.5685 MB / 0.785 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4986, allocations: 0.9688 kB / 0.785 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004918/0.4991, allocations: 129 kB / 0.7851 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.4991, allocations: 0.6562 kB / 0.7851 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.4992, allocations: 10.53 kB / 0.7851 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4992, allocations: 3.406 kB / 0.7851 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4992, allocations: 0 / 0.7851 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008537/0.5, allocations: 0.651 MB / 0.7857 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001005/0.5001, allocations: 143.2 kB / 0.7859 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.731e-05/0.5002, allocations: 9.844 kB / 0.7859 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.5004, allocations: 12.44 kB / 0.7859 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.261e-05/0.5005, allocations: 24.36 kB / 0.7859 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.5005, allocations: 9.031 kB / 0.7859 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003233/0.5008, allocations: 356.6 kB / 0.7863 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5008, allocations: 0 / 0.7863 GB, free: 3.926 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003747/0.5012, allocations: 143.8 kB / 0.7864 GB, free: 3.895 MB / 0.5606 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.000975/0.5022, allocations: 1.206 MB / 0.7876 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005132/0.5027, allocations: 318.9 kB / 0.7879 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.5027, allocations: 0 / 0.7879 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.503, allocations: 180.7 kB / 0.7881 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.5036, allocations: 128.6 kB / 0.7882 GB, free: 2.812 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005448/0.5091, allocations: 4.861 MB / 0.7929 GB, free: 16.16 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.5095, allocations: 0.8629 MB / 0.7938 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002025/0.5097, allocations: 59.09 kB / 0.7938 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.5099, allocations: 191.4 kB / 0.794 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of SimCode: time 4.11e-07/0.5099, allocations: 0 / 0.794 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.5414, allocations: 11.64 MB / 0.8054 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.049/8.591, allocations: 3.25 kB / 0.8054 GB, free: 13.82 MB / 0.5762 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)