Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="Buildings_8_Buildings_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.001399/0.001399, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 194.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 222.4 MB, free: 4.613 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.743/1.743, allocations: 292.3 MB / 0.5489 GB, free: 12.83 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 64.97 kB / 0.6717 GB, free: 26.45 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.2433, allocations: 114.6 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.005515/0.2489, allocations: 4.152 MB / 0.7876 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.003599/0.2525, allocations: 2.461 MB / 0.79 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002797/0.2528, allocations: 12 kB / 0.79 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.2543, allocations: 0.5285 MB / 0.7905 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004297/0.2548, allocations: 250 kB / 0.7907 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002171/0.255, allocations: 139.8 kB / 0.7909 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0007222/0.2557, allocations: 0.8051 MB / 0.7917 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004475/0.2562, allocations: 330.5 kB / 0.792 GB, free: 4.652 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003157/0.2565, allocations: 290.9 kB / 0.7923 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003725/0.2569, allocations: 330.6 kB / 0.7926 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 8.56e-05/0.257, allocations: 72 kB / 0.7926 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.2571, allocations: 76 kB / 0.7927 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.2573, allocations: 167.5 kB / 0.7929 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000349/0.2576, allocations: 382.3 kB / 0.7932 GB, free: 3.359 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0008577/0.2585, allocations: 0.9889 MB / 0.7942 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2585, allocations: 0 / 0.7942 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2585, allocations: 0 / 0.7942 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.878e-06/0.2585, allocations: 4 kB / 0.7942 GB, free: 2.363 MB / 0.6075 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.001411/0.26, allocations: 0.9501 MB / 0.7951 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.26, allocations: 12.03 kB / 0.7951 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.547e-05/0.2601, allocations: 90.64 kB / 0.7952 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001063/0.2602, allocations: 80 kB / 0.7953 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005604/0.2608, allocations: 457.7 kB / 0.7957 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.848e-05/0.2608, allocations: 37.38 kB / 0.7958 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.567e-05/0.2609, allocations: 44.38 kB / 0.7958 GB, free: 0.6094 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007122/0.2616, allocations: 438.6 kB / 0.7962 GB, free: 180 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2617, allocations: 0 / 0.7962 GB, free: 180 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.275e-05/0.2617, allocations: 20 kB / 0.7963 GB, free: 160 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2617, allocations: 12 kB / 0.7963 GB, free: 148 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006741/0.2624, allocations: 363.8 kB / 0.7966 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002054/0.2645, allocations: 1.535 MB / 0.7981 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005252/0.265, allocations: 342.7 kB / 0.7984 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004627/0.2655, allocations: 320.8 kB / 0.7987 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 2.401e-05/0.2655, allocations: 7.938 kB / 0.7988 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.2656, allocations: 38.56 kB / 0.7988 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=42): time 1.944e-06/0.2656, allocations: 0 / 0.7988 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of matching and sorting (n=42): time 0.0009483/0.2665, allocations: 0.4908 MB / 0.7993 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.2666, allocations: 59.41 kB / 0.7993 GB, free: 12.9 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005411/0.2671, allocations: 485.9 kB / 0.7998 GB, free: 12.41 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.2672, allocations: 41.64 kB / 0.7998 GB, free: 12.36 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.2674, allocations: 276.3 kB / 0.8001 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.2675, allocations: 141.9 kB / 0.8002 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.176e-05/0.2676, allocations: 62.06 kB / 0.8003 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002002/0.2678, allocations: 366.8 kB / 0.8006 GB, free: 11.51 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.2681, allocations: 120.7 kB / 0.8008 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.2683, allocations: 129.2 kB / 0.8009 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004909/0.2688, allocations: 298.2 kB / 0.8012 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2688, allocations: 0 / 0.8012 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006268/0.2695, allocations: 396.3 kB / 0.8015 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2695, allocations: 4 kB / 0.8015 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2695, allocations: 4.766 kB / 0.8015 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2695, allocations: 4 kB / 0.8016 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004949/0.27, allocations: 127.8 kB / 0.8017 GB, free: 10.45 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.27, allocations: 3.984 kB / 0.8017 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002166/0.2703, allocations: 35.69 kB / 0.8017 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.2703, allocations: 8 kB / 0.8017 GB, free: 10.4 MB / 0.6231 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.0002218/0.2705, allocations: 193.8 kB / 0.8019 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.809e-05/0.2706, allocations: 63.22 kB / 0.802 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.2707, allocations: 65.09 kB / 0.802 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2707, allocations: 4 kB / 0.802 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2707, allocations: 0 / 0.802 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.2707, allocations: 0 / 0.802 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006437/0.2714, allocations: 0.5713 MB / 0.8026 GB, free: 9.449 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2714, allocations: 3.938 kB / 0.8026 GB, free: 9.445 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005209/0.2719, allocations: 123.9 kB / 0.8027 GB, free: 9.324 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.2719, allocations: 8 kB / 0.8027 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.272, allocations: 7.938 kB / 0.8027 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.272, allocations: 4 kB / 0.8027 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/0.272, allocations: 3.984 kB / 0.8027 GB, free: 9.301 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009528/0.273, allocations: 0.6466 MB / 0.8034 GB, free: 8.637 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.2731, allocations: 144.3 kB / 0.8035 GB, free: 8.477 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.734e-05/0.2731, allocations: 8 kB / 0.8035 GB, free: 8.469 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002063/0.2734, allocations: 15.98 kB / 0.8035 GB, free: 8.453 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.2734, allocations: 23.97 kB / 0.8035 GB, free: 8.43 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2734, allocations: 8 kB / 0.8036 GB, free: 8.422 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003697/0.2738, allocations: 351.1 kB / 0.8039 GB, free: 8.082 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2738, allocations: 0 / 0.8039 GB, free: 8.082 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003884/0.2742, allocations: 143.7 kB / 0.804 GB, free: 7.941 MB / 0.6231 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.001292/0.2755, allocations: 1.212 MB / 0.8052 GB, free: 6.703 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0007249/0.2763, allocations: 339.5 kB / 0.8055 GB, free: 6.371 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.2763, allocations: 4 kB / 0.8055 GB, free: 6.367 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.2766, allocations: 179.8 kB / 0.8057 GB, free: 6.191 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007295/0.2773, allocations: 125.3 kB / 0.8058 GB, free: 6.07 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006482/0.2838, allocations: 5.029 MB / 0.8107 GB, free: 0.957 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.2843, allocations: 0.8665 MB / 0.8116 GB, free: 64 kB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001995/0.2845, allocations: 52.38 kB / 0.8116 GB, free: 8 kB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002557/0.2847, allocations: 191.5 kB / 0.8118 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of SimCode: time 9.11e-07/0.2847, allocations: 0 / 0.8118 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03412/0.3189, allocations: 11.24 MB / 0.8228 GB, free: 4.859 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.177, allocations: 20.97 kB / 0.8228 GB, free: 4.848 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)