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.004589/0.004589, allocations: 97.38 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.001258/0.001258, allocations: 201.3 kB / 16.68 MB, free: 5.961 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.364/1.364, 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.002526/0.002526, allocations: 278.8 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.01/1.01, allocations: 178.6 MB / 0.5074 GB, free: 4.508 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002614/0.002614, allocations: 96.62 kB / 0.6943 GB, free: 3.574 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4245, allocations: 89.13 MB / 0.7814 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005495/0.43, allocations: 4.148 MB / 0.7854 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003724/0.4338, allocations: 2.408 MB / 0.7878 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003118/0.4341, allocations: 9.469 kB / 0.7878 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.4358, allocations: 0.5354 MB / 0.7883 GB, free: 8.898 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005395/0.4363, allocations: 258.3 kB / 0.7886 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.4366, allocations: 134.6 kB / 0.7887 GB, free: 8.633 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008622/0.4375, allocations: 0.8185 MB / 0.7895 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004383/0.4379, allocations: 324 kB / 0.7898 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004105/0.4383, allocations: 290 kB / 0.7901 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000494/0.4388, allocations: 329 kB / 0.7904 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001688/0.439, allocations: 74.06 kB / 0.7905 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.4392, allocations: 74.94 kB / 0.7905 GB, free: 7.734 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002052/0.4394, allocations: 172.5 kB / 0.7907 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004136/0.4398, allocations: 385 kB / 0.7911 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.441, allocations: 1.003 MB / 0.792 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.441, allocations: 0 / 0.792 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.441, allocations: 0 / 0.792 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.521e-05/0.4411, allocations: 1.031 kB / 0.792 GB, free: 7.027 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.001563/0.4426, allocations: 0.9666 MB / 0.793 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.4427, allocations: 10.34 kB / 0.793 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.4428, allocations: 90.17 kB / 0.7931 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.4429, allocations: 84.38 kB / 0.7932 GB, free: 6.195 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.4436, allocations: 460.5 kB / 0.7936 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.4437, allocations: 37.03 kB / 0.7936 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-05/0.4438, allocations: 47.28 kB / 0.7937 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007715/0.4445, allocations: 430.7 kB / 0.7941 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.4446, allocations: 4.75 kB / 0.7941 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.4446, allocations: 24.5 kB / 0.7941 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.4446, allocations: 16.09 kB / 0.7941 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007073/0.4453, allocations: 364.2 kB / 0.7945 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.4475, allocations: 1.524 MB / 0.796 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005479/0.4481, allocations: 343.2 kB / 0.7963 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000484/0.4486, allocations: 316.6 kB / 0.7966 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.4486, allocations: 8.594 kB / 0.7966 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.4487, allocations: 39.8 kB / 0.7966 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=42): time 1.713e-06/0.4487, allocations: 0 / 0.7966 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42): time 0.0009858/0.4497, allocations: 0.4982 MB / 0.7971 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.4497, allocations: 55.78 kB / 0.7972 GB, free: 3.871 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.4503, allocations: 486.1 kB / 0.7976 GB, free: 3.586 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.4504, allocations: 30.95 kB / 0.7977 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.4506, allocations: 279.6 kB / 0.7979 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.4507, allocations: 155 kB / 0.7981 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.4508, allocations: 60.8 kB / 0.7982 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001837/0.451, allocations: 367.4 kB / 0.7985 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002482/0.4513, allocations: 118.5 kB / 0.7986 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.4515, allocations: 133.2 kB / 0.7987 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005227/0.4521, allocations: 298.7 kB / 0.799 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.4521, allocations: 1.406 kB / 0.799 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006675/0.4527, allocations: 396.8 kB / 0.7994 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.4528, allocations: 4.656 kB / 0.7994 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.4528, allocations: 0.8438 kB / 0.7994 GB, free: 2.281 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.4528, allocations: 5.469 kB / 0.7994 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.4533, allocations: 124.6 kB / 0.7995 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.4533, allocations: 1.156 kB / 0.7995 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.4536, allocations: 41.28 kB / 0.7996 GB, free: 2.219 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.4536, allocations: 15.69 kB / 0.7996 GB, free: 2.211 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.0002203/0.4538, allocations: 196.9 kB / 0.7998 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.985e-05/0.4539, allocations: 55.23 kB / 0.7998 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.454, allocations: 59.17 kB / 0.7999 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.454, allocations: 4.406 kB / 0.7999 GB, free: 1.969 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.454, allocations: 3.984 kB / 0.7999 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.4541, allocations: 1.031 kB / 0.7999 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007005/0.4548, allocations: 0.5784 MB / 0.8005 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.4548, allocations: 3.938 kB / 0.8005 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005067/0.4553, allocations: 128.5 kB / 0.8006 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.4553, allocations: 1.344 kB / 0.8006 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.4553, allocations: 10.62 kB / 0.8006 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.4553, allocations: 1.25 kB / 0.8006 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4553, allocations: 1.25 kB / 0.8006 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001003/0.4563, allocations: 0.6532 MB / 0.8012 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001351/0.4565, allocations: 145 kB / 0.8014 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.4566, allocations: 5.969 kB / 0.8014 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.4568, allocations: 16.98 kB / 0.8014 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.4569, allocations: 19.56 kB / 0.8014 GB, free: 0.8711 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.4569, allocations: 14.42 kB / 0.8014 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004089/0.4573, allocations: 356.2 kB / 0.8018 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.824e-06/0.4573, allocations: 0 / 0.8018 GB, free: 0.6523 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004117/0.4577, allocations: 148.7 kB / 0.8019 GB, free: 0.6172 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.001356/0.4591, allocations: 1.217 MB / 0.8031 GB, free: 15.67 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006036/0.4597, allocations: 320 kB / 0.8034 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4597, allocations: 0 / 0.8034 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.46, allocations: 183.5 kB / 0.8036 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006632/0.4607, allocations: 134.3 kB / 0.8037 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006501/0.4672, allocations: 4.853 MB / 0.8084 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.4677, allocations: 0.8745 MB / 0.8093 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002266/0.468, allocations: 53.27 kB / 0.8094 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002665/0.4682, allocations: 188.2 kB / 0.8095 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of SimCode: time 5.31e-07/0.4682, allocations: 3.938 kB / 0.8095 GB, free: 11.33 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03705/0.5053, allocations: 11.48 MB / 0.8207 GB, free: 5.855 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/8.99, allocations: 12.36 kB / 0.8208 GB, free: 5.852 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_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_InternalResistancesTwoUTube.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)