Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.conf.json 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/IDEAS 3.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube,fileNamePrefix="IDEAS_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_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/Complex 4.0.0+maint.om/package.mo): time 0.005494/0.005494, allocations: 169.3 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7417/0.7417, allocations: 135.2 MB / 151 MB, free: 13.8 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 223.2 MB / 406.8 MB, free: 3.219 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008573/0.0008573, allocations: 95.84 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003472/0.0003472, allocations: 8 kB / 0.5692 GB, free: 14.02 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4499/0.4503, allocations: 82.3 MB / 0.6496 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1693/0.6197, allocations: 122 MB / 0.7687 GB, free: 9.98 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004328/0.6202, allocations: 111.9 kB / 0.7688 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.05724/0.6775, allocations: 22.2 MB / 0.7905 GB, free: 3.59 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.464e-06/0.6775, allocations: 0 / 0.7905 GB, free: 3.59 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.769e-05/0.6775, allocations: 12 kB / 0.7905 GB, free: 3.578 MB / 0.5573 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.001291/0.6788, allocations: 0.8411 MB / 0.7913 GB, free: 2.688 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.6789, allocations: 15.97 kB / 0.7913 GB, free: 2.672 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.836e-05/0.679, allocations: 86.52 kB / 0.7914 GB, free: 2.578 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.6791, allocations: 75.16 kB / 0.7915 GB, free: 2.504 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005787/0.6797, allocations: 428.8 kB / 0.7919 GB, free: 2.043 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.6798, allocations: 37 kB / 0.7919 GB, free: 2.008 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/0.6798, allocations: 48 kB / 0.792 GB, free: 1.961 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007451/0.6806, allocations: 434.4 kB / 0.7924 GB, free: 1.531 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.6806, allocations: 0 / 0.7924 GB, free: 1.531 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.205e-05/0.6807, allocations: 24 kB / 0.7924 GB, free: 1.508 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.6807, allocations: 12 kB / 0.7924 GB, free: 1.496 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006791/0.6814, allocations: 375.8 kB / 0.7928 GB, free: 1.129 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.428/1.109, allocations: 1.537 MB / 0.7943 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000822/1.11, allocations: 344.8 kB / 0.7946 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 4.655e-05/1.11, allocations: 4.938 kB / 0.7946 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/1.11, allocations: 40.03 kB / 0.7947 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 5.441e-06/1.11, allocations: 4.531 kB / 0.7947 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=42): time 0.001344/1.112, allocations: 0.4978 MB / 0.7951 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/1.112, allocations: 60.33 kB / 0.7952 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007199/1.112, allocations: 429.5 kB / 0.7956 GB, free: 129.6 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/1.113, allocations: 34.67 kB / 0.7956 GB, free: 129.6 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000225/1.113, allocations: 273.4 kB / 0.7959 GB, free: 129.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/1.113, allocations: 147.1 kB / 0.796 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/1.113, allocations: 8.719 kB / 0.7961 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000145/1.113, allocations: 360.4 kB / 0.7964 GB, free: 129.1 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/1.113, allocations: 127.3 kB / 0.7965 GB, free: 129.1 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002936/1.114, allocations: 127.3 kB / 0.7966 GB, free: 129.1 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/1.114, allocations: 145.4 kB / 0.7968 GB, free: 129.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.114, allocations: 0 / 0.7968 GB, free: 129.1 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008115/1.115, allocations: 397 kB / 0.7972 GB, free: 129 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/1.115, allocations: 7.312 kB / 0.7972 GB, free: 129 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/1.115, allocations: 2.812 kB / 0.7972 GB, free: 129 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/1.115, allocations: 2.156 kB / 0.7972 GB, free: 129 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/1.116, allocations: 127.3 kB / 0.7973 GB, free: 129 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/1.116, allocations: 4.781 kB / 0.7973 GB, free: 129 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/1.116, allocations: 57.27 kB / 0.7973 GB, free: 129 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.825e-05/1.116, allocations: 12.72 kB / 0.7974 GB, free: 129 MB / 0.5573 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002481/1.116, allocations: 196.4 kB / 0.7975 GB, free: 128.9 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.473e-05/1.116, allocations: 48.27 kB / 0.7976 GB, free: 128.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/1.116, allocations: 65.61 kB / 0.7977 GB, free: 128.9 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/1.116, allocations: 8.891 kB / 0.7977 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/1.116, allocations: 0.7188 kB / 0.7977 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/1.116, allocations: 2.125 kB / 0.7977 GB, free: 128.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008321/1.117, allocations: 0.5705 MB / 0.7982 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/1.117, allocations: 0.9688 kB / 0.7982 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005814/1.118, allocations: 126.6 kB / 0.7983 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/1.118, allocations: 8.406 kB / 0.7984 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/1.118, allocations: 12.05 kB / 0.7984 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/1.118, allocations: 1.906 kB / 0.7984 GB, free: 128.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.118, allocations: 5.375 kB / 0.7984 GB, free: 128.6 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/1.119, allocations: 0.6625 MB / 0.799 GB, free: 128.5 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001316/1.119, allocations: 135.8 kB / 0.7991 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.166e-05/1.119, allocations: 12.34 kB / 0.7992 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/1.12, allocations: 23.75 kB / 0.7992 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/1.12, allocations: 27.05 kB / 0.7992 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/1.12, allocations: 10.59 kB / 0.7992 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005175/1.12, allocations: 346.8 kB / 0.7995 GB, free: 128.3 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.41e-07/1.12, allocations: 0 / 0.7995 GB, free: 128.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005994/1.121, allocations: 153.3 kB / 0.7997 GB, free: 128.3 MB / 0.5573 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001661/1.122, allocations: 1.377 MB / 0.801 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0007303/1.123, allocations: 330.1 kB / 0.8014 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/1.123, allocations: 0 / 0.8014 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003774/1.124, allocations: 190.2 kB / 0.8015 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006539/1.124, allocations: 119.8 kB / 0.8016 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006037/1.13, allocations: 3.284 MB / 0.8049 GB, free: 126.3 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005915/1.131, allocations: 0.8812 MB / 0.8057 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003326/1.131, allocations: 52.69 kB / 0.8058 GB, free: 125.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000287/1.132, allocations: 196.1 kB / 0.806 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of SimCode: time 1.422e-06/1.132, allocations: 0 / 0.806 GB, free: 125.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/1.155, allocations: 12.34 MB / 0.818 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/1.156, allocations: 236.6 kB / 0.8182 GB, free: 124 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.256/3.412, allocations: 1.406 kB / 0.8182 GB, free: 124 MB / 0.5573 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_Boreholes_BaseClasses_Examples_InternalResistancesTwoUTube.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.Boreholes.BaseClasses.Examples.InternalResistancesTwoUTube.pipe 2>&1)