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.TestPipesAndValves.DynamicPipeInitialization.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.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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.86/1.86, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.069e-05/3.087e-05, allocations: 7.984 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08912/0.08917, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.107/6.196, allocations: 2.553 GB / 2.872 GB, free: 94.56 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/6.196, allocations: 76.58 kB / 2.872 GB, free: 94.52 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.105/8.301, allocations: 489.9 MB / 3.351 GB, free: 32.54 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.966e-06/8.301, allocations: 2.906 kB / 3.351 GB, free: 32.54 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001211/8.301, allocations: 45.23 kB / 3.351 GB, free: 32.53 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01013/8.311, allocations: 2.932 MB / 3.353 GB, free: 31.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/8.311, allocations: 8.625 kB / 3.353 GB, free: 31.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006463/8.318, allocations: 0.6926 MB / 3.354 GB, free: 31.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004753/8.323, allocations: 1.576 MB / 3.356 GB, free: 30.93 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/8.323, allocations: 169.5 kB / 3.356 GB, free: 30.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006413/8.324, allocations: 175.3 kB / 3.356 GB, free: 30.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008467/8.332, allocations: 3.53 MB / 3.359 GB, free: 30.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.364e-05/8.332, allocations: 4.875 kB / 3.359 GB, free: 30.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003513/8.333, allocations: 74.23 kB / 3.36 GB, free: 30.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001948/8.333, allocations: 185.2 kB / 3.36 GB, free: 30.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008356/8.341, allocations: 3.328 MB / 3.363 GB, free: 30.45 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.02071/8.362, allocations: 14.13 MB / 3.377 GB, free: 22.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005609/8.368, allocations: 2.151 MB / 3.379 GB, free: 22.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/8.37, allocations: 1.078 MB / 3.38 GB, free: 22.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1373/8.507, allocations: 63.56 MB / 3.442 GB, free: 30.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004886/8.512, allocations: 1.691 MB / 3.444 GB, free: 30.59 MB / 490.7 MB Notification: Performance of pre-optimization done (n=154): time 6.94e-06/8.512, allocations: 0 / 3.444 GB, free: 30.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=174): time 0.022/8.534, allocations: 8.161 MB / 3.452 GB, free: 28.95 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001945/8.534, allocations: 290.1 kB / 3.452 GB, free: 28.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002066/8.536, allocations: 1.167 MB / 3.453 GB, free: 28.46 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004257/8.537, allocations: 61.69 kB / 3.453 GB, free: 28.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006551/8.537, allocations: 0.8222 MB / 3.454 GB, free: 27.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006771/8.538, allocations: 0.5971 MB / 3.454 GB, free: 27.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/8.538, allocations: 43.69 kB / 3.454 GB, free: 27.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002474/8.538, allocations: 393.2 kB / 3.455 GB, free: 27.28 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002232/8.541, allocations: 1.143 MB / 3.456 GB, free: 27.27 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00263/8.543, allocations: 1.695 MB / 3.458 GB, free: 26.63 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/8.546, allocations: 1.385 MB / 3.459 GB, free: 26.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/8.546, allocations: 6.375 kB / 3.459 GB, free: 26.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007964/8.554, allocations: 3.904 MB / 3.463 GB, free: 25.28 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002947/8.557, allocations: 6.269 MB / 3.469 GB, free: 18.58 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.615e-05/8.557, allocations: 22.19 kB / 3.469 GB, free: 18.58 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02049/8.578, allocations: 3.433 MB / 3.472 GB, free: 16.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/8.579, allocations: 336.4 kB / 3.473 GB, free: 16.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006991/8.586, allocations: 3.809 MB / 3.476 GB, free: 13.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003044/8.589, allocations: 289.4 kB / 3.477 GB, free: 12.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003938/8.59, allocations: 103.2 kB / 3.477 GB, free: 12.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/8.59, allocations: 4 kB / 3.477 GB, free: 12.78 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007702/8.598, allocations: 3.576 MB / 3.48 GB, free: 9.781 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.6e-05/8.598, allocations: 16 kB / 3.48 GB, free: 9.766 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0098/8.607, allocations: 2.19 MB / 3.482 GB, free: 8.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001971/8.609, allocations: 368 kB / 3.483 GB, free: 7.785 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005854/8.615, allocations: 3.092 MB / 3.486 GB, free: 5.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002615/8.618, allocations: 275.2 kB / 3.486 GB, free: 4.883 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004243/8.618, allocations: 99.64 kB / 3.486 GB, free: 4.793 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 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 () * 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.0007863/8.619, allocations: 236.3 kB / 3.486 GB, free: 4.582 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005266/8.62, allocations: 169.7 kB / 3.486 GB, free: 4.418 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2892/8.909, allocations: 6.825 MB / 3.493 GB, free: 76.19 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.913e-05/8.909, allocations: 78.27 kB / 3.493 GB, free: 76.19 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/8.909, allocations: 3.156 kB / 3.493 GB, free: 76.19 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008686/8.918, allocations: 5.442 MB / 3.499 GB, free: 75.47 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/8.935, allocations: 9.464 MB / 3.508 GB, free: 75 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/8.935, allocations: 1.219 kB / 3.508 GB, free: 75 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002914/8.938, allocations: 441.4 kB / 3.508 GB, free: 75 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/8.94, allocations: 445.6 kB / 3.509 GB, free: 74.96 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003875/8.941, allocations: 63.3 kB / 3.509 GB, free: 74.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002078/8.943, allocations: 3.214 MB / 3.512 GB, free: 72.38 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.894e-06/8.943, allocations: 5.422 kB / 3.512 GB, free: 72.38 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01128/8.954, allocations: 6.744 MB / 3.518 GB, free: 71.91 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001794/8.956, allocations: 0.7701 MB / 3.519 GB, free: 71.73 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004731/8.957, allocations: 49.83 kB / 3.519 GB, free: 71.73 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001992/8.959, allocations: 221.5 kB / 3.519 GB, free: 71.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004262/8.959, allocations: 185.2 kB / 3.52 GB, free: 71.72 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/8.959, allocations: 67.83 kB / 3.52 GB, free: 71.72 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002021/8.961, allocations: 1.221 MB / 3.521 GB, free: 71.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.91e-07/8.961, allocations: 2.719 kB / 3.521 GB, free: 71.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008379/8.97, allocations: 2.352 MB / 3.523 GB, free: 71.61 MB / 490.7 MB 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 () * 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.00903/8.979, allocations: 2.003 MB / 3.525 GB, free: 71.49 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01013/8.989, allocations: 5.075 MB / 3.53 GB, free: 71.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/8.989, allocations: 3.344 kB / 3.53 GB, free: 71.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00433/8.993, allocations: 2.267 MB / 3.532 GB, free: 71.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00462/8.998, allocations: 0.7965 MB / 3.533 GB, free: 71.37 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/9.009, allocations: 5.754 MB / 3.539 GB, free: 70.33 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/9.011, allocations: 2.048 MB / 3.541 GB, free: 69.59 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009576/9.012, allocations: 171.7 kB / 3.541 GB, free: 69.58 MB / 490.7 MB Notification: Performance of SimCode: time 2.567e-06/9.012, allocations: 0 / 3.541 GB, free: 69.58 MB / 490.7 MB Notification: Performance of Templates: time 0.1183/9.13, allocations: 87.16 MB / 3.626 GB, free: 54.54 MB / 490.7 MB