Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.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.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative",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.004699/0.004699, allocations: 101.9 kB / 15.73 MB, free: 6.059 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.001298/0.001298, allocations: 188.7 kB / 16.67 MB, free: 5.969 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7656/0.7656, allocations: 132.2 MB / 422.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 67.23 kB / 0.5809 GB, free: 24.24 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1406/0.1419, allocations: 80.21 MB / 0.6593 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative): time 0.002541/0.1444, allocations: 1.435 MB / 0.6607 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004033/0.1485, allocations: 2.868 MB / 0.6635 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.924e-05/0.1486, allocations: 8 kB / 0.6635 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.118e-05/0.1486, allocations: 3.938 kB / 0.6635 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.626e-05/0.1487, allocations: 11.86 kB / 0.6635 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003784/0.1525, allocations: 1.589 MB / 0.665 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.837e-05/0.1526, allocations: 43.67 kB / 0.6651 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.675e-05/0.1526, allocations: 7.984 kB / 0.6651 GB, free: 4.742 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.762e-05/0.1527, allocations: 15.92 kB / 0.6651 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.729e-05/0.1527, allocations: 19.88 kB / 0.6651 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.029e-05/0.1527, allocations: 7.938 kB / 0.6651 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.1547, allocations: 1.535 MB / 0.6666 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.354e-05/0.1547, allocations: 0 / 0.6666 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.603e-05/0.1548, allocations: 15.88 kB / 0.6666 GB, free: 3.148 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.1561, allocations: 1.099 MB / 0.6677 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.885e-06/0.1561, allocations: 4 kB / 0.6677 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.314e-06/0.1561, allocations: 3.938 kB / 0.6677 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.929e-06/0.1562, allocations: 0 / 0.6677 GB, free: 2.039 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005779/0.1567, allocations: 0.5247 MB / 0.6682 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.1568, allocations: 12.03 kB / 0.6683 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.439e-05/0.1568, allocations: 106 kB / 0.6684 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.728e-05/0.1569, allocations: 84.11 kB / 0.6684 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.157, allocations: 253.9 kB / 0.6687 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/0.1571, allocations: 162.5 kB / 0.6688 GB, free: 0.8125 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.046e-05/0.1572, allocations: 154.5 kB / 0.669 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.161e-05/0.1572, allocations: 105 kB / 0.6691 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.1573, allocations: 75.28 kB / 0.6691 GB, free: 488 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.148e-05/0.1573, allocations: 150.6 kB / 0.6693 GB, free: 336 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.095e-05/0.1574, allocations: 150.6 kB / 0.6694 GB, free: 184 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.847e-05/0.1574, allocations: 154.5 kB / 0.6696 GB, free: 28 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002734/0.1577, allocations: 469.9 kB / 0.67 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 7.726e-05/0.1578, allocations: 169.1 kB / 0.6702 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.945e-05/0.1578, allocations: 80.14 kB / 0.6703 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.1578, allocations: 79.28 kB / 0.6703 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.1579, allocations: 109.8 kB / 0.6704 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=0): time 8.32e-07/0.1579, allocations: 0 / 0.6704 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of matching and sorting (n=0): time 7.52e-05/0.158, allocations: 41.58 kB / 0.6705 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.158, allocations: 126.7 kB / 0.6706 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1582, allocations: 129.8 kB / 0.6707 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.073e-05/0.1582, allocations: 29.7 kB / 0.6708 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.818e-05/0.1582, allocations: 84.14 kB / 0.6708 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.054e-06/0.1582, allocations: 0 / 0.6708 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/0.1583, allocations: 29.7 kB / 0.6709 GB, free: 14.59 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.583e-05/0.1584, allocations: 314.8 kB / 0.6712 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.314e-05/0.1584, allocations: 8 kB / 0.6712 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.49e-05/0.1584, allocations: 4 kB / 0.6712 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.982e-05/0.1585, allocations: 20.89 kB / 0.6712 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1585, allocations: 3.938 kB / 0.6712 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001236/0.1586, allocations: 49.66 kB / 0.6713 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.1586, allocations: 4 kB / 0.6713 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.109e-05/0.1587, allocations: 4 kB / 0.6713 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1587, allocations: 4.062 kB / 0.6713 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.1587, allocations: 3.938 kB / 0.6713 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1587, allocations: 0 / 0.6713 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.518e-05/0.1587, allocations: 11.98 kB / 0.6713 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1587, allocations: 4 kB / 0.6713 GB, free: 14.15 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 8.41e-05/0.1588, allocations: 185.1 kB / 0.6715 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.1589, allocations: 116.9 kB / 0.6716 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.399e-05/0.1589, allocations: 116.6 kB / 0.6717 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.599e-05/0.159, allocations: 184.2 kB / 0.6719 GB, free: 13.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.682e-05/0.1591, allocations: 184.1 kB / 0.672 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.312e-05/0.1591, allocations: 176.3 kB / 0.6722 GB, free: 13.16 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.1593, allocations: 421.1 kB / 0.6726 GB, free: 12.69 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.857e-05/0.1594, allocations: 101 kB / 0.6727 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.359e-05/0.1594, allocations: 109 kB / 0.6728 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-05/0.1595, allocations: 184.2 kB / 0.673 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/0.1595, allocations: 176.3 kB / 0.6731 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.388e-05/0.1596, allocations: 184.2 kB / 0.6733 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.467e-05/0.1596, allocations: 176.3 kB / 0.6735 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001257/0.1598, allocations: 319.6 kB / 0.6738 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.617e-05/0.1598, allocations: 186 kB / 0.674 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.716e-05/0.1599, allocations: 188.2 kB / 0.6742 GB, free: 11 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.993e-05/0.16, allocations: 105 kB / 0.6743 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.16, allocations: 180.3 kB / 0.6744 GB, free: 10.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-05/0.1601, allocations: 104.9 kB / 0.6745 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 6.103e-05/0.1601, allocations: 105 kB / 0.6746 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1602, allocations: 0 / 0.6746 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0007129/0.1609, allocations: 283 kB / 0.6749 GB, free: 10.22 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.001253/0.1621, allocations: 1.182 MB / 0.6761 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001065/0.1623, allocations: 41.64 kB / 0.6761 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1623, allocations: 0 / 0.6761 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.704e-06/0.1623, allocations: 0 / 0.6761 GB, free: 8.961 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.1626, allocations: 463.8 kB / 0.6765 GB, free: 8.504 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.1639, allocations: 1.601 MB / 0.6781 GB, free: 6.824 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.1641, allocations: 0.6807 MB / 0.6788 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.373e-05/0.1642, allocations: 4 kB / 0.6788 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.779e-05/0.1642, allocations: 19.45 kB / 0.6788 GB, free: 6.094 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.1642, allocations: 3.938 kB / 0.6788 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.1874, allocations: 7.036 MB / 0.6857 GB, free: 15.26 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.778/8.966, allocations: 22.5 kB / 0.6857 GB, free: 15.24 MB / 0.5294 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Functions_Validation_InternalResistancesTwoUTubeNegative.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Functions.Validation.InternalResistancesTwoUTubeNegative.pipe 2>&1)