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.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 1.936/1.936, allocations: 209.3 MB / 222.4 MB, free: 7.723 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.738e-05, allocations: 0 / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08962/0.08967, allocations: 48.7 MB / 326.5 MB, free: 14.53 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.095/6.185, allocations: 2.545 GB / 2.863 GB, free: 82.84 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/6.185, allocations: 74.86 kB / 2.864 GB, free: 82.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114/8.299, allocations: 453 MB / 3.306 GB, free: 36.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.951e-06/8.299, allocations: 0 / 3.306 GB, free: 36.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.841e-05/8.299, allocations: 24.94 kB / 3.306 GB, free: 36.75 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.006827/8.306, allocations: 2.092 MB / 3.308 GB, free: 35.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/8.306, allocations: 11.75 kB / 3.308 GB, free: 35.89 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003415/8.31, allocations: 359.8 kB / 3.308 GB, free: 35.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002271/8.312, allocations: 0.8764 MB / 3.309 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.668e-05/8.312, allocations: 70.94 kB / 3.309 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/8.312, allocations: 78.53 kB / 3.309 GB, free: 35.58 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00354/8.316, allocations: 1.458 MB / 3.311 GB, free: 35.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.573e-05/8.316, allocations: 4.578 kB / 3.311 GB, free: 35.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/8.316, allocations: 31.34 kB / 3.311 GB, free: 35.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.754e-05/8.316, allocations: 58.94 kB / 3.311 GB, free: 35.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003343/8.319, allocations: 1.257 MB / 3.312 GB, free: 35.29 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.009005/8.328, allocations: 6.553 MB / 3.318 GB, free: 31.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002787/8.331, allocations: 0.9349 MB / 3.319 GB, free: 31.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006534/8.332, allocations: 386.9 kB / 3.32 GB, free: 31.03 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06939/8.401, allocations: 32.05 MB / 3.351 GB, free: 27.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.589e-05/8.401, allocations: 42.78 kB / 3.351 GB, free: 27.21 MB / 458.7 MB Notification: Performance of pre-optimization done (n=57): time 5.08e-06/8.401, allocations: 0 / 3.351 GB, free: 27.21 MB / 458.7 MB Notification: Performance of matching and sorting (n=61): time 0.008815/8.41, allocations: 2.809 MB / 3.354 GB, free: 26.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/8.41, allocations: 186.8 kB / 3.354 GB, free: 26.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/8.412, allocations: 0.6412 MB / 3.355 GB, free: 26.22 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001699/8.412, allocations: 39.2 kB / 3.355 GB, free: 26.19 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/8.412, allocations: 437.1 kB / 3.355 GB, free: 25.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002067/8.412, allocations: 209.3 kB / 3.355 GB, free: 25.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.581e-05/8.412, allocations: 13.34 kB / 3.355 GB, free: 25.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/8.413, allocations: 341.9 kB / 3.356 GB, free: 25.49 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006914/8.413, allocations: 348 kB / 3.356 GB, free: 25.49 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008253/8.414, allocations: 0.5459 MB / 3.357 GB, free: 25.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/8.415, allocations: 416.7 kB / 3.357 GB, free: 25.23 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.544e-06/8.415, allocations: 3.812 kB / 3.357 GB, free: 25.23 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002437/8.417, allocations: 1.152 MB / 3.358 GB, free: 25.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001065/8.419, allocations: 2.268 MB / 3.36 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/8.419, allocations: 6.328 kB / 3.36 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004036/8.423, allocations: 0.6435 MB / 3.361 GB, free: 22.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008247/8.423, allocations: 159.6 kB / 3.361 GB, free: 22.75 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/8.425, allocations: 1.262 MB / 3.362 GB, free: 22.22 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001282/8.427, allocations: 104.8 kB / 3.362 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/8.427, allocations: 39.77 kB / 3.362 GB, free: 22.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/8.427, allocations: 3.281 kB / 3.362 GB, free: 22.21 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002561/8.429, allocations: 1.069 MB / 3.363 GB, free: 22.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/8.429, allocations: 8.75 kB / 3.363 GB, free: 22.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/8.431, allocations: 390.4 kB / 3.364 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008339/8.432, allocations: 167 kB / 3.364 GB, free: 22.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/8.433, allocations: 1.052 MB / 3.365 GB, free: 21.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009056/8.434, allocations: 104.5 kB / 3.365 GB, free: 21.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.996e-05/8.435, allocations: 41.38 kB / 3.365 GB, free: 21.62 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0003056/8.435, allocations: 159.9 kB / 3.365 GB, free: 21.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002799/8.435, allocations: 87.19 kB / 3.365 GB, free: 21.46 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/8.44, allocations: 3.227 MB / 3.369 GB, free: 21.08 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.592e-05/8.44, allocations: 33.84 kB / 3.369 GB, free: 21.08 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.876e-06/8.44, allocations: 7.812 kB / 3.369 GB, free: 21.07 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003307/8.443, allocations: 2.694 MB / 3.371 GB, free: 20.56 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006574/8.45, allocations: 4.471 MB / 3.376 GB, free: 20.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/8.45, allocations: 0 / 3.376 GB, free: 20.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009795/8.451, allocations: 185.5 kB / 3.376 GB, free: 20.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004831/8.451, allocations: 88.64 kB / 3.376 GB, free: 20.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.671e-05/8.451, allocations: 29.39 kB / 3.376 GB, free: 20.09 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005771/8.452, allocations: 0.6385 MB / 3.376 GB, free: 19.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.371e-06/8.452, allocations: 6.75 kB / 3.376 GB, free: 19.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004034/8.456, allocations: 2.748 MB / 3.379 GB, free: 19.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009016/8.457, allocations: 454.9 kB / 3.38 GB, free: 18.88 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000236/8.457, allocations: 17.31 kB / 3.38 GB, free: 18.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/8.458, allocations: 90.95 kB / 3.38 GB, free: 18.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/8.458, allocations: 62.64 kB / 3.38 GB, free: 18.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/8.458, allocations: 28.41 kB / 3.38 GB, free: 18.86 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001352/8.46, allocations: 0.7836 MB / 3.381 GB, free: 18.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.88e-07/8.46, allocations: 3.156 kB / 3.381 GB, free: 18.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006693/8.467, allocations: 1.724 MB / 3.382 GB, free: 18.49 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009495/8.476, allocations: 1.97 MB / 3.384 GB, free: 18.01 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003281/8.479, allocations: 1.65 MB / 3.386 GB, free: 17.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.058e-06/8.479, allocations: 3.719 kB / 3.386 GB, free: 17.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/8.481, allocations: 0.8321 MB / 3.387 GB, free: 17.97 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002996/8.484, allocations: 469.6 kB / 3.387 GB, free: 17.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004457/8.488, allocations: 2.42 MB / 3.389 GB, free: 17.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001095/8.489, allocations: 1.338 MB / 3.391 GB, free: 16.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003764/8.49, allocations: 85.09 kB / 3.391 GB, free: 16.45 MB / 458.7 MB Notification: Performance of SimCode: time 1.635e-06/8.49, allocations: 0 / 3.391 GB, free: 16.45 MB / 458.7 MB Notification: Performance of Templates: time 0.06928/8.559, allocations: 45.69 MB / 3.435 GB, free: 2.512 MB / 458.7 MB