Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.005307/0.005307, allocations: 102.9 kB / 15.74 MB, free: 5.551 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.001808/0.001808, allocations: 195.9 kB / 16.67 MB, free: 5.48 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.274/2.274, allocations: 390.3 MB / 0.6648 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 67.89 kB / 0.9505 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8653/0.8668, allocations: 140.3 MB / 1.088 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002998/0.8698, allocations: 1.452 MB / 1.089 GB, free: 4.227 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005078/0.8749, allocations: 2.884 MB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.957e-05/0.875, allocations: 0 / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.055e-05/0.8751, allocations: 2.547 kB / 1.092 GB, free: 2.238 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.927e-05/0.8751, allocations: 20.61 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.004896/0.88, allocations: 1.579 MB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001206/0.8802, allocations: 50.48 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.514e-05/0.8802, allocations: 3.297 kB / 1.093 GB, free: 1.414 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.444e-05/0.8803, allocations: 13.83 kB / 1.093 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.31e-05/0.8803, allocations: 17.64 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.231e-05/0.8803, allocations: 0.9375 kB / 1.093 GB, free: 1.402 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003297/0.8836, allocations: 1.533 MB / 1.095 GB, free: 0.9141 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.8837, allocations: 6.797 kB / 1.095 GB, free: 0.9102 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.108e-05/0.8837, allocations: 21.25 kB / 1.095 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.886, allocations: 1.101 MB / 1.096 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.886, allocations: 4 kB / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.214e-06/0.886, allocations: 0 / 1.096 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.8e-06/0.886, allocations: 1.062 kB / 1.096 GB, free: 0.6055 MB / 0.8575 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.0006329/0.8866, allocations: 0.5404 MB / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.8867, allocations: 9.906 kB / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.317e-05/0.8868, allocations: 106 kB / 1.097 GB, free: 15.98 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.191e-05/0.8868, allocations: 79.33 kB / 1.097 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.887, allocations: 249 kB / 1.097 GB, free: 15.63 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.973e-05/0.8871, allocations: 160.5 kB / 1.097 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.943e-05/0.8871, allocations: 150.9 kB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.755e-05/0.8872, allocations: 106.6 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.8872, allocations: 75.78 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/0.8873, allocations: 150.6 kB / 1.098 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.226e-05/0.8873, allocations: 155.3 kB / 1.098 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.737e-05/0.8874, allocations: 160 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003012/0.8877, allocations: 462.2 kB / 1.098 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 7.973e-05/0.8878, allocations: 166.2 kB / 1.098 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.813e-05/0.8878, allocations: 84.14 kB / 1.099 GB, free: 13.94 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.907e-05/0.8879, allocations: 84.88 kB / 1.099 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/0.8879, allocations: 110.9 kB / 1.099 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=0): time 1.122e-06/0.8879, allocations: 0 / 1.099 GB, free: 13.74 MB / 0.8731 GB Notification: Performance of matching and sorting (n=0): time 7.395e-05/0.888, allocations: 32.52 kB / 1.099 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.8881, allocations: 127.9 kB / 1.099 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.8882, allocations: 138.3 kB / 1.099 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.28e-05/0.8883, allocations: 30.77 kB / 1.099 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 5.212e-05/0.8883, allocations: 96.55 kB / 1.099 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.987e-06/0.8883, allocations: 3.984 kB / 1.099 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.8884, allocations: 16.55 kB / 1.099 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.8885, allocations: 318.6 kB / 1.099 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.489e-05/0.8885, allocations: 3.938 kB / 1.099 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.927e-05/0.8885, allocations: 7.438 kB / 1.099 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.206e-05/0.8886, allocations: 19.86 kB / 1.1 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.8886, allocations: 4.031 kB / 1.1 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001315/0.8887, allocations: 57.42 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.8888, allocations: 6.547 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.209e-05/0.8888, allocations: 3.656 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.8888, allocations: 0.75 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.8888, allocations: 0 / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.8888, allocations: 1.281 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.255e-05/0.8888, allocations: 0.7969 kB / 1.1 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.8889, allocations: 1.312 kB / 1.1 GB, free: 12.92 MB / 0.8731 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 9.018e-05/0.889, allocations: 187.8 kB / 1.1 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.889, allocations: 116.4 kB / 1.1 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.209e-05/0.8891, allocations: 113 kB / 1.1 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.407e-05/0.8891, allocations: 189.1 kB / 1.1 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.207e-05/0.8892, allocations: 178 kB / 1.1 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-05/0.8892, allocations: 178.5 kB / 1.101 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002293/0.8895, allocations: 421.2 kB / 1.101 GB, free: 11.49 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-05/0.8895, allocations: 102.9 kB / 1.101 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.798e-05/0.8896, allocations: 109.5 kB / 1.101 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.416e-05/0.8897, allocations: 182.4 kB / 1.101 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.704e-05/0.8897, allocations: 178.3 kB / 1.101 GB, free: 10.91 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-05/0.8898, allocations: 185.6 kB / 1.102 GB, free: 10.72 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.238e-05/0.8898, allocations: 178.7 kB / 1.102 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001185/0.89, allocations: 317.5 kB / 1.102 GB, free: 10.21 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.89, allocations: 185.5 kB / 1.102 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.944e-05/0.8901, allocations: 187.4 kB / 1.102 GB, free: 9.82 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.393e-05/0.8902, allocations: 101.6 kB / 1.103 GB, free: 9.715 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.881e-05/0.8903, allocations: 186.5 kB / 1.103 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.648e-05/0.8903, allocations: 106.8 kB / 1.103 GB, free: 9.418 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 6.403e-05/0.8904, allocations: 97.09 kB / 1.103 GB, free: 9.34 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8904, allocations: 0 / 1.103 GB, free: 9.34 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0009829/0.8914, allocations: 286.2 kB / 1.103 GB, free: 9.27 MB / 0.8731 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.001506/0.8929, allocations: 1.183 MB / 1.104 GB, free: 8.344 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 9.723e-05/0.893, allocations: 43.75 kB / 1.104 GB, free: 8.305 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.893, allocations: 1.156 kB / 1.104 GB, free: 8.305 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.583e-06/0.893, allocations: 0 / 1.104 GB, free: 8.305 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000395/0.8934, allocations: 468.2 kB / 1.105 GB, free: 7.852 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001416/0.8948, allocations: 1.605 MB / 1.106 GB, free: 6.398 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.8951, allocations: 0.6831 MB / 1.107 GB, free: 5.703 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 1.454e-05/0.8951, allocations: 0.9375 kB / 1.107 GB, free: 5.703 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.579e-05/0.8951, allocations: 15.92 kB / 1.107 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of SimCode: time 2.595e-06/0.8951, allocations: 1.094 kB / 1.107 GB, free: 5.691 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.93, allocations: 7.063 MB / 1.114 GB, free: 4.965 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.99/8.92, allocations: 15.64 kB / 1.114 GB, free: 4.953 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)