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.BranchingPipes4.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.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 1.866/1.866, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004353/0.0004353, allocations: 12 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3463, allocations: 48.7 MB / 331.8 MB, free: 6.48 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.216/7.562, allocations: 2.55 GB / 2.874 GB, free: 94.04 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/7.563, allocations: 81.39 kB / 2.874 GB, free: 94.04 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.632/12.2, allocations: 0.8785 GB / 3.752 GB, free: 26.85 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.685e-06/12.2, allocations: 0 / 3.752 GB, free: 26.85 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003406/12.2, allocations: 67.75 kB / 3.752 GB, free: 26.84 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01914/12.21, allocations: 4.176 MB / 3.756 GB, free: 24.96 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/12.21, allocations: 7.625 kB / 3.756 GB, free: 24.96 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008794/12.22, allocations: 0.855 MB / 3.757 GB, free: 24.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008295/12.23, allocations: 2.08 MB / 3.759 GB, free: 24.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003037/12.23, allocations: 179.7 kB / 3.759 GB, free: 24.38 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008709/12.23, allocations: 196.1 kB / 3.76 GB, free: 24.38 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/12.25, allocations: 3.693 MB / 3.763 GB, free: 23.86 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/12.25, allocations: 5.5 kB / 3.763 GB, free: 23.86 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004249/12.25, allocations: 97.59 kB / 3.763 GB, free: 23.85 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003038/12.25, allocations: 164.5 kB / 3.763 GB, free: 23.85 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01329/12.26, allocations: 3.423 MB / 3.767 GB, free: 23.83 MB / 474.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.02939/12.29, allocations: 15.38 MB / 3.782 GB, free: 14.53 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008713/12.3, allocations: 2.267 MB / 3.784 GB, free: 14.48 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05921/12.36, allocations: 18.86 MB / 3.802 GB, free: 18.64 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006685/12.36, allocations: 1.684 MB / 3.804 GB, free: 18.52 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 5.511e-06/12.36, allocations: 0 / 3.804 GB, free: 18.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.039/12.4, allocations: 9.005 MB / 3.813 GB, free: 17.28 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/12.4, allocations: 253.2 kB / 3.813 GB, free: 17 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003334/12.41, allocations: 1.641 MB / 3.815 GB, free: 16.81 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005519/12.41, allocations: 58.67 kB / 3.815 GB, free: 16.78 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009094/12.41, allocations: 0.9387 MB / 3.816 GB, free: 16.3 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008893/12.41, allocations: 0.5817 MB / 3.816 GB, free: 15.93 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002269/12.41, allocations: 45.88 kB / 3.816 GB, free: 15.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002134/12.41, allocations: 392.8 kB / 3.817 GB, free: 15.62 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003626/12.41, allocations: 1.121 MB / 3.818 GB, free: 15.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004008/12.42, allocations: 1.584 MB / 3.819 GB, free: 15.11 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004049/12.42, allocations: 1.364 MB / 3.821 GB, free: 15.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.396e-05/12.42, allocations: 2.625 kB / 3.821 GB, free: 15.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009956/12.43, allocations: 3.2 MB / 3.824 GB, free: 14.81 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003703/12.43, allocations: 0.5062 MB / 3.824 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/12.43, allocations: 18.52 kB / 3.824 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/12.43, allocations: 250.3 kB / 3.825 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00418/12.44, allocations: 0.5221 MB / 3.825 GB, free: 14.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002074/12.44, allocations: 2.434 MB / 3.827 GB, free: 12.08 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004072/12.44, allocations: 277.7 kB / 3.828 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004902/12.44, allocations: 107.8 kB / 3.828 GB, free: 12.04 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/12.44, allocations: 7.781 kB / 3.828 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01053/12.45, allocations: 3.031 MB / 3.831 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.443e-05/12.46, allocations: 11.88 kB / 3.831 GB, free: 11.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/12.46, allocations: 247.5 kB / 3.831 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004245/12.46, allocations: 0.5114 MB / 3.831 GB, free: 11.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/12.46, allocations: 2.437 MB / 3.834 GB, free: 9.758 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003335/12.47, allocations: 264.8 kB / 3.834 GB, free: 9.727 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005176/12.47, allocations: 102.7 kB / 3.834 GB, free: 9.727 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,splitter.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002426/12.47, allocations: 0.7567 MB / 3.835 GB, free: 9.461 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007147/12.47, allocations: 206.1 kB / 3.835 GB, free: 9.355 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01736/12.49, allocations: 7.623 MB / 3.843 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.412e-05/12.49, allocations: 83.17 kB / 3.843 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/12.49, allocations: 0 / 3.843 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01396/12.5, allocations: 6.664 MB / 3.849 GB, free: 7.637 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02349/12.53, allocations: 10.86 MB / 3.86 GB, free: 3.594 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/12.53, allocations: 0 / 3.86 GB, free: 3.594 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003323/12.53, allocations: 408.3 kB / 3.86 GB, free: 3.574 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0023/12.53, allocations: 366.8 kB / 3.861 GB, free: 3.461 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005223/12.53, allocations: 66.12 kB / 3.861 GB, free: 3.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/12.53, allocations: 2.523 MB / 3.863 GB, free: 1.152 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/12.53, allocations: 1.406 kB / 3.863 GB, free: 1.152 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01741/12.55, allocations: 7.134 MB / 3.87 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002498/12.55, allocations: 0.7493 MB / 3.871 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009549/12.55, allocations: 50.67 kB / 3.871 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003459/12.56, allocations: 208.7 kB / 3.871 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006052/12.56, allocations: 147.7 kB / 3.871 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002717/12.56, allocations: 71.8 kB / 3.871 GB, free: 13.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002997/12.56, allocations: 1.22 MB / 3.872 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.41e-07/12.56, allocations: 0 / 3.872 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01416/12.58, allocations: 2.814 MB / 3.875 GB, free: 10.14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,splitter.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01638/12.59, allocations: 2.943 MB / 3.878 GB, free: 7.93 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01659/12.61, allocations: 5.199 MB / 3.883 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/12.61, allocations: 7.188 kB / 3.883 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006906/12.62, allocations: 2.43 MB / 3.885 GB, free: 1.098 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009124/12.63, allocations: 0.9553 MB / 3.886 GB, free: 416 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8152/13.44, allocations: 128.4 MB / 4.012 GB, free: 42.76 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00257/13.44, allocations: 2.234 MB / 4.014 GB, free: 41.97 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/13.44, allocations: 218.6 kB / 4.014 GB, free: 41.97 MB / 0.4948 GB Notification: Performance of SimCode: time 1.182e-06/13.44, allocations: 0 / 4.014 GB, free: 41.97 MB / 0.4948 GB Notification: Performance of Templates: time 0.5952/14.04, allocations: 117.7 MB / 4.129 GB, free: 50.02 MB / 0.4948 GB