Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IBPSA_latest_IBPSA_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.001201/0.001201, allocations: 106 kB / 16.27 MB, free: 6.41 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.001319/0.001319, allocations: 184.1 kB / 17.2 MB, free: 5.953 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.29/1.29, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7219/0.7219, allocations: 122.9 MB / 413.9 MB, free: 15.93 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 59.91 kB / 0.4912 GB, free: 7.332 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3555, allocations: 77.92 MB / 0.5673 GB, free: 32.53 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004659/0.3602, allocations: 4.119 MB / 0.5713 GB, free: 29.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.003142/0.3633, allocations: 2.416 MB / 0.5737 GB, free: 27.87 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.3636, allocations: 10.34 kB / 0.5737 GB, free: 27.87 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.3651, allocations: 0.538 MB / 0.5742 GB, free: 27.62 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004291/0.3656, allocations: 244.5 kB / 0.5745 GB, free: 27.45 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.3658, allocations: 138.6 kB / 0.5746 GB, free: 27.36 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006866/0.3665, allocations: 0.8084 MB / 0.5754 GB, free: 26.94 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004186/0.3669, allocations: 329.5 kB / 0.5757 GB, free: 26.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000324/0.3672, allocations: 287.4 kB / 0.576 GB, free: 26.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003341/0.3676, allocations: 333 kB / 0.5763 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.21e-05/0.3677, allocations: 73.66 kB / 0.5764 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.3678, allocations: 74.88 kB / 0.5764 GB, free: 26.46 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.368, allocations: 175.1 kB / 0.5766 GB, free: 26.35 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003004/0.3683, allocations: 388 kB / 0.577 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008971/0.3692, allocations: 0.9808 MB / 0.5779 GB, free: 25.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3692, allocations: 0 / 0.5779 GB, free: 25.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3692, allocations: 0 / 0.5779 GB, free: 25.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.3692, allocations: 0.5 kB / 0.5779 GB, free: 25.77 MB / 446.1 MB 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.001252/0.3705, allocations: 0.9588 MB / 0.5789 GB, free: 25.07 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.3705, allocations: 13.44 kB / 0.5789 GB, free: 25.07 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.785e-05/0.3706, allocations: 90.81 kB / 0.579 GB, free: 25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.3707, allocations: 73.17 kB / 0.579 GB, free: 24.96 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.3712, allocations: 452.9 kB / 0.5795 GB, free: 24.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.954e-05/0.3712, allocations: 36.62 kB / 0.5795 GB, free: 24.58 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.44e-05/0.3713, allocations: 53.77 kB / 0.5796 GB, free: 24.56 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007053/0.372, allocations: 429 kB / 0.58 GB, free: 24.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.3721, allocations: 3.703 kB / 0.58 GB, free: 24.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.474e-05/0.3721, allocations: 24.06 kB / 0.58 GB, free: 24.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.3721, allocations: 12.38 kB / 0.58 GB, free: 24.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000711/0.3728, allocations: 365 kB / 0.5804 GB, free: 24.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001913/0.3748, allocations: 1.538 MB / 0.5819 GB, free: 23.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004675/0.3753, allocations: 344.4 kB / 0.5822 GB, free: 22.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004227/0.3757, allocations: 326.5 kB / 0.5825 GB, free: 22.84 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.3757, allocations: 8.594 kB / 0.5825 GB, free: 22.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.453e-05/0.3757, allocations: 33.09 kB / 0.5825 GB, free: 22.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 1.603e-06/0.3757, allocations: 0 / 0.5825 GB, free: 22.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008951/0.3766, allocations: 0.4928 MB / 0.583 GB, free: 22.55 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.3767, allocations: 55.84 kB / 0.5831 GB, free: 22.48 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005051/0.3772, allocations: 487.8 kB / 0.5835 GB, free: 22.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.3772, allocations: 29.7 kB / 0.5836 GB, free: 22.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.3774, allocations: 279.2 kB / 0.5838 GB, free: 21.92 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.545e-05/0.3774, allocations: 150.7 kB / 0.584 GB, free: 21.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.745e-05/0.3775, allocations: 60.33 kB / 0.584 GB, free: 21.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.382e-05/0.3776, allocations: 363.2 kB / 0.5844 GB, free: 21.39 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/0.3779, allocations: 117.5 kB / 0.5845 GB, free: 21.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.3781, allocations: 134.3 kB / 0.5846 GB, free: 21.27 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005083/0.3786, allocations: 292.7 kB / 0.5849 GB, free: 21.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3787, allocations: 0.5625 kB / 0.5849 GB, free: 21.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007396/0.3794, allocations: 396.6 kB / 0.5853 GB, free: 20.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.3794, allocations: 8.359 kB / 0.5853 GB, free: 20.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3794, allocations: 0 / 0.5853 GB, free: 20.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.3795, allocations: 5.484 kB / 0.5853 GB, free: 20.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004887/0.38, allocations: 131.1 kB / 0.5854 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.38, allocations: 5.078 kB / 0.5854 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000255/0.3802, allocations: 28.66 kB / 0.5855 GB, free: 20.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.3803, allocations: 12.06 kB / 0.5855 GB, free: 20.85 MB / 446.1 MB 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.0001847/0.3805, allocations: 200.9 kB / 0.5857 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.956e-05/0.3805, allocations: 60.06 kB / 0.5857 GB, free: 20.64 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.797e-05/0.3806, allocations: 59.66 kB / 0.5858 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3807, allocations: 5.844 kB / 0.5858 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.3807, allocations: 0 / 0.5858 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3807, allocations: 5.406 kB / 0.5858 GB, free: 20.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.3812, allocations: 0.5664 MB / 0.5863 GB, free: 20.13 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.3812, allocations: 3.938 kB / 0.5863 GB, free: 20.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004792/0.3817, allocations: 126.2 kB / 0.5865 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3817, allocations: 1.406 kB / 0.5865 GB, free: 20.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.3817, allocations: 10.62 kB / 0.5865 GB, free: 20.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.726e-06/0.3818, allocations: 2.188 kB / 0.5865 GB, free: 20.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3818, allocations: 5.078 kB / 0.5865 GB, free: 20.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008836/0.3826, allocations: 0.646 MB / 0.5871 GB, free: 19.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.3828, allocations: 144.5 kB / 0.5872 GB, free: 19.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.467e-05/0.3828, allocations: 15.14 kB / 0.5873 GB, free: 19.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.3831, allocations: 14.19 kB / 0.5873 GB, free: 19.53 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.026e-05/0.3831, allocations: 22.94 kB / 0.5873 GB, free: 19.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.3832, allocations: 7.406 kB / 0.5873 GB, free: 19.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0003595/0.3835, allocations: 355.4 kB / 0.5876 GB, free: 19.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3835, allocations: 0 / 0.5876 GB, free: 19.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004357/0.384, allocations: 147.5 kB / 0.5878 GB, free: 19.27 MB / 446.1 MB 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.001044/0.385, allocations: 1.207 MB / 0.589 GB, free: 18.34 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0006645/0.3857, allocations: 337.2 kB / 0.5893 GB, free: 18.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3857, allocations: 5.062 kB / 0.5893 GB, free: 18.18 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002666/0.386, allocations: 176 kB / 0.5895 GB, free: 18.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006295/0.3866, allocations: 130.7 kB / 0.5896 GB, free: 18.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005587/0.3922, allocations: 5.026 MB / 0.5945 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002434/0.3925, allocations: 0.8704 MB / 0.5953 GB, free: 13.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002119/0.3927, allocations: 52.39 kB / 0.5954 GB, free: 13.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.3929, allocations: 187.4 kB / 0.5956 GB, free: 13.41 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3929, allocations: 0 / 0.5956 GB, free: 13.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.4184, allocations: 11.23 MB / 0.6065 GB, free: 2.484 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.243/7.661, allocations: 15.34 kB / 0.6065 GB, free: 2.473 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)