Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.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.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",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.005317/0.005317, allocations: 100.7 kB / 15.73 MB, free: 6.059 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.001239/0.001239, allocations: 198.8 kB / 16.68 MB, free: 5.984 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.199 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002455/0.002455, allocations: 278.9 kB / 290.8 MB, free: 1.809 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004386/0.004386, allocations: 95.84 kB / 0.6943 GB, free: 3.602 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4627/0.4671, 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.Examples.InternalResistancesOneUTube): time 0.004503/0.4716, allocations: 3.021 MB / 0.7843 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003045/0.4747, allocations: 2.146 MB / 0.7864 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002202/0.4749, allocations: 4.562 kB / 0.7864 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001505/0.4765, allocations: 0.4927 MB / 0.7869 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003157/0.4768, allocations: 157 kB / 0.7871 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001363/0.4769, allocations: 57.8 kB / 0.7871 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005144/0.4774, allocations: 457.1 kB / 0.7876 GB, free: 9.586 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.4777, allocations: 149.6 kB / 0.7877 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002058/0.4779, allocations: 157.9 kB / 0.7879 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.4782, allocations: 186.9 kB / 0.788 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.823e-05/0.4782, allocations: 34.41 kB / 0.7881 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.337e-05/0.4783, allocations: 34.38 kB / 0.7881 GB, free: 9.336 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.4784, allocations: 95.33 kB / 0.7882 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.4786, allocations: 213.7 kB / 0.7884 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006368/0.4793, allocations: 0.5512 MB / 0.7889 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.397e-06/0.4793, allocations: 0.8125 kB / 0.7889 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.552e-06/0.4793, allocations: 3.938 kB / 0.7889 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.4793, allocations: 0 / 0.7889 GB, free: 8.945 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001069/0.4804, allocations: 0.7171 MB / 0.7896 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.4804, allocations: 10.09 kB / 0.7896 GB, free: 8.359 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.629e-05/0.4805, allocations: 54.41 kB / 0.7897 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.534e-05/0.4806, allocations: 46.5 kB / 0.7897 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.4812, allocations: 392.8 kB / 0.7901 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.4813, allocations: 17.41 kB / 0.7901 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-05/0.4813, allocations: 18.03 kB / 0.7901 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004718/0.4818, allocations: 208.4 kB / 0.7903 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.4818, allocations: 1.344 kB / 0.7903 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.4818, allocations: 9.656 kB / 0.7904 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.4819, allocations: 5.375 kB / 0.7904 GB, free: 7.844 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.4823, allocations: 164.7 kB / 0.7905 GB, free: 7.793 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.4835, allocations: 0.8541 MB / 0.7914 GB, free: 7.195 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003214/0.4839, allocations: 159.7 kB / 0.7915 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.4841, allocations: 109 kB / 0.7916 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.4841, allocations: 2.062 kB / 0.7916 GB, free: 7.074 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.4842, allocations: 36.61 kB / 0.7916 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.4842, allocations: 1.719 kB / 0.7916 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18): time 0.0006108/0.4848, allocations: 262.4 kB / 0.7919 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.4848, allocations: 54.59 kB / 0.792 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/0.4853, allocations: 416.9 kB / 0.7923 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.485e-05/0.4854, allocations: 31.11 kB / 0.7924 GB, free: 6.609 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001546/0.4855, allocations: 207.1 kB / 0.7926 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.575e-05/0.4856, allocations: 64.92 kB / 0.7926 GB, free: 6.387 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/0.4857, allocations: 34.59 kB / 0.7927 GB, free: 6.359 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.4858, allocations: 347.6 kB / 0.793 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.486, allocations: 56.89 kB / 0.7931 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.4861, allocations: 59.17 kB / 0.7931 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.4864, allocations: 135.8 kB / 0.7932 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4864, allocations: 0 / 0.7932 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003952/0.4868, allocations: 208.1 kB / 0.7934 GB, free: 5.832 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.4869, allocations: 10.61 kB / 0.7935 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.4869, allocations: 3.938 kB / 0.7935 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.4869, allocations: 5.156 kB / 0.7935 GB, free: 5.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.4872, allocations: 55.5 kB / 0.7935 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.4872, allocations: 0 / 0.7935 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/0.4873, allocations: 21.88 kB / 0.7935 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.4873, allocations: 6.938 kB / 0.7935 GB, free: 5.801 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 (20): * Single equations (assignments): 20 * 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.0001555/0.4875, allocations: 165 kB / 0.7937 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.313e-05/0.4876, allocations: 41.45 kB / 0.7937 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.687e-05/0.4876, allocations: 43.94 kB / 0.7938 GB, free: 5.598 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.4877, allocations: 6.547 kB / 0.7938 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.4877, allocations: 0 / 0.7938 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.4877, allocations: 2.469 kB / 0.7938 GB, free: 5.594 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004667/0.4881, allocations: 374.9 kB / 0.7941 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.4882, allocations: 4.656 kB / 0.7942 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.4884, allocations: 55.23 kB / 0.7942 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4884, allocations: 0 / 0.7942 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.7e-05/0.4885, allocations: 13.84 kB / 0.7942 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.4885, allocations: 1.188 kB / 0.7942 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4885, allocations: 1.062 kB / 0.7942 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006148/0.4891, allocations: 377.3 kB / 0.7946 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.4892, allocations: 116 kB / 0.7947 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.978e-05/0.4893, allocations: 10.16 kB / 0.7947 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.4894, allocations: 10.56 kB / 0.7947 GB, free: 4.941 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.4895, allocations: 13 kB / 0.7947 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.4895, allocations: 3.625 kB / 0.7947 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003393/0.4898, allocations: 304.4 kB / 0.795 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4898, allocations: 0 / 0.795 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002961/0.4901, allocations: 71.98 kB / 0.7951 GB, free: 4.781 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (intRes1UTub.capFil1.T,intRes1UTub.capFil2.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 (18): * Single equations (assignments): 18 * 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.0009209/0.4911, allocations: 0.9301 MB / 0.796 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003602/0.4914, allocations: 143.8 kB / 0.7961 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.4915, allocations: 0 / 0.7961 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.4916, allocations: 88.27 kB / 0.7962 GB, free: 3.938 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005501/0.4922, allocations: 90.12 kB / 0.7963 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/0.4968, allocations: 3.502 MB / 0.7997 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.4973, allocations: 0.7989 MB / 0.8005 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001592/0.4974, allocations: 29.72 kB / 0.8005 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.4976, allocations: 121.1 kB / 0.8006 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of SimCode: time 8.41e-07/0.4976, allocations: 0 / 0.8006 GB, free: 0.9805 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03155/0.5292, allocations: 7.999 MB / 0.8085 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.548, allocations: 20.89 kB / 0.8085 GB, free: 13.14 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)