Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IDEAS_IDEAS_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.01059/0.01059, allocations: 100.9 kB / 15.73 MB, free: 6.043 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.002309/0.002309, allocations: 202.3 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.241/2.241, 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/IDEAS 3.0.0/package.mo): time 1.166/1.166, allocations: 132.2 MB / 422.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003385/0.003385, allocations: 67.39 kB / 0.5809 GB, free: 1.148 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2782, allocations: 80.21 MB / 0.6592 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.005278/0.2835, allocations: 3.018 MB / 0.6622 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003563/0.2871, allocations: 2.145 MB / 0.6643 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003185/0.2875, allocations: 7.938 kB / 0.6643 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.2893, allocations: 0.4958 MB / 0.6648 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004098/0.2897, allocations: 150.8 kB / 0.6649 GB, free: 8.172 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000172/0.2899, allocations: 55.94 kB / 0.665 GB, free: 8.117 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0006628/0.2906, allocations: 449.8 kB / 0.6654 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003523/0.2909, allocations: 159.2 kB / 0.6656 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003162/0.2913, allocations: 151.4 kB / 0.6657 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.2915, allocations: 183.1 kB / 0.6659 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.776e-05/0.2916, allocations: 36 kB / 0.6659 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.241e-05/0.2917, allocations: 36 kB / 0.6659 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001367/0.2918, allocations: 91.67 kB / 0.666 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.2921, allocations: 222.8 kB / 0.6662 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006846/0.2928, allocations: 0.5524 MB / 0.6668 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2928, allocations: 0 / 0.6668 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.913e-06/0.2928, allocations: 0 / 0.6668 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.2928, allocations: 4 kB / 0.6668 GB, free: 6.25 MB / 0.4981 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.001236/0.294, allocations: 0.7083 MB / 0.6675 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.2941, allocations: 8.031 kB / 0.6675 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.842e-05/0.2942, allocations: 58.72 kB / 0.6675 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.2943, allocations: 56.61 kB / 0.6676 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006511/0.295, allocations: 378.4 kB / 0.668 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.295, allocations: 20.56 kB / 0.668 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.957e-05/0.2951, allocations: 27.94 kB / 0.668 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004958/0.2956, allocations: 199.3 kB / 0.6682 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.2957, allocations: 0 / 0.6682 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/0.2957, allocations: 4 kB / 0.6682 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.2957, allocations: 12 kB / 0.6682 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004391/0.2962, allocations: 161.7 kB / 0.6684 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.2976, allocations: 0.8625 MB / 0.6692 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.298, allocations: 154.6 kB / 0.6694 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.2982, allocations: 108.8 kB / 0.6695 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.2982, allocations: 7.938 kB / 0.6695 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.899e-05/0.2983, allocations: 38.5 kB / 0.6695 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.553e-06/0.2983, allocations: 0 / 0.6695 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0006947/0.299, allocations: 256.2 kB / 0.6697 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.217e-05/0.2991, allocations: 59.34 kB / 0.6698 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000734/0.2998, allocations: 417.7 kB / 0.6702 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.2998, allocations: 29.7 kB / 0.6702 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.3001, allocations: 212.3 kB / 0.6704 GB, free: 2.289 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.589e-05/0.3002, allocations: 63.44 kB / 0.6705 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001047/0.3003, allocations: 33.7 kB / 0.6705 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002515/0.3006, allocations: 350.8 kB / 0.6709 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.3009, allocations: 55.95 kB / 0.6709 GB, free: 1.781 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.3011, allocations: 55.91 kB / 0.671 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003672/0.3015, allocations: 139 kB / 0.6711 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3015, allocations: 0 / 0.6711 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004523/0.3019, allocations: 215.9 kB / 0.6713 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.302, allocations: 4 kB / 0.6713 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.302, allocations: 0 / 0.6713 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.302, allocations: 0 / 0.6713 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000273/0.3023, allocations: 55.91 kB / 0.6714 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.3023, allocations: 0 / 0.6714 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001774/0.3025, allocations: 23.88 kB / 0.6714 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.425e-05/0.3025, allocations: 7.938 kB / 0.6714 GB, free: 1.285 MB / 0.4981 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.0002551/0.3028, allocations: 162.5 kB / 0.6715 GB, free: 1.117 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.3029, allocations: 43.7 kB / 0.6716 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.303, allocations: 43.58 kB / 0.6716 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.303, allocations: 0 / 0.6716 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.303, allocations: 0 / 0.6716 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.3031, allocations: 0 / 0.6716 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007181/0.3038, allocations: 385.2 kB / 0.672 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.3038, allocations: 11.92 kB / 0.672 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3043, allocations: 51.97 kB / 0.6721 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.3043, allocations: 0 / 0.6721 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.3043, allocations: 8 kB / 0.6721 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.3043, allocations: 0 / 0.6721 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.3043, allocations: 0 / 0.6721 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009523/0.3053, allocations: 383 kB / 0.6724 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.3055, allocations: 124.8 kB / 0.6726 GB, free: 0 / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.519e-05/0.3056, allocations: 8.047 kB / 0.6726 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.3059, allocations: 4 kB / 0.6726 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.899e-05/0.3059, allocations: 15.88 kB / 0.6726 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.306, allocations: 7.984 kB / 0.6726 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005596/0.3065, allocations: 303.2 kB / 0.6729 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.3065, allocations: 0 / 0.6729 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005756/0.3071, allocations: 71.89 kB / 0.6729 GB, free: 15.6 MB / 0.5137 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.001247/0.3084, allocations: 0.9249 MB / 0.6738 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004015/0.3088, allocations: 143.8 kB / 0.674 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.588e-06/0.3088, allocations: 8.062 kB / 0.674 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.309, allocations: 75.91 kB / 0.6741 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006392/0.3096, allocations: 97.44 kB / 0.6742 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005611/0.3153, allocations: 3.483 MB / 0.6776 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005258/0.3158, allocations: 0.799 MB / 0.6783 GB, free: 9.945 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001573/0.316, allocations: 30.95 kB / 0.6784 GB, free: 9.918 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.3162, allocations: 123.4 kB / 0.6785 GB, free: 9.797 MB / 0.5137 GB Notification: Performance of SimCode: time 7.91e-07/0.3162, allocations: 4 kB / 0.6785 GB, free: 9.793 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05017/0.3664, allocations: 7.976 MB / 0.6863 GB, free: 2.098 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.54, allocations: 3.75 kB / 0.6863 GB, free: 2.098 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)