Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube,fileNamePrefix="IDEAS_dev_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_dev_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.01081/0.01081, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.002111/0.002111, allocations: 196.6 kB / 16.68 MB, free: 6.352 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9499/0.9499, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 71.89 kB / 0.5852 GB, free: 3.82 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4136/0.4151, allocations: 80.92 MB / 0.6642 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube): time 0.003691/0.4188, allocations: 3.018 MB / 0.6672 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002349/0.4212, allocations: 2.144 MB / 0.6693 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001942/0.4214, allocations: 10.72 kB / 0.6693 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.4226, allocations: 0.4913 MB / 0.6697 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.4229, allocations: 150.4 kB / 0.6699 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001065/0.423, allocations: 61.28 kB / 0.6699 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003902/0.4234, allocations: 450.5 kB / 0.6704 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.4236, allocations: 150.4 kB / 0.6705 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.4238, allocations: 156.5 kB / 0.6707 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001848/0.424, allocations: 190.9 kB / 0.6708 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.755e-05/0.424, allocations: 34.53 kB / 0.6709 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.06e-05/0.4241, allocations: 35.06 kB / 0.6709 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.494e-05/0.4242, allocations: 102.7 kB / 0.671 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.4244, allocations: 213.5 kB / 0.6712 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000449/0.4248, allocations: 0.5483 MB / 0.6717 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.4249, allocations: 0 / 0.6717 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.4249, allocations: 0 / 0.6717 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.4249, allocations: 1.156 kB / 0.6718 GB, free: 1.457 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.000841/0.4257, allocations: 0.7071 MB / 0.6724 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4258, allocations: 9.625 kB / 0.6725 GB, free: 0.832 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.464e-05/0.4258, allocations: 58.52 kB / 0.6725 GB, free: 0.7734 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.4259, allocations: 49.92 kB / 0.6726 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.4263, allocations: 381.5 kB / 0.6729 GB, free: 412 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.4264, allocations: 24.69 kB / 0.6729 GB, free: 396 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.006e-05/0.4264, allocations: 21.66 kB / 0.673 GB, free: 388 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.4268, allocations: 199.8 kB / 0.6732 GB, free: 260 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.4268, allocations: 7.938 kB / 0.6732 GB, free: 252 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.4268, allocations: 5.531 kB / 0.6732 GB, free: 248 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.4268, allocations: 5.812 kB / 0.6732 GB, free: 248 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003624/0.4272, allocations: 163.6 kB / 0.6733 GB, free: 168 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.4284, allocations: 0.8682 MB / 0.6742 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.4287, allocations: 156.8 kB / 0.6743 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.4289, allocations: 116.5 kB / 0.6744 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.4289, allocations: 6.719 kB / 0.6744 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.429, allocations: 31.75 kB / 0.6745 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.429, allocations: 0 / 0.6745 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of matching and sorting (n=18): time 0.0006005/0.4296, allocations: 255.5 kB / 0.6747 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.4296, allocations: 56.59 kB / 0.6748 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004913/0.4301, allocations: 420.9 kB / 0.6752 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.4301, allocations: 26.67 kB / 0.6752 GB, free: 14.73 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.4303, allocations: 204.5 kB / 0.6754 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.899e-05/0.4304, allocations: 70.84 kB / 0.6755 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.217e-05/0.4304, allocations: 28.84 kB / 0.6755 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.4306, allocations: 348.4 kB / 0.6758 GB, free: 14.12 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.4307, allocations: 68.73 kB / 0.6759 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.4309, allocations: 56.73 kB / 0.6759 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.4312, allocations: 130.4 kB / 0.6761 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4312, allocations: 0 / 0.6761 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003989/0.4316, allocations: 214.3 kB / 0.6763 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.473e-05/0.4316, allocations: 5.625 kB / 0.6763 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4316, allocations: 4 kB / 0.6763 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.4317, allocations: 1.531 kB / 0.6763 GB, free: 13.87 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.4319, allocations: 57.02 kB / 0.6763 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.4319, allocations: 1.25 kB / 0.6763 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.4321, allocations: 18.58 kB / 0.6764 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.157e-05/0.4321, allocations: 6.594 kB / 0.6764 GB, free: 13.84 MB / 0.5137 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.0001548/0.4323, allocations: 163.6 kB / 0.6765 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.4323, allocations: 41.02 kB / 0.6766 GB, free: 13.67 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.372e-05/0.4324, allocations: 46.88 kB / 0.6766 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.4324, allocations: 2.156 kB / 0.6766 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.4324, allocations: 4.953 kB / 0.6766 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.4324, allocations: 0 / 0.6766 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004186/0.4329, allocations: 374.4 kB / 0.677 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4329, allocations: 3.938 kB / 0.677 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.4331, allocations: 53.66 kB / 0.677 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.4331, allocations: 5.641 kB / 0.677 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.4332, allocations: 1.656 kB / 0.677 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.4332, allocations: 7.938 kB / 0.677 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4332, allocations: 3.938 kB / 0.677 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005889/0.4338, allocations: 375 kB / 0.6774 GB, free: 13 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.4339, allocations: 127.9 kB / 0.6775 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/0.4339, allocations: 1.062 kB / 0.6775 GB, free: 12.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.4341, allocations: 16.52 kB / 0.6775 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.4342, allocations: 8.484 kB / 0.6775 GB, free: 12.86 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.4342, allocations: 8.344 kB / 0.6775 GB, free: 12.85 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000324/0.4345, allocations: 302.3 kB / 0.6778 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.6e-07/0.4345, allocations: 0 / 0.6778 GB, free: 12.67 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003141/0.4348, allocations: 75.2 kB / 0.6779 GB, free: 12.66 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.0008663/0.4357, allocations: 0.9198 MB / 0.6788 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003747/0.4361, allocations: 145.5 kB / 0.6789 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4361, allocations: 1.125 kB / 0.6789 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001671/0.4363, allocations: 84.14 kB / 0.679 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005545/0.4368, allocations: 99 kB / 0.6791 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004743/0.4416, allocations: 3.5 MB / 0.6825 GB, free: 9.359 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.442, allocations: 0.7935 MB / 0.6833 GB, free: 8.613 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001388/0.4421, allocations: 33.83 kB / 0.6833 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001664/0.4423, allocations: 120.3 kB / 0.6835 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of SimCode: time 4.61e-07/0.4423, allocations: 0 / 0.6835 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.4683, allocations: 7.989 MB / 0.6913 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.911/8.379, allocations: 4.406 kB / 0.6913 GB, free: 4.672 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesOneUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesOneUTube.pipe 2>&1)