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.827/1.827, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.127e-05/3.164e-05, allocations: 8 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.09064, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.193/6.284, allocations: 2.553 GB / 2.872 GB, free: 92.87 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002248/6.284, allocations: 72.91 kB / 2.872 GB, free: 92.83 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.152/8.437, allocations: 483.2 MB / 3.344 GB, free: 35.39 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.027e-06/8.437, allocations: 0 / 3.344 GB, free: 35.39 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001329/8.437, allocations: 37.66 kB / 3.344 GB, free: 35.39 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.01073/8.448, allocations: 2.822 MB / 3.347 GB, free: 34.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/8.448, allocations: 13.34 kB / 3.347 GB, free: 34.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005646/8.454, allocations: 0.5637 MB / 3.347 GB, free: 34.19 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004693/8.458, allocations: 1.48 MB / 3.349 GB, free: 33.84 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/8.458, allocations: 135.8 kB / 3.349 GB, free: 33.83 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004195/8.459, allocations: 145 kB / 3.349 GB, free: 33.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007106/8.466, allocations: 2.688 MB / 3.352 GB, free: 33.42 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.347e-05/8.466, allocations: 12.3 kB / 3.352 GB, free: 33.42 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002825/8.466, allocations: 62.92 kB / 3.352 GB, free: 33.42 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001352/8.467, allocations: 113.2 kB / 3.352 GB, free: 33.41 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007018/8.474, allocations: 2.517 MB / 3.354 GB, free: 33.39 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01587/8.49, allocations: 10.92 MB / 3.365 GB, free: 26.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005289/8.495, allocations: 1.766 MB / 3.367 GB, free: 26.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/8.496, allocations: 0.8434 MB / 3.368 GB, free: 26.77 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1586/8.655, allocations: 61.94 MB / 3.428 GB, free: 24.09 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004419/8.66, allocations: 1.394 MB / 3.429 GB, free: 23.96 MB / 474.7 MB Notification: Performance of pre-optimization done (n=127): time 5.724e-06/8.66, allocations: 0 / 3.429 GB, free: 23.96 MB / 474.7 MB Notification: Performance of matching and sorting (n=151): time 0.02025/8.68, allocations: 6.99 MB / 3.436 GB, free: 22.62 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001998/8.68, allocations: 278.8 kB / 3.437 GB, free: 22.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001633/8.682, allocations: 0.8866 MB / 3.437 GB, free: 22.13 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003441/8.682, allocations: 54.08 kB / 3.437 GB, free: 22.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000561/8.683, allocations: 0.6766 MB / 3.438 GB, free: 21.69 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006039/8.683, allocations: 0.5165 MB / 3.439 GB, free: 21.37 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/8.683, allocations: 34.62 kB / 3.439 GB, free: 21.37 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002402/8.684, allocations: 384.7 kB / 3.439 GB, free: 21.05 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/8.686, allocations: 0.8834 MB / 3.44 GB, free: 21.05 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/8.688, allocations: 1.376 MB / 3.441 GB, free: 20.48 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.206/13.89, allocations: 0.5695 GB / 4.011 GB, free: 78.32 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/13.89, allocations: 3.938 kB / 4.011 GB, free: 78.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.00703/13.9, allocations: 3.039 MB / 4.014 GB, free: 78.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001145/13.9, allocations: 5.657 MB / 4.019 GB, free: 72.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.197e-05/13.9, allocations: 18.22 kB / 4.019 GB, free: 72.37 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01502/13.92, allocations: 2.39 MB / 4.022 GB, free: 72.35 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/13.92, allocations: 277.2 kB / 4.022 GB, free: 72.35 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005261/13.92, allocations: 3.022 MB / 4.025 GB, free: 71.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002692/13.93, allocations: 214.2 kB / 4.025 GB, free: 71.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000487/13.93, allocations: 88.38 kB / 4.025 GB, free: 71.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/13.93, allocations: 4.609 kB / 4.025 GB, free: 71.8 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006652/13.93, allocations: 2.919 MB / 4.028 GB, free: 71.76 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.473e-05/13.93, allocations: 18.02 kB / 4.028 GB, free: 71.75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008982/13.94, allocations: 1.777 MB / 4.03 GB, free: 71.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/13.94, allocations: 289.1 kB / 4.03 GB, free: 71.73 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004426/13.95, allocations: 2.748 MB / 4.033 GB, free: 71.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/13.95, allocations: 211.1 kB / 4.033 GB, free: 71.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000344/13.95, allocations: 87.7 kB / 4.033 GB, free: 71.19 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: 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 () * 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.0006622/13.95, allocations: 241.6 kB / 4.033 GB, free: 71.08 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004168/13.95, allocations: 142.2 kB / 4.033 GB, free: 71.08 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009219/13.96, allocations: 5.731 MB / 4.039 GB, free: 70.76 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.029e-05/13.96, allocations: 51.86 kB / 4.039 GB, free: 70.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/13.96, allocations: 3.125 kB / 4.039 GB, free: 70.76 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006656/13.97, allocations: 4.651 MB / 4.043 GB, free: 70.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01444/13.98, allocations: 7.983 MB / 4.051 GB, free: 69.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.149e-05/13.98, allocations: 3.875 kB / 4.051 GB, free: 69.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001574/13.98, allocations: 251.3 kB / 4.051 GB, free: 69.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005864/13.99, allocations: 1.239 MB / 4.053 GB, free: 69.3 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00038/13.99, allocations: 45.77 kB / 4.053 GB, free: 69.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003307/13.99, allocations: 2.185 MB / 4.055 GB, free: 68.75 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/13.99, allocations: 1.688 kB / 4.055 GB, free: 68.75 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008962/14, allocations: 5.416 MB / 4.06 GB, free: 68.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001588/14, allocations: 0.6176 MB / 4.061 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005243/14.01, allocations: 44.17 kB / 4.061 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/14.01, allocations: 165.8 kB / 4.061 GB, free: 67.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004278/14.01, allocations: 160.2 kB / 4.061 GB, free: 67.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/14.01, allocations: 59.14 kB / 4.061 GB, free: 67.86 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001765/14.01, allocations: 0.9417 MB / 4.062 GB, free: 67.74 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.292e-06/14.01, allocations: 0 / 4.062 GB, free: 67.74 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009096/14.02, allocations: 2.119 MB / 4.064 GB, free: 67.72 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 () * 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.01001/14.03, allocations: 1.989 MB / 4.066 GB, free: 67.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008923/14.04, allocations: 3.977 MB / 4.07 GB, free: 67.45 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/14.04, allocations: 4.156 kB / 4.07 GB, free: 67.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00376/14.04, allocations: 1.789 MB / 4.072 GB, free: 67.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004617/14.05, allocations: 0.672 MB / 4.072 GB, free: 67.41 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1519/14.2, allocations: 58.58 MB / 4.13 GB, free: 47.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001417/14.2, allocations: 1.738 MB / 4.131 GB, free: 45.68 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006202/14.2, allocations: 125 kB / 4.131 GB, free: 45.57 MB / 490.7 MB Notification: Performance of SimCode: time 2.141e-06/14.2, allocations: 0 / 4.131 GB, free: 45.57 MB / 490.7 MB Notification: Performance of Templates: time 0.3773/14.58, allocations: 57.3 MB / 4.187 GB, free: 67.27 MB / 490.7 MB