Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,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|valve1.filter.x.1.|valve1.filter.x.2.|valve2.filter.x.1.|valve2.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 2.156/2.156, allocations: 234.9 MB / 250.5 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.000434, allocations: 11.98 kB / 314.4 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2894, allocations: 54.85 MB / 369.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.359/6.648, allocations: 2.656 GB / 3.017 GB, free: 79.79 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/6.648, allocations: 79.52 kB / 3.017 GB, free: 79.74 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466/10.11, allocations: 0.7969 GB / 3.813 GB, free: 25.44 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.349e-06/10.11, allocations: 4 kB / 3.813 GB, free: 25.43 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002701/10.12, allocations: 70.77 kB / 3.814 GB, free: 25.37 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01619/10.13, allocations: 4.235 MB / 3.818 GB, free: 21.54 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/10.13, allocations: 8.031 kB / 3.818 GB, free: 21.53 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007572/10.14, allocations: 0.845 MB / 3.819 GB, free: 20.86 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00649/10.15, allocations: 2.116 MB / 3.821 GB, free: 19.17 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/10.15, allocations: 177.6 kB / 3.821 GB, free: 19.01 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006378/10.15, allocations: 195.2 kB / 3.821 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00994/10.16, allocations: 3.714 MB / 3.825 GB, free: 15.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.761e-05/10.16, allocations: 7.938 kB / 3.825 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000384/10.16, allocations: 91.95 kB / 3.825 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002303/10.16, allocations: 168.2 kB / 3.825 GB, free: 15.46 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01039/10.17, allocations: 3.544 MB / 3.828 GB, free: 12.02 MB / 0.4948 GB 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.02324/10.19, allocations: 14.76 MB / 3.843 GB, free: 12.04 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007194/10.2, allocations: 2.203 MB / 3.845 GB, free: 9.828 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3874/10.59, allocations: 18.87 MB / 3.863 GB, free: 36.52 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005908/10.59, allocations: 1.67 MB / 3.865 GB, free: 36.4 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001541/10.59, allocations: 190 kB / 3.865 GB, free: 36.4 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.224e-06/10.59, allocations: 0 / 3.865 GB, free: 36.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.03377/10.63, allocations: 9.126 MB / 3.874 GB, free: 35.33 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001241/10.63, allocations: 414.6 kB / 3.874 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002963/10.63, allocations: 1.505 MB / 3.876 GB, free: 34.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004823/10.63, allocations: 61.58 kB / 3.876 GB, free: 34.66 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008222/10.63, allocations: 0.9266 MB / 3.877 GB, free: 34.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/10.63, allocations: 0.5875 MB / 3.877 GB, free: 34.01 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002395/10.63, allocations: 41.89 kB / 3.877 GB, free: 34.01 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001659/10.63, allocations: 391.2 kB / 3.878 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003049/10.64, allocations: 1.158 MB / 3.879 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003647/10.64, allocations: 1.639 MB / 3.881 GB, free: 33.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003619/10.64, allocations: 1.414 MB / 3.882 GB, free: 33.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-05/10.64, allocations: 3.062 kB / 3.882 GB, free: 33.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.009268/10.65, allocations: 3.397 MB / 3.885 GB, free: 32.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009337/10.65, allocations: 4.432 MB / 3.89 GB, free: 28.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-05/10.65, allocations: 16.56 kB / 3.89 GB, free: 28.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007523/10.66, allocations: 0.9859 MB / 3.891 GB, free: 28.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00276/10.66, allocations: 473.9 kB / 3.891 GB, free: 28.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00325/10.67, allocations: 3.165 MB / 3.894 GB, free: 26.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003229/10.67, allocations: 243 kB / 3.894 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005824/10.67, allocations: 104.8 kB / 3.894 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/10.67, allocations: 5.969 kB / 3.894 GB, free: 26.15 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008948/10.68, allocations: 3.181 MB / 3.898 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.7e-05/10.68, allocations: 10.66 kB / 3.898 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/10.68, allocations: 356.8 kB / 3.898 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003423/10.69, allocations: 499.8 kB / 3.898 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004464/10.69, allocations: 4.096 MB / 3.902 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/10.69, allocations: 237.4 kB / 3.903 GB, free: 23.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004126/10.69, allocations: 102.5 kB / 3.903 GB, free: 23.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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 (223): * Single equations (assignments): 213 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.002029/10.7, allocations: 0.771 MB / 3.903 GB, free: 22.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005982/10.7, allocations: 217.7 kB / 3.904 GB, free: 22.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01423/10.71, allocations: 7.843 MB / 3.911 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.652e-05/10.71, allocations: 79.36 kB / 3.911 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.996e-06/10.71, allocations: 3.812 kB / 3.911 GB, free: 22.12 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01108/10.72, allocations: 6.874 MB / 3.918 GB, free: 21.21 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01904/10.74, allocations: 10.9 MB / 3.929 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/10.74, allocations: 2.906 kB / 3.929 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/10.74, allocations: 344.2 kB / 3.929 GB, free: 20.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00624/10.75, allocations: 2.148 MB / 3.931 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004589/10.75, allocations: 64.33 kB / 3.931 GB, free: 20.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003889/10.75, allocations: 4.102 MB / 3.935 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.392e-06/10.75, allocations: 3.469 kB / 3.935 GB, free: 18.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/10.77, allocations: 7.988 MB / 3.943 GB, free: 17.57 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/10.77, allocations: 0.7505 MB / 3.944 GB, free: 17.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00073/10.77, allocations: 59.55 kB / 3.944 GB, free: 17.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002499/10.77, allocations: 195.5 kB / 3.944 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004074/10.77, allocations: 134.6 kB / 3.944 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/10.77, allocations: 73.5 kB / 3.944 GB, free: 17.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002542/10.78, allocations: 1.261 MB / 3.945 GB, free: 17.08 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.391e-06/10.78, allocations: 1.844 kB / 3.945 GB, free: 17.08 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01092/10.79, allocations: 2.825 MB / 3.948 GB, free: 16.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.region,$cse45.phase,$cse45.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (168): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 19 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0122/10.8, allocations: 2.848 MB / 3.951 GB, free: 16.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01311/10.81, allocations: 5.587 MB / 3.956 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.571e-06/10.81, allocations: 3.844 kB / 3.956 GB, free: 16.07 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004805/10.82, allocations: 2.425 MB / 3.959 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005798/10.82, allocations: 0.8912 MB / 3.96 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.634/11.46, allocations: 130.5 MB / 4.087 GB, free: 68.78 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/11.46, allocations: 2.251 MB / 4.089 GB, free: 68.04 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/11.46, allocations: 196.7 kB / 4.09 GB, free: 68.03 MB / 0.5417 GB Notification: Performance of SimCode: time 1.756e-06/11.46, allocations: 0 / 4.09 GB, free: 68.03 MB / 0.5417 GB Notification: Performance of Templates: time 0.1529/11.61, allocations: 117 MB / 4.204 GB, free: 41.43 MB / 0.5417 GB