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.007628/0.007628, allocations: 101.4 kB / 15.73 MB, free: 6.469 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.001775/0.001774, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002213/0.002213, allocations: 290 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9319/0.9319, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00304/0.00304, allocations: 100 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1643, allocations: 86.97 MB / 0.7659 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004852/0.1692, allocations: 4.145 MB / 0.77 GB, free: 4.73 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003232/0.1725, allocations: 2.398 MB / 0.7723 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004245/0.1729, allocations: 15.94 kB / 0.7724 GB, free: 2.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001627/0.1746, allocations: 0.5346 MB / 0.7729 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0006499/0.1753, allocations: 250 kB / 0.7731 GB, free: 1.523 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003/0.1756, allocations: 135.8 kB / 0.7732 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009313/0.1765, allocations: 0.8214 MB / 0.774 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004681/0.177, allocations: 338.4 kB / 0.7744 GB, free: 236 kB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3004/0.4775, allocations: 288.5 kB / 0.7746 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005334/0.478, allocations: 327.1 kB / 0.775 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001666/0.4782, allocations: 74.38 kB / 0.775 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.4784, allocations: 74.75 kB / 0.7751 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001625/0.4785, allocations: 170.8 kB / 0.7753 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003629/0.4789, allocations: 390.7 kB / 0.7756 GB, free: 8.664 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.4799, allocations: 0.9977 MB / 0.7766 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4799, allocations: 0 / 0.7766 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.823e-06/0.48, allocations: 0 / 0.7766 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.756e-05/0.48, allocations: 1.312 kB / 0.7766 GB, free: 8.555 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.001431/0.4814, allocations: 0.9503 MB / 0.7775 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.4815, allocations: 9.188 kB / 0.7775 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.068e-05/0.4816, allocations: 90.44 kB / 0.7776 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001178/0.4817, allocations: 73.38 kB / 0.7777 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006168/0.4823, allocations: 459.3 kB / 0.7781 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.4823, allocations: 34.91 kB / 0.7782 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.438e-05/0.4824, allocations: 51.67 kB / 0.7782 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007209/0.4831, allocations: 431.8 kB / 0.7786 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.4832, allocations: 1.469 kB / 0.7786 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.82e-05/0.4832, allocations: 17.94 kB / 0.7787 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.4832, allocations: 12.03 kB / 0.7787 GB, free: 7.578 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000655/0.4839, allocations: 369.3 kB / 0.779 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/0.4858, allocations: 1.515 MB / 0.7805 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004746/0.4863, allocations: 344.2 kB / 0.7808 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004258/0.4867, allocations: 329.4 kB / 0.7811 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.414e-05/0.4867, allocations: 3.688 kB / 0.7811 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.4868, allocations: 37.19 kB / 0.7812 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 2.285e-06/0.4868, allocations: 0 / 0.7812 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.000877/0.4877, allocations: 0.4931 MB / 0.7817 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.192e-05/0.4877, allocations: 55.94 kB / 0.7817 GB, free: 6.605 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005164/0.4882, allocations: 489.2 kB / 0.7822 GB, free: 6.379 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.4883, allocations: 33.33 kB / 0.7822 GB, free: 6.344 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001318/0.4884, allocations: 276.9 kB / 0.7825 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 9.067e-05/0.4885, allocations: 146.2 kB / 0.7826 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.701e-05/0.4886, allocations: 59.97 kB / 0.7827 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.501e-05/0.4887, allocations: 361.6 kB / 0.783 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002311/0.4889, allocations: 122.7 kB / 0.7831 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002144/0.4891, allocations: 127.1 kB / 0.7833 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.4896, allocations: 298.8 kB / 0.7835 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4896, allocations: 0.8125 kB / 0.7835 GB, free: 5.406 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006199/0.4902, allocations: 404.9 kB / 0.7839 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.4902, allocations: 5.688 kB / 0.7839 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.4903, allocations: 2.062 kB / 0.7839 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.4903, allocations: 1.906 kB / 0.7839 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004827/0.4908, allocations: 122.7 kB / 0.7841 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.4908, allocations: 2.984 kB / 0.7841 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.491, allocations: 35.14 kB / 0.7841 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.007e-05/0.4911, allocations: 15.16 kB / 0.7841 GB, free: 5.184 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.0002126/0.4913, allocations: 203.2 kB / 0.7843 GB, free: 5.02 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.306e-05/0.4914, allocations: 57.84 kB / 0.7844 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.4915, allocations: 57.81 kB / 0.7844 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.4915, allocations: 4.75 kB / 0.7844 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.4915, allocations: 3.938 kB / 0.7844 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.4915, allocations: 1.219 kB / 0.7844 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006542/0.4922, allocations: 0.563 MB / 0.785 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.4922, allocations: 1.406 kB / 0.785 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005107/0.4927, allocations: 135 kB / 0.7851 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.4927, allocations: 0.8438 kB / 0.7851 GB, free: 4.594 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.4928, allocations: 10.69 kB / 0.7851 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.4928, allocations: 2.219 kB / 0.7851 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.4928, allocations: 1.734 kB / 0.7851 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008721/0.4937, allocations: 0.6519 MB / 0.7857 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.4938, allocations: 146.2 kB / 0.7859 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.18e-05/0.4939, allocations: 4 kB / 0.7859 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.4941, allocations: 16.73 kB / 0.7859 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.4942, allocations: 25.42 kB / 0.7859 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.55e-05/0.4942, allocations: 4.203 kB / 0.7859 GB, free: 4.074 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004099/0.4946, allocations: 355.8 kB / 0.7863 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.71e-07/0.4946, allocations: 0 / 0.7863 GB, free: 3.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004104/0.495, allocations: 143.3 kB / 0.7864 GB, free: 3.879 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.0009869/0.496, allocations: 1.202 MB / 0.7876 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0005321/0.4966, allocations: 325.1 kB / 0.7879 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4966, allocations: 0 / 0.7879 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002459/0.4968, allocations: 178.4 kB / 0.7881 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006592/0.4975, allocations: 136.2 kB / 0.7882 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005888/0.5034, allocations: 4.852 MB / 0.7929 GB, free: 16.15 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.5038, allocations: 0.869 MB / 0.7938 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002496/0.5041, allocations: 53.42 kB / 0.7938 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.5043, allocations: 187.3 kB / 0.794 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of SimCode: time 1.654e-06/0.5043, allocations: 0 / 0.794 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.5419, allocations: 11.65 MB / 0.8054 GB, free: 13.81 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.949/8.491, allocations: 9.562 kB / 0.8054 GB, free: 13.8 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)