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.821/1.821, allocations: 209.3 MB / 224.8 MB, free: 208 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.00044, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2843, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.267/6.551, allocations: 2.545 GB / 2.868 GB, free: 75.03 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/6.552, allocations: 85.95 kB / 2.868 GB, free: 75.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.754/8.306, allocations: 454.1 MB / 3.312 GB, free: 37.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.956e-06/8.306, allocations: 0 / 3.312 GB, free: 37.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.37e-05/8.306, allocations: 29.34 kB / 3.312 GB, free: 37.51 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.007713/8.314, allocations: 2.203 MB / 3.314 GB, free: 36.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/8.314, allocations: 15.03 kB / 3.314 GB, free: 36.23 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003544/8.318, allocations: 356.4 kB / 3.314 GB, free: 36.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002514/8.32, allocations: 0.8856 MB / 3.315 GB, free: 35.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.6e-05/8.32, allocations: 73.19 kB / 3.315 GB, free: 35.63 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001674/8.32, allocations: 77.58 kB / 3.315 GB, free: 35.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004084/8.325, allocations: 1.491 MB / 3.317 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.491e-05/8.325, allocations: 4.281 kB / 3.317 GB, free: 34.96 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/8.325, allocations: 42.7 kB / 3.317 GB, free: 34.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.661e-05/8.325, allocations: 57.22 kB / 3.317 GB, free: 34.93 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004243/8.329, allocations: 1.339 MB / 3.318 GB, free: 34.56 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.008807/8.338, allocations: 6.554 MB / 3.325 GB, free: 29.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003702/8.342, allocations: 1.021 MB / 3.326 GB, free: 29.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06651/8.408, allocations: 31.93 MB / 3.357 GB, free: 17.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/8.408, allocations: 39.12 kB / 3.357 GB, free: 17.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=57): time 4.354e-06/8.408, allocations: 3.891 kB / 3.357 GB, free: 17.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=61): time 0.01089/8.419, allocations: 3.349 MB / 3.36 GB, free: 14.79 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/8.419, allocations: 196.5 kB / 3.36 GB, free: 14.55 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/8.421, allocations: 0.6505 MB / 3.361 GB, free: 13.98 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001799/8.421, allocations: 37.7 kB / 3.361 GB, free: 13.94 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000391/8.421, allocations: 420.1 kB / 3.361 GB, free: 13.55 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003086/8.422, allocations: 223.2 kB / 3.362 GB, free: 13.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/8.422, allocations: 12 kB / 3.362 GB, free: 13.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001964/8.422, allocations: 338.5 kB / 3.362 GB, free: 13.01 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/8.423, allocations: 420.6 kB / 3.362 GB, free: 12.67 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/8.425, allocations: 0.6266 MB / 3.363 GB, free: 12.04 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/8.426, allocations: 483.8 kB / 3.363 GB, free: 11.62 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/8.426, allocations: 0 / 3.363 GB, free: 11.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003788/8.43, allocations: 1.315 MB / 3.365 GB, free: 10.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001322/8.431, allocations: 2.267 MB / 3.367 GB, free: 8.047 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/8.431, allocations: 12 kB / 3.367 GB, free: 8.035 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00448/8.436, allocations: 0.6707 MB / 3.367 GB, free: 7.539 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009343/8.437, allocations: 165.7 kB / 3.368 GB, free: 7.402 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/8.44, allocations: 1.308 MB / 3.369 GB, free: 6.207 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001375/8.441, allocations: 98.8 kB / 3.369 GB, free: 6.133 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000131/8.441, allocations: 39.61 kB / 3.369 GB, free: 6.098 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/8.441, allocations: 10.34 kB / 3.369 GB, free: 6.09 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003868/8.445, allocations: 1.228 MB / 3.37 GB, free: 5.043 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/8.445, allocations: 8.031 kB / 3.37 GB, free: 5.035 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002225/8.447, allocations: 420.7 kB / 3.371 GB, free: 4.723 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009843/8.448, allocations: 176 kB / 3.371 GB, free: 4.578 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001914/8.45, allocations: 1.104 MB / 3.372 GB, free: 3.562 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001043/8.451, allocations: 106.7 kB / 3.372 GB, free: 3.477 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/8.451, allocations: 39.84 kB / 3.372 GB, free: 3.441 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 () * Number of clocked 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.0008319/8.452, allocations: 359.8 kB / 3.372 GB, free: 3.102 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003322/8.453, allocations: 90.97 kB / 3.372 GB, free: 3.012 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007004/8.46, allocations: 3.346 MB / 3.376 GB, free: 72 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.762e-05/8.46, allocations: 35.33 kB / 3.376 GB, free: 52 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/8.46, allocations: 7.953 kB / 3.376 GB, free: 44 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2794/8.739, allocations: 2.787 MB / 3.379 GB, free: 56.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007991/8.747, allocations: 4.596 MB / 3.383 GB, free: 56.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.215e-05/8.747, allocations: 1.859 kB / 3.383 GB, free: 56.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009799/8.748, allocations: 174.1 kB / 3.383 GB, free: 56.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005564/8.749, allocations: 100.5 kB / 3.383 GB, free: 56.31 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.825e-05/8.749, allocations: 27.5 kB / 3.383 GB, free: 56.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004621/8.749, allocations: 0.6462 MB / 3.384 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/8.75, allocations: 0.6094 kB / 3.384 GB, free: 55.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005782/8.755, allocations: 2.957 MB / 3.387 GB, free: 55.41 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/8.756, allocations: 460.4 kB / 3.387 GB, free: 55.31 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/8.757, allocations: 20.59 kB / 3.387 GB, free: 55.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001177/8.758, allocations: 88.28 kB / 3.387 GB, free: 55.31 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/8.758, allocations: 66.8 kB / 3.387 GB, free: 55.31 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.468e-05/8.758, allocations: 24.11 kB / 3.387 GB, free: 55.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00149/8.76, allocations: 0.805 MB / 3.388 GB, free: 55.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.07e-07/8.76, allocations: 0 / 3.388 GB, free: 55.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007035/8.767, allocations: 1.726 MB / 3.39 GB, free: 55.2 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 () * Number of clocked 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.009597/8.776, allocations: 1.955 MB / 3.392 GB, free: 55.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00457/8.781, allocations: 1.871 MB / 3.394 GB, free: 55.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.764e-06/8.781, allocations: 0 / 3.394 GB, free: 55.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001814/8.783, allocations: 0.9069 MB / 3.395 GB, free: 55.07 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/8.786, allocations: 468.6 kB / 3.395 GB, free: 55.05 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005607/8.791, allocations: 3.782 MB / 3.399 GB, free: 53.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008883/8.792, allocations: 1.341 MB / 3.4 GB, free: 52.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/8.793, allocations: 84.7 kB / 3.4 GB, free: 52.77 MB / 458.7 MB Notification: Performance of SimCode: time 2.429e-06/8.793, allocations: 0 / 3.4 GB, free: 52.77 MB / 458.7 MB Notification: Performance of Templates: time 0.06989/8.863, allocations: 45.98 MB / 3.445 GB, free: 49.93 MB / 458.7 MB