Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.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.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_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.005957/0.005957, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001365/0.001365, allocations: 198.9 kB / 16.68 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002491/0.002491, allocations: 282.8 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.048/1.048, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002672/0.002672, allocations: 99.84 kB / 0.6944 GB, free: 3.531 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4397/0.4424, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube): time 0.002529/0.445, allocations: 1.441 MB / 0.7828 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00435/0.4494, allocations: 2.898 MB / 0.7857 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.4494, allocations: 0 / 0.7857 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.84e-05/0.4495, allocations: 7.375 kB / 0.7857 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.699e-05/0.4496, allocations: 14.53 kB / 0.7857 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004107/0.4537, allocations: 1.59 MB / 0.7872 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.768e-05/0.4538, allocations: 46.11 kB / 0.7873 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.652e-05/0.4539, allocations: 2.984 kB / 0.7873 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.909e-05/0.4539, allocations: 13.16 kB / 0.7873 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 3.021e-05/0.4539, allocations: 14.94 kB / 0.7873 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.4539, allocations: 1.469 kB / 0.7873 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.4567, allocations: 1.54 MB / 0.7888 GB, free: 9.531 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.182e-05/0.4567, allocations: 6.391 kB / 0.7888 GB, free: 9.527 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 5.11e-05/0.4568, allocations: 20.23 kB / 0.7888 GB, free: 9.516 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002111/0.4589, allocations: 1.108 MB / 0.7899 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.4589, allocations: 1.25 kB / 0.7899 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4589, allocations: 0 / 0.7899 GB, free: 9.23 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.459, allocations: 0 / 0.7899 GB, free: 9.23 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007778/0.4597, allocations: 0.5366 MB / 0.7904 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.4598, allocations: 10.84 kB / 0.7905 GB, free: 8.723 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.337e-05/0.4599, allocations: 114 kB / 0.7906 GB, free: 8.602 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.417e-05/0.4599, allocations: 87.67 kB / 0.7906 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.4601, allocations: 245.1 kB / 0.7909 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.143e-05/0.4602, allocations: 150.9 kB / 0.791 GB, free: 8.098 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.686e-05/0.4602, allocations: 157 kB / 0.7912 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.963e-05/0.4603, allocations: 104.9 kB / 0.7913 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.4604, allocations: 80.5 kB / 0.7914 GB, free: 7.758 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.575e-05/0.4604, allocations: 151.3 kB / 0.7915 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.32e-05/0.4605, allocations: 158.5 kB / 0.7916 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.057e-05/0.4606, allocations: 155.8 kB / 0.7918 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003156/0.4609, allocations: 466.4 kB / 0.7922 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 8.94e-05/0.461, allocations: 178.5 kB / 0.7924 GB, free: 6.629 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.889e-05/0.461, allocations: 80.14 kB / 0.7925 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.4611, allocations: 79.22 kB / 0.7926 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.331e-05/0.4611, allocations: 107.8 kB / 0.7927 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 7.91e-07/0.4611, allocations: 3.938 kB / 0.7927 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 7.645e-05/0.4612, allocations: 37.91 kB / 0.7927 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/0.4613, allocations: 127.5 kB / 0.7928 GB, free: 6.176 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.4614, allocations: 134 kB / 0.793 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.4614, allocations: 25.7 kB / 0.793 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.4615, allocations: 100.3 kB / 0.7931 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.254e-06/0.4615, allocations: 0 / 0.7931 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.438e-05/0.4616, allocations: 17.06 kB / 0.7931 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4617, allocations: 319.2 kB / 0.7934 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.496e-05/0.4617, allocations: 7.094 kB / 0.7934 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.096e-05/0.4617, allocations: 7.875 kB / 0.7934 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.315e-05/0.4618, allocations: 15.69 kB / 0.7934 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.4618, allocations: 0 / 0.7934 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001176/0.4619, allocations: 50.22 kB / 0.7935 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.4619, allocations: 6.156 kB / 0.7935 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.462, allocations: 3.438 kB / 0.7935 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.462, allocations: 1.312 kB / 0.7935 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.412e-06/0.462, allocations: 0.5625 kB / 0.7935 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.462, allocations: 4.062 kB / 0.7935 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.58e-05/0.462, allocations: 5.234 kB / 0.7935 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.104e-06/0.462, allocations: 2.406 kB / 0.7935 GB, free: 5.539 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001002/0.4622, allocations: 186.5 kB / 0.7937 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.69e-05/0.4622, allocations: 116.1 kB / 0.7938 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.702e-05/0.4623, allocations: 113.6 kB / 0.7939 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-05/0.4624, allocations: 177.9 kB / 0.7941 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.048e-05/0.4624, allocations: 188.9 kB / 0.7942 GB, free: 4.746 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.085e-05/0.4625, allocations: 178.9 kB / 0.7944 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.4628, allocations: 417.6 kB / 0.7948 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.054e-05/0.4628, allocations: 101.7 kB / 0.7949 GB, free: 4.008 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.4629, allocations: 103.8 kB / 0.795 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.473e-05/0.4629, allocations: 194.6 kB / 0.7952 GB, free: 3.707 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.841e-05/0.463, allocations: 180.8 kB / 0.7954 GB, free: 3.523 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.042e-05/0.4631, allocations: 186.2 kB / 0.7955 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-05/0.4632, allocations: 178 kB / 0.7957 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000145/0.4633, allocations: 314.7 kB / 0.796 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 8.311e-05/0.4634, allocations: 184.6 kB / 0.7962 GB, free: 2.629 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.208e-05/0.4635, allocations: 182.6 kB / 0.7964 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.044e-05/0.4636, allocations: 103 kB / 0.7965 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.406e-05/0.4636, allocations: 186 kB / 0.7966 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-05/0.4637, allocations: 107.2 kB / 0.7967 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.825e-05/0.4638, allocations: 103.3 kB / 0.7968 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4638, allocations: 0 / 0.7968 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0009806/0.4648, allocations: 289 kB / 0.7971 GB, free: 1.887 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.00151/0.4663, allocations: 1.19 MB / 0.7983 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001062/0.4664, allocations: 40.38 kB / 0.7983 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4664, allocations: 0 / 0.7983 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.954e-06/0.4664, allocations: 1.156 kB / 0.7983 GB, free: 0.9219 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.4668, allocations: 468.6 kB / 0.7988 GB, free: 476 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.4684, allocations: 1.591 MB / 0.8003 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.4688, allocations: 0.683 MB / 0.801 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.615e-05/0.4688, allocations: 1.375 kB / 0.801 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.306e-05/0.4688, allocations: 17.88 kB / 0.801 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of SimCode: time 5.51e-07/0.4688, allocations: 0 / 0.801 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.4991, allocations: 7.104 MB / 0.8079 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.411, allocations: 13.38 kB / 0.808 GB, free: 10.96 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTube.pipe 2>&1)