Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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 2.042/2.042, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004217/0.0004218, allocations: 8 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3539, allocations: 48.7 MB / 331.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.504/7.858, allocations: 2.545 GB / 2.869 GB, free: 91.58 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/7.859, allocations: 85.97 kB / 2.869 GB, free: 91.58 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.182/10.04, allocations: 454.1 MB / 3.312 GB, free: 26.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.776e-06/10.04, allocations: 4 kB / 3.312 GB, free: 26.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001076/10.04, allocations: 27.88 kB / 3.312 GB, free: 26.5 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.009996/10.05, allocations: 2.201 MB / 3.314 GB, free: 24.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/10.05, allocations: 8.031 kB / 3.314 GB, free: 24.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003731/10.05, allocations: 366.7 kB / 3.315 GB, free: 24.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003253/10.06, allocations: 0.8758 MB / 3.316 GB, free: 23.43 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/10.06, allocations: 75.3 kB / 3.316 GB, free: 23.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002204/10.06, allocations: 82.38 kB / 3.316 GB, free: 23.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004876/10.06, allocations: 1.492 MB / 3.317 GB, free: 22.01 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.333e-05/10.06, allocations: 3.938 kB / 3.317 GB, free: 22.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001492/10.06, allocations: 39.02 kB / 3.317 GB, free: 21.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/10.06, allocations: 57.88 kB / 3.317 GB, free: 21.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005232/10.07, allocations: 1.346 MB / 3.319 GB, free: 20.84 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.01176/10.08, allocations: 6.557 MB / 3.325 GB, free: 14.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004256/10.08, allocations: 1.019 MB / 3.326 GB, free: 13.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4447/10.53, allocations: 31.93 MB / 3.357 GB, free: 47.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.335e-05/10.53, allocations: 44.22 kB / 3.357 GB, free: 47.65 MB / 458.7 MB Notification: Performance of pre-optimization done (n=57): time 3.226e-06/10.53, allocations: 0 / 3.357 GB, free: 47.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=61): time 0.01427/10.54, allocations: 3.357 MB / 3.361 GB, free: 47.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/10.54, allocations: 187.8 kB / 3.361 GB, free: 46.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001475/10.55, allocations: 0.7251 MB / 3.361 GB, free: 46.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001797/10.55, allocations: 36.52 kB / 3.361 GB, free: 46.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002996/10.55, allocations: 435.1 kB / 3.362 GB, free: 46.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002537/10.55, allocations: 213.2 kB / 3.362 GB, free: 46.42 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.453e-05/10.55, allocations: 13.53 kB / 3.362 GB, free: 46.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.92e-05/10.55, allocations: 339.5 kB / 3.362 GB, free: 46.11 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/10.55, allocations: 419.9 kB / 3.363 GB, free: 46.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/10.55, allocations: 0.6272 MB / 3.363 GB, free: 45.88 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/10.55, allocations: 489.8 kB / 3.364 GB, free: 45.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/10.55, allocations: 3.844 kB / 3.364 GB, free: 45.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004747/10.56, allocations: 1.315 MB / 3.365 GB, free: 45.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001695/10.56, allocations: 265.2 kB / 3.365 GB, free: 45.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/10.56, allocations: 5.906 kB / 3.365 GB, free: 45.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005556/10.56, allocations: 0.6759 MB / 3.366 GB, free: 45.51 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/10.56, allocations: 159.7 kB / 3.366 GB, free: 45.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/10.57, allocations: 1.306 MB / 3.368 GB, free: 44.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/10.57, allocations: 105.2 kB / 3.368 GB, free: 44.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/10.57, allocations: 39.55 kB / 3.368 GB, free: 44.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/10.57, allocations: 5.156 kB / 3.368 GB, free: 44.98 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004728/10.57, allocations: 1.23 MB / 3.369 GB, free: 44.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/10.57, allocations: 5.969 kB / 3.369 GB, free: 44.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002949/10.58, allocations: 421.4 kB / 3.369 GB, free: 44.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/10.58, allocations: 169.8 kB / 3.369 GB, free: 44.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002108/10.58, allocations: 1.102 MB / 3.371 GB, free: 44.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/10.58, allocations: 112.2 kB / 3.371 GB, free: 44.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/10.58, allocations: 42.11 kB / 3.371 GB, free: 44.41 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.0008974/10.58, allocations: 356.8 kB / 3.371 GB, free: 44.22 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003585/10.58, allocations: 85.28 kB / 3.371 GB, free: 44.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006895/10.59, allocations: 3.342 MB / 3.374 GB, free: 43.88 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.75e-05/10.59, allocations: 49 kB / 3.374 GB, free: 43.88 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/10.59, allocations: 1.438 kB / 3.374 GB, free: 43.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005092/10.59, allocations: 2.795 MB / 3.377 GB, free: 43.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008976/10.6, allocations: 4.602 MB / 3.382 GB, free: 42.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/10.6, allocations: 3.875 kB / 3.382 GB, free: 42.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/10.6, allocations: 176.9 kB / 3.382 GB, free: 42.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006196/10.61, allocations: 96.44 kB / 3.382 GB, free: 42.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.16e-05/10.61, allocations: 26.44 kB / 3.382 GB, free: 42.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005025/10.61, allocations: 0.6409 MB / 3.383 GB, free: 42.43 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/10.61, allocations: 3.797 kB / 3.383 GB, free: 42.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006142/10.61, allocations: 2.929 MB / 3.385 GB, free: 42 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/10.61, allocations: 461.9 kB / 3.386 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003078/10.61, allocations: 22.53 kB / 3.386 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/10.61, allocations: 84.58 kB / 3.386 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/10.62, allocations: 58.06 kB / 3.386 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.682e-05/10.62, allocations: 25.45 kB / 3.386 GB, free: 41.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001532/10.62, allocations: 0.8081 MB / 3.387 GB, free: 41.71 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.21e-07/10.62, allocations: 0 / 3.387 GB, free: 41.71 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00799/10.62, allocations: 1.727 MB / 3.389 GB, free: 41.66 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.01233/10.64, allocations: 1.948 MB / 3.39 GB, free: 41.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005815/10.64, allocations: 1.871 MB / 3.392 GB, free: 41.42 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/10.64, allocations: 0 / 3.392 GB, free: 41.42 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002142/10.65, allocations: 0.9136 MB / 3.393 GB, free: 41.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004532/10.65, allocations: 474.3 kB / 3.394 GB, free: 41.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007399/10.66, allocations: 3.784 MB / 3.397 GB, free: 39.83 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008923/10.66, allocations: 1.337 MB / 3.399 GB, free: 39.11 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005208/10.66, allocations: 87.84 kB / 3.399 GB, free: 39.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.312e-06/10.66, allocations: 0 / 3.399 GB, free: 39.11 MB / 458.7 MB Notification: Performance of Templates: time 0.09339/10.75, allocations: 45.98 MB / 3.444 GB, free: 35.96 MB / 458.7 MB