Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.263/2.263, allocations: 234.9 MB / 250.5 MB, free: 9.453 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004477, allocations: 16 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2813, allocations: 54.85 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.194/6.475, allocations: 2.664 GB / 3.024 GB, free: 44.13 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/6.475, allocations: 80.58 kB / 3.025 GB, free: 44.09 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.28/8.755, allocations: 0.49 GB / 3.515 GB, free: 51.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.058e-06/8.755, allocations: 5.75 kB / 3.515 GB, free: 51.79 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001176/8.755, allocations: 44.62 kB / 3.515 GB, free: 51.79 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01088/8.766, allocations: 3.189 MB / 3.518 GB, free: 50.55 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/8.766, allocations: 7.719 kB / 3.518 GB, free: 50.55 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006444/8.772, allocations: 0.7057 MB / 3.518 GB, free: 50.44 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004808/8.777, allocations: 1.586 MB / 3.52 GB, free: 50.07 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/8.777, allocations: 171 kB / 3.52 GB, free: 50.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004451/8.778, allocations: 175.7 kB / 3.52 GB, free: 50.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009501/8.787, allocations: 3.583 MB / 3.524 GB, free: 49.62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.029e-05/8.788, allocations: 6.438 kB / 3.524 GB, free: 49.62 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000316/8.788, allocations: 75.47 kB / 3.524 GB, free: 49.62 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001928/8.788, allocations: 169.1 kB / 3.524 GB, free: 49.61 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01036/8.798, allocations: 3.514 MB / 3.527 GB, free: 49.6 MB / 490.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.02091/8.819, allocations: 14.14 MB / 3.541 GB, free: 41.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006646/8.826, allocations: 2.262 MB / 3.543 GB, free: 41.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1455/8.972, allocations: 63.43 MB / 3.605 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005017/8.977, allocations: 1.723 MB / 3.607 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=154): time 5.602e-06/8.977, allocations: 0 / 3.607 GB, free: 29.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02519/9.002, allocations: 9.464 MB / 3.616 GB, free: 21.06 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001872/9.002, allocations: 281.6 kB / 3.617 GB, free: 20.73 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/9.004, allocations: 1.193 MB / 3.618 GB, free: 19.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003003/9.004, allocations: 57.7 kB / 3.618 GB, free: 19.64 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006093/9.005, allocations: 0.8153 MB / 3.619 GB, free: 18.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005498/9.006, allocations: 0.5966 MB / 3.619 GB, free: 18.35 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001942/9.006, allocations: 44 kB / 3.619 GB, free: 18.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002416/9.006, allocations: 393.5 kB / 3.62 GB, free: 17.94 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/9.009, allocations: 1.284 MB / 3.621 GB, free: 16.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00306/9.012, allocations: 1.83 MB / 3.623 GB, free: 15.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003149/9.015, allocations: 1.514 MB / 3.624 GB, free: 13.77 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/9.015, allocations: 4 kB / 3.624 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01059/9.026, allocations: 4.26 MB / 3.628 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.003483/9.029, allocations: 6.273 MB / 3.634 GB, free: 3.449 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.404e-05/9.029, allocations: 19.88 kB / 3.634 GB, free: 3.434 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02094/9.05, allocations: 3.646 MB / 3.638 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/9.052, allocations: 331.5 kB / 3.638 GB, free: 432 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3144/9.366, allocations: 4.08 MB / 3.642 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/9.37, allocations: 276.8 kB / 3.643 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003845/9.37, allocations: 107.3 kB / 3.643 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/9.37, allocations: 4.906 kB / 3.643 GB, free: 80.23 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0104/9.381, allocations: 3.936 MB / 3.647 GB, free: 80.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.426e-05/9.381, allocations: 16.5 kB / 3.647 GB, free: 80.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01288/9.394, allocations: 2.356 MB / 3.649 GB, free: 80.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001929/9.396, allocations: 363.5 kB / 3.649 GB, free: 80.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006756/9.402, allocations: 3.338 MB / 3.652 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/9.405, allocations: 265.9 kB / 3.653 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003323/9.405, allocations: 105.6 kB / 3.653 GB, free: 79.61 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * 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.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.001756/9.407, allocations: 0.6976 MB / 3.653 GB, free: 79.42 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/9.408, allocations: 161 kB / 3.654 GB, free: 79.42 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/9.421, allocations: 6.849 MB / 3.66 GB, free: 79.08 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.026e-05/9.421, allocations: 81.73 kB / 3.66 GB, free: 79.08 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/9.421, allocations: 0 / 3.66 GB, free: 79.08 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009844/9.431, allocations: 5.506 MB / 3.666 GB, free: 78.38 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01782/9.448, allocations: 9.563 MB / 3.675 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/9.448, allocations: 2.625 kB / 3.675 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002718/9.451, allocations: 439.4 kB / 3.676 GB, free: 77.87 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002556/9.454, allocations: 479.6 kB / 3.676 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000347/9.454, allocations: 68.14 kB / 3.676 GB, free: 77.82 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/9.456, allocations: 3.228 MB / 3.679 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.501e-06/9.456, allocations: 2.25 kB / 3.679 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01417/9.47, allocations: 7.123 MB / 3.686 GB, free: 74.61 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002044/9.472, allocations: 0.772 MB / 3.687 GB, free: 74.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006354/9.473, allocations: 55.06 kB / 3.687 GB, free: 74.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002528/9.476, allocations: 209.6 kB / 3.687 GB, free: 74.36 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004919/9.476, allocations: 184.9 kB / 3.687 GB, free: 74.36 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002158/9.476, allocations: 70.69 kB / 3.687 GB, free: 74.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002247/9.479, allocations: 1.246 MB / 3.689 GB, free: 74.25 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.75e-07/9.479, allocations: 0 / 3.689 GB, free: 74.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009393/9.488, allocations: 2.354 MB / 3.691 GB, free: 74.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,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: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009844/9.498, allocations: 2.016 MB / 3.693 GB, free: 74.06 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01347/9.511, allocations: 5.484 MB / 3.698 GB, free: 73.95 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/9.511, allocations: 5.156 kB / 3.698 GB, free: 73.95 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004947/9.516, allocations: 2.368 MB / 3.701 GB, free: 73.93 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00493/9.521, allocations: 0.7838 MB / 3.701 GB, free: 73.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/9.535, allocations: 8.231 MB / 3.709 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/9.537, allocations: 2.049 MB / 3.711 GB, free: 69.84 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/9.538, allocations: 172.5 kB / 3.712 GB, free: 69.82 MB / 0.5105 GB Notification: Performance of SimCode: time 1.611e-06/9.538, allocations: 1.5 kB / 3.712 GB, free: 69.82 MB / 0.5105 GB Notification: Performance of Templates: time 0.1175/9.656, allocations: 87.64 MB / 3.797 GB, free: 37.16 MB / 0.5105 GB