Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0-master/package.mo", uses=false) Using package ModelicaTestOverdetermined with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0-master/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) 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) Running command: translateModel(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues") translateModel(ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 180.4 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.004/1.004, allocations: 221.4 MB / 229.3 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008625/0.0008625, allocations: 93.88 kB / 280.1 MB, free: 1.215 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTestOverdetermined 4.0.0-master/package.mo): time 0.00224/0.00224, allocations: 0.5549 MB / 331.5 MB, free: 13.85 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.879e-06/4.969e-06, allocations: 0 / 388 MB, free: 76.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06749/0.06751, allocations: 50.57 MB / 438.6 MB, free: 26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.687/3.754, allocations: 2.828 GB / 3.256 GB, free: 90.19 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001489/3.754, allocations: 75.97 kB / 3.256 GB, free: 90.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.245/5, allocations: 0.4904 GB / 3.746 GB, free: 42.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.644e-05/5, allocations: 40.56 kB / 3.747 GB, free: 42.76 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 474 * Number of variables: 474 Notification: Performance of Generate backend data structure: time 0.006846/5.007, allocations: 2.903 MB / 3.749 GB, free: 41.54 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/5.007, allocations: 10.44 kB / 3.749 GB, free: 41.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004119/5.011, allocations: 0.6974 MB / 3.75 GB, free: 41.43 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/5.014, allocations: 1.525 MB / 3.752 GB, free: 41.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001015/5.014, allocations: 92.25 kB / 3.752 GB, free: 41.07 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002226/5.014, allocations: 94.69 kB / 3.752 GB, free: 41.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003115/5.017, allocations: 2.669 MB / 3.754 GB, free: 41.06 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002931/5.02, allocations: 2.732 MB / 3.757 GB, free: 40.62 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.968e-05/5.02, allocations: 16.28 kB / 3.757 GB, free: 40.61 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001697/5.02, allocations: 3.812 kB / 3.757 GB, free: 40.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.44e-05/5.02, allocations: 165.2 kB / 3.757 GB, free: 40.61 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3699/5.39, allocations: 136.3 MB / 3.89 GB, free: 95.63 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/5.392, allocations: 1.069 MB / 3.891 GB, free: 95.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009163/5.392, allocations: 0.9453 MB / 3.892 GB, free: 95.59 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02658/5.419, allocations: 16.87 MB / 3.909 GB, free: 85.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001403/5.421, allocations: 1.084 MB / 3.91 GB, free: 84.92 MB / 490.7 MB Notification: Performance of pre-optimization done (n=129): time 2.464e-06/5.421, allocations: 1.031 kB / 3.91 GB, free: 84.92 MB / 490.7 MB Notification: Performance of matching and sorting (n=149): time 0.01517/5.436, allocations: 7.344 MB / 3.917 GB, free: 84.09 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/5.436, allocations: 201 kB / 3.917 GB, free: 83.86 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009611/5.437, allocations: 0.9122 MB / 3.918 GB, free: 83.71 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/5.437, allocations: 29.36 kB / 3.918 GB, free: 83.68 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/5.437, allocations: 0.7359 MB / 3.919 GB, free: 83.31 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002989/5.438, allocations: 0.4968 MB / 3.919 GB, free: 83.06 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/5.438, allocations: 0 / 3.919 GB, free: 83.06 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/5.438, allocations: 447.2 kB / 3.92 GB, free: 82.74 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/5.439, allocations: 1.143 MB / 3.921 GB, free: 82.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001394/5.44, allocations: 1.69 MB / 3.922 GB, free: 82.09 MB / 490.7 MB Notification: The following equation is consistent and got removed from the initialization problem: pipe.mediums[1].p = 10000000.0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/5.452, allocations: 3.725 MB / 3.926 GB, free: 81.86 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/5.452, allocations: 3.25 kB / 3.926 GB, free: 81.86 MB / 490.7 MB Notification: Performance of matching and sorting (n=257) (initialization): time 0.007646/5.46, allocations: 4.123 MB / 3.93 GB, free: 81.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008151/5.461, allocations: 6.52 MB / 3.937 GB, free: 74.81 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/5.461, allocations: 21.94 kB / 3.937 GB, free: 74.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/5.462, allocations: 438.3 kB / 3.937 GB, free: 74.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/5.464, allocations: 0.5222 MB / 3.937 GB, free: 74.75 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/5.465, allocations: 3.401 MB / 3.941 GB, free: 72.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00189/5.467, allocations: 221.2 kB / 3.941 GB, free: 72.12 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/5.467, allocations: 106.2 kB / 3.941 GB, free: 72.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/5.467, allocations: 7.719 kB / 3.941 GB, free: 72.12 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005376/5.473, allocations: 3.19 MB / 3.944 GB, free: 72.02 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/5.473, allocations: 16.41 kB / 3.944 GB, free: 72.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009936/5.474, allocations: 444.8 kB / 3.945 GB, free: 71.97 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/5.476, allocations: 0.5047 MB / 3.945 GB, free: 71.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/5.477, allocations: 3.419 MB / 3.948 GB, free: 69.35 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/5.479, allocations: 208.2 kB / 3.949 GB, free: 69.33 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/5.479, allocations: 97.34 kB / 3.949 GB, free: 69.33 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Warning: Assuming redundant initial conditions for the following 1 initial equations: pipe.mediums[1].p = 10000000.0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.m_flow_initial,m_flow_initial,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,pipe.state_a.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (244): * Single equations (assignments): 239 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 8,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004446/5.48, allocations: 176.9 kB / 3.949 GB, free: 69.22 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00126/5.481, allocations: 0.5067 MB / 3.949 GB, free: 69.15 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006143/5.487, allocations: 5.056 MB / 3.954 GB, free: 68.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.933e-05/5.487, allocations: 43.88 kB / 3.954 GB, free: 68.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/5.487, allocations: 5.094 kB / 3.954 GB, free: 68.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004603/5.492, allocations: 4.557 MB / 3.959 GB, free: 68.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008304/5.5, allocations: 7.422 MB / 3.966 GB, free: 67.5 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/5.5, allocations: 7.578 kB / 3.966 GB, free: 67.5 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/5.501, allocations: 327.1 kB / 3.966 GB, free: 67.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001314/5.503, allocations: 0.5158 MB / 3.967 GB, free: 67.44 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001186/5.503, allocations: 42.8 kB / 3.967 GB, free: 67.44 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/5.504, allocations: 3.608 MB / 3.971 GB, free: 64.81 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/5.504, allocations: 0 / 3.971 GB, free: 64.81 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007489/5.512, allocations: 6.222 MB / 3.977 GB, free: 64.35 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008481/5.513, allocations: 0.507 MB / 3.977 GB, free: 64.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002831/5.513, allocations: 22.08 kB / 3.977 GB, free: 64.17 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/5.514, allocations: 156.5 kB / 3.977 GB, free: 64.15 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/5.515, allocations: 143.3 kB / 3.977 GB, free: 64.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001246/5.515, allocations: 61.78 kB / 3.977 GB, free: 64.15 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.00073/5.515, allocations: 0.6538 MB / 3.978 GB, free: 64.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006303/5.522, allocations: 2.153 MB / 3.98 GB, free: 63.97 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 9 (pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 23 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse21.phase,$cse21.region,$whenCondition1,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.00554/5.527, allocations: 2.14 MB / 3.982 GB, free: 63.68 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006212/5.534, allocations: 5.046 MB / 3.987 GB, free: 63.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/5.534, allocations: 0 / 3.987 GB, free: 63.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/5.536, allocations: 2.279 MB / 3.989 GB, free: 63.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/5.539, allocations: 0.5201 MB / 3.99 GB, free: 63.55 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006515/5.545, allocations: 4.758 MB / 3.995 GB, free: 62.55 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/5.547, allocations: 1.928 MB / 3.996 GB, free: 61.79 MB / 490.7 MB Notification: Performance of SimCode: time 4e-07/5.547, allocations: 0.6562 kB / 3.996 GB, free: 61.79 MB / 490.7 MB Notification: Performance of Templates: time 0.2177/5.764, allocations: 76.16 MB / 4.071 GB, free: 109.2 MB / 490.7 MB make -j1 -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.makefile (rm -f ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe ; mkfifo ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe ; head -c 1048576 < ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe >> ../files/ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.sim & ./ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTestOverdetermined_ModelicaTestOverdetermined.ConsistentInitialization.Fluid.DynamicPipeInitialValues.pipe 2>&1)