Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/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.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_dev_IDEAS_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.001023/0.001023, 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.001045/0.001045, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.288/1.288, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8225/0.8225, allocations: 135.1 MB / 425.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 64.22 kB / 0.5055 GB, free: 5.156 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1318, allocations: 80.94 MB / 0.5845 GB, free: 4.387 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube): time 0.004929/0.1367, allocations: 4.121 MB / 0.5885 GB, free: 240 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.1399, allocations: 2.414 MB / 0.5909 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003868/0.1403, allocations: 8 kB / 0.5909 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00153/0.1419, allocations: 0.5394 MB / 0.5914 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006371/0.1426, allocations: 246 kB / 0.5917 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.1429, allocations: 139.8 kB / 0.5918 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0009545/0.1438, allocations: 0.8059 MB / 0.5926 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004936/0.1443, allocations: 342.4 kB / 0.5929 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003827/0.1447, allocations: 275 kB / 0.5932 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004011/0.1452, allocations: 338.6 kB / 0.5935 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.1453, allocations: 75.94 kB / 0.5936 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001353/0.1454, allocations: 76 kB / 0.5936 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.1456, allocations: 175.4 kB / 0.5938 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003802/0.146, allocations: 386.3 kB / 0.5942 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0007589/0.1467, allocations: 0.9888 MB / 0.5951 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1467, allocations: 4 kB / 0.5952 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.382e-06/0.1467, allocations: 0 / 0.5952 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.484e-05/0.1468, allocations: 0 / 0.5952 GB, free: 9.441 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001508/0.1483, allocations: 0.9462 MB / 0.5961 GB, free: 8.445 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.1483, allocations: 12.03 kB / 0.5961 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.855e-05/0.1484, allocations: 86.7 kB / 0.5962 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.1486, allocations: 76.09 kB / 0.5962 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005649/0.1491, allocations: 457.6 kB / 0.5967 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.1492, allocations: 33.38 kB / 0.5967 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.931e-05/0.1493, allocations: 51.94 kB / 0.5968 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006983/0.15, allocations: 430.4 kB / 0.5972 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.15, allocations: 8 kB / 0.5972 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/0.15, allocations: 20 kB / 0.5972 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.15, allocations: 12 kB / 0.5972 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006658/0.1507, allocations: 363.8 kB / 0.5976 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001986/0.1527, allocations: 1.532 MB / 0.5991 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004811/0.1532, allocations: 341.8 kB / 0.5994 GB, free: 4.938 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.1536, allocations: 320.8 kB / 0.5997 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.1537, allocations: 8.688 kB / 0.5997 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.1537, allocations: 38.56 kB / 0.5997 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=42): time 1.593e-06/0.1537, allocations: 0 / 0.5997 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of matching and sorting (n=42): time 0.000883/0.1546, allocations: 0.4885 MB / 0.6002 GB, free: 4.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1547, allocations: 59.19 kB / 0.6003 GB, free: 4 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005026/0.1552, allocations: 489.9 kB / 0.6007 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.1552, allocations: 33.7 kB / 0.6008 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.1554, allocations: 280.3 kB / 0.601 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.1555, allocations: 145.8 kB / 0.6012 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.693e-05/0.1556, allocations: 62.08 kB / 0.6012 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1557, allocations: 359.5 kB / 0.6016 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002326/0.1559, allocations: 124.7 kB / 0.6017 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.1562, allocations: 125.4 kB / 0.6018 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004714/0.1566, allocations: 303.3 kB / 0.6021 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1567, allocations: 3.938 kB / 0.6021 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006039/0.1573, allocations: 392.5 kB / 0.6025 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1573, allocations: 4 kB / 0.6025 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.1573, allocations: 3.938 kB / 0.6025 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.1573, allocations: 4 kB / 0.6025 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.1578, allocations: 139.7 kB / 0.6026 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1578, allocations: 0 / 0.6026 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.158, allocations: 31.67 kB / 0.6027 GB, free: 1.504 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.158, allocations: 12 kB / 0.6027 GB, free: 1.492 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 (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.0001882/0.1582, allocations: 201.7 kB / 0.6029 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.388e-05/0.1583, allocations: 51.34 kB / 0.6029 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.808e-05/0.1584, allocations: 61.11 kB / 0.603 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1584, allocations: 8 kB / 0.603 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1584, allocations: 0 / 0.603 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1584, allocations: 3.984 kB / 0.603 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005777/0.159, allocations: 0.5674 MB / 0.6035 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.159, allocations: 0 / 0.6035 GB, free: 0.5469 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004966/0.1595, allocations: 123.9 kB / 0.6036 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1596, allocations: 0 / 0.6036 GB, free: 436 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.1596, allocations: 8 kB / 0.6037 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1596, allocations: 0 / 0.6037 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.1596, allocations: 8 kB / 0.6037 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2116/0.3712, allocations: 0.6516 MB / 0.6043 GB, free: 52.13 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001799/0.3714, allocations: 136.7 kB / 0.6044 GB, free: 52.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.494e-05/0.3715, allocations: 7.906 kB / 0.6044 GB, free: 52.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.3717, allocations: 12.41 kB / 0.6044 GB, free: 52.04 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.3718, allocations: 25.55 kB / 0.6045 GB, free: 52.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.3719, allocations: 12.47 kB / 0.6045 GB, free: 52.04 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003495/0.3722, allocations: 351.2 kB / 0.6048 GB, free: 51.96 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3722, allocations: 1.75 kB / 0.6048 GB, free: 51.96 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003736/0.3726, allocations: 146.2 kB / 0.605 GB, free: 51.96 MB / 0.4981 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.0009466/0.3735, allocations: 1.205 MB / 0.6061 GB, free: 51.3 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005958/0.3742, allocations: 348.5 kB / 0.6065 GB, free: 51.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3742, allocations: 0 / 0.6065 GB, free: 51.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.3744, allocations: 181.1 kB / 0.6066 GB, free: 51.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006004/0.375, allocations: 123.5 kB / 0.6068 GB, free: 51.29 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004524/0.3795, allocations: 5.015 MB / 0.6117 GB, free: 48.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.3798, allocations: 0.8658 MB / 0.6125 GB, free: 47.89 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000164/0.3799, allocations: 53.2 kB / 0.6126 GB, free: 47.88 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.3801, allocations: 192 kB / 0.6127 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.3801, allocations: 0.7656 kB / 0.6127 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.677/5.057, allocations: 11.23 MB / 0.6237 GB, free: 46.82 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/16.42, allocations: 9.797 kB / 0.6237 GB, free: 46.82 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)