Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.3..h|pipe.mediums.4..h|pipe.mediums.5..h|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestOverdeterminedInitial.DynamicPipeLumpedPressureInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.914/1.914, allocations: 209.3 MB / 224.9 MB, free: 1.203 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004486/0.0004487, allocations: 8 kB / 282.6 MB, free: 9.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0909/0.09138, allocations: 48.71 MB / 331.3 MB, free: 8.918 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.132/6.224, allocations: 2.553 GB / 2.877 GB, free: 46.13 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/6.224, allocations: 80.52 kB / 2.877 GB, free: 46.05 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.19/8.414, allocations: 484.2 MB / 3.35 GB, free: 38.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.642e-06/8.414, allocations: 0 / 3.35 GB, free: 38.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001439/8.414, allocations: 36.05 kB / 3.35 GB, free: 38.89 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.01245/8.427, allocations: 3.034 MB / 3.353 GB, free: 37.55 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/8.427, allocations: 10.62 kB / 3.353 GB, free: 37.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005878/8.433, allocations: 0.5647 MB / 3.353 GB, free: 37.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00488/8.437, allocations: 1.484 MB / 3.355 GB, free: 36.77 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000225/8.438, allocations: 138.4 kB / 3.355 GB, free: 36.71 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000585/8.438, allocations: 138.5 kB / 3.355 GB, free: 36.66 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008273/8.447, allocations: 2.743 MB / 3.358 GB, free: 35.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.427e-05/8.447, allocations: 7.875 kB / 3.358 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003307/8.447, allocations: 58.12 kB / 3.358 GB, free: 35.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001447/8.447, allocations: 122.1 kB / 3.358 GB, free: 35.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009184/8.456, allocations: 2.684 MB / 3.361 GB, free: 34.77 MB / 442.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01673/8.473, allocations: 10.91 MB / 3.371 GB, free: 26.64 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005765/8.479, allocations: 1.83 MB / 3.373 GB, free: 26.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4353/8.914, allocations: 61.72 MB / 3.433 GB, free: 50.12 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005327/8.92, allocations: 1.423 MB / 3.435 GB, free: 50 MB / 458.7 MB Notification: Performance of pre-optimization done (n=127): time 6.915e-06/8.92, allocations: 3.531 kB / 3.435 GB, free: 50 MB / 458.7 MB Notification: Performance of matching and sorting (n=151): time 0.02732/8.947, allocations: 8.35 MB / 3.443 GB, free: 48.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.823e-05/8.947, allocations: 276 kB / 3.443 GB, free: 48.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/8.949, allocations: 0.8947 MB / 3.444 GB, free: 48.31 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003588/8.949, allocations: 56.77 kB / 3.444 GB, free: 48.28 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005677/8.95, allocations: 0.672 MB / 3.445 GB, free: 47.95 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006248/8.951, allocations: 0.5145 MB / 3.445 GB, free: 47.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/8.951, allocations: 36.03 kB / 3.445 GB, free: 47.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/8.951, allocations: 383 kB / 3.446 GB, free: 47.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00276/8.954, allocations: 1.007 MB / 3.447 GB, free: 47.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003195/8.957, allocations: 1.504 MB / 3.448 GB, free: 46.83 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.652/13.61, allocations: 0.569 GB / 4.017 GB, free: 81.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/13.61, allocations: 5.094 kB / 4.017 GB, free: 81.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00819/13.62, allocations: 3.372 MB / 4.02 GB, free: 80.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001141/13.62, allocations: 5.662 MB / 4.026 GB, free: 74.22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.629e-05/13.62, allocations: 12 kB / 4.026 GB, free: 74.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01473/13.63, allocations: 2.58 MB / 4.028 GB, free: 72.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001276/13.63, allocations: 273.7 kB / 4.029 GB, free: 72.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0063/13.64, allocations: 3.262 MB / 4.032 GB, free: 70.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002455/13.64, allocations: 219.9 kB / 4.032 GB, free: 70.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003193/13.64, allocations: 88.98 kB / 4.032 GB, free: 70.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/13.64, allocations: 4 kB / 4.032 GB, free: 70.31 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007883/13.65, allocations: 3.249 MB / 4.035 GB, free: 68.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.831e-05/13.65, allocations: 12 kB / 4.035 GB, free: 68.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00918/13.66, allocations: 1.938 MB / 4.037 GB, free: 67.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/13.66, allocations: 296.8 kB / 4.037 GB, free: 67.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005537/13.67, allocations: 2.98 MB / 4.04 GB, free: 65.43 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/13.67, allocations: 211.9 kB / 4.041 GB, free: 65.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/13.67, allocations: 88.58 kB / 4.041 GB, free: 65.25 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.pipe.mediums[2].p = 0.0 $DER.pipe.mediums[3].p = 0.0 $DER.pipe.mediums[4].p = 0.0 $DER.pipe.mediums[1].p = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 145 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 79} Notification: Performance of prepare postOptimizeDAE: time 0.00143/13.67, allocations: 0.6038 MB / 4.041 GB, free: 64.89 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000406/13.67, allocations: 144.6 kB / 4.041 GB, free: 64.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/13.68, allocations: 5.832 MB / 4.047 GB, free: 61.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.687e-05/13.68, allocations: 50.55 kB / 4.047 GB, free: 61.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/13.68, allocations: 4 kB / 4.047 GB, free: 61.81 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007439/13.69, allocations: 4.719 MB / 4.052 GB, free: 59.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/13.71, allocations: 8.181 MB / 4.06 GB, free: 54.75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/13.71, allocations: 4 kB / 4.06 GB, free: 54.75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001305/13.71, allocations: 254 kB / 4.06 GB, free: 54.56 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005675/13.71, allocations: 1.293 MB / 4.061 GB, free: 53.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000338/13.71, allocations: 53.39 kB / 4.061 GB, free: 53.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/13.72, allocations: 2.187 MB / 4.063 GB, free: 52.44 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/13.72, allocations: 5.094 kB / 4.063 GB, free: 52.44 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/13.73, allocations: 5.789 MB / 4.069 GB, free: 48.63 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/13.73, allocations: 0.6123 MB / 4.07 GB, free: 48.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004229/13.73, allocations: 49.5 kB / 4.07 GB, free: 48.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/13.73, allocations: 167.3 kB / 4.07 GB, free: 48 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000338/13.73, allocations: 157.2 kB / 4.07 GB, free: 47.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001572/13.73, allocations: 54.11 kB / 4.07 GB, free: 47.83 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001592/13.73, allocations: 0.9599 MB / 4.071 GB, free: 47.13 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.13e-07/13.73, allocations: 0.9375 kB / 4.071 GB, free: 47.13 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008057/13.74, allocations: 2.115 MB / 4.073 GB, free: 45.42 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (pipe.mediums[1].h,pipe.mediums[2].h,pipe.mediums[3].h,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 31 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.mediums[1].phase,pipe.mediums[2].phase,pipe.mediums[4].phase,pipe.mediums[5].phase,pipe.statesFM[2].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 39} Notification: Performance of Backend phase and start with SimCode phase: time 0.009297/13.75, allocations: 1.993 MB / 4.075 GB, free: 43.92 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009885/13.76, allocations: 4.351 MB / 4.079 GB, free: 40.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/13.76, allocations: 4 kB / 4.079 GB, free: 40.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003691/13.76, allocations: 1.917 MB / 4.081 GB, free: 39.48 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003893/13.77, allocations: 0.6718 MB / 4.082 GB, free: 38.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.434/14.2, allocations: 60.61 MB / 4.141 GB, free: 76.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001423/14.2, allocations: 1.737 MB / 4.143 GB, free: 75.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006298/14.2, allocations: 130.5 kB / 4.143 GB, free: 75.79 MB / 490.7 MB Notification: Performance of SimCode: time 1.761e-06/14.2, allocations: 0 / 4.143 GB, free: 75.79 MB / 490.7 MB Notification: Performance of Templates: time 0.08757/14.29, allocations: 57.58 MB / 4.199 GB, free: 71.09 MB / 490.7 MB