Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 2.431/2.431, allocations: 234.9 MB / 251.1 MB, free: 9.695 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004401/0.00044, allocations: 12 kB / 314.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.3751, allocations: 54.86 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.834/8.209, allocations: 2.66 GB / 3.021 GB, free: 59.65 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/8.21, allocations: 83.58 kB / 3.021 GB, free: 59.61 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.051/13.26, allocations: 0.9012 GB / 3.923 GB, free: 33.97 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.494e-06/13.26, allocations: 0 / 3.923 GB, free: 33.97 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003184/13.26, allocations: 71.08 kB / 3.923 GB, free: 33.96 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.02071/13.28, allocations: 4.303 MB / 3.927 GB, free: 32.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/13.28, allocations: 9.969 kB / 3.927 GB, free: 32.03 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008939/13.29, allocations: 0.8656 MB / 3.928 GB, free: 31.89 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008492/13.3, allocations: 2.108 MB / 3.93 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002905/13.3, allocations: 180 kB / 3.93 GB, free: 31.44 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000956/13.3, allocations: 198.8 kB / 3.93 GB, free: 31.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/13.31, allocations: 3.7 MB / 3.934 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.472e-05/13.31, allocations: 6.75 kB / 3.934 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005071/13.31, allocations: 94.62 kB / 3.934 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003049/13.31, allocations: 166.1 kB / 3.934 GB, free: 30.91 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/13.33, allocations: 3.43 MB / 3.937 GB, free: 30.89 MB / 0.5105 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.03068/13.36, allocations: 15.41 MB / 3.952 GB, free: 21.6 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009068/13.37, allocations: 2.274 MB / 3.955 GB, free: 21.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05775/13.43, allocations: 18.89 MB / 3.973 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007216/13.43, allocations: 1.693 MB / 3.975 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 6.271e-06/13.43, allocations: 0 / 3.975 GB, free: 25.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.04129/13.47, allocations: 9.004 MB / 3.983 GB, free: 24.13 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001733/13.47, allocations: 259.1 kB / 3.984 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003586/13.48, allocations: 1.649 MB / 3.985 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005977/13.48, allocations: 56.92 kB / 3.985 GB, free: 23.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001036/13.48, allocations: 0.9328 MB / 3.986 GB, free: 23.16 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001054/13.48, allocations: 0.6045 MB / 3.987 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00026/13.48, allocations: 36.44 kB / 3.987 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002404/13.48, allocations: 395.4 kB / 3.987 GB, free: 22.46 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003824/13.49, allocations: 1.127 MB / 3.988 GB, free: 22.45 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004412/13.49, allocations: 1.6 MB / 3.99 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004547/13.49, allocations: 1.382 MB / 3.991 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-05/13.49, allocations: 3.219 kB / 3.991 GB, free: 21.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01118/13.51, allocations: 3.173 MB / 3.994 GB, free: 21.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003906/13.51, allocations: 0.5108 MB / 3.995 GB, free: 20.94 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/13.51, allocations: 13.53 kB / 3.995 GB, free: 20.94 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/13.51, allocations: 252.3 kB / 3.995 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004398/13.51, allocations: 0.5184 MB / 3.996 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/13.51, allocations: 2.431 MB / 3.998 GB, free: 18.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00437/13.52, allocations: 270 kB / 3.998 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007729/13.52, allocations: 103.5 kB / 3.998 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/13.52, allocations: 5.75 kB / 3.998 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0108/13.53, allocations: 3.019 MB / 4.001 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.34e-05/13.53, allocations: 13.06 kB / 4.001 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/13.53, allocations: 253.8 kB / 4.002 GB, free: 17.93 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00428/13.54, allocations: 0.5082 MB / 4.002 GB, free: 17.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002229/13.54, allocations: 2.439 MB / 4.004 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003451/13.54, allocations: 268.1 kB / 4.005 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005411/13.54, allocations: 105.1 kB / 4.005 GB, free: 15.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002631/13.55, allocations: 0.7598 MB / 4.006 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006984/13.55, allocations: 207.8 kB / 4.006 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01777/13.56, allocations: 7.629 MB / 4.013 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.603e-05/13.56, allocations: 87.11 kB / 4.013 GB, free: 11.59 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/13.56, allocations: 7.906 kB / 4.013 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01422/13.58, allocations: 6.632 MB / 4.02 GB, free: 7.418 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0299/13.61, allocations: 10.98 MB / 4.031 GB, free: 14.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.946e-05/13.61, allocations: 0 / 4.031 GB, free: 14.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003561/13.61, allocations: 413.3 kB / 4.031 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00243/13.61, allocations: 359.1 kB / 4.031 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005945/13.61, allocations: 63.86 kB / 4.031 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/13.62, allocations: 2.527 MB / 4.034 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/13.62, allocations: 0 / 4.034 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01922/13.64, allocations: 7.152 MB / 4.041 GB, free: 4.711 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/13.64, allocations: 0.7529 MB / 4.041 GB, free: 4.039 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001031/13.64, allocations: 50.72 kB / 4.042 GB, free: 3.992 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003943/13.64, allocations: 215.7 kB / 4.042 GB, free: 3.828 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000893/13.65, allocations: 148.8 kB / 4.042 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004166/13.65, allocations: 73.94 kB / 4.042 GB, free: 3.672 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003865/13.65, allocations: 1.214 MB / 4.043 GB, free: 2.645 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.81e-07/13.65, allocations: 0 / 4.043 GB, free: 2.645 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.4464/14.1, allocations: 2.911 MB / 4.046 GB, free: 0 / 0.5417 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,splitter.medium.phase) * 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 (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.01798/14.11, allocations: 2.949 MB / 4.049 GB, free: 63.46 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01585/14.13, allocations: 5.323 MB / 4.054 GB, free: 63.12 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/14.13, allocations: 0 / 4.054 GB, free: 63.12 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006238/14.14, allocations: 2.472 MB / 4.056 GB, free: 62.98 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008787/14.15, allocations: 0.9783 MB / 4.057 GB, free: 62.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3781/14.52, allocations: 130.6 MB / 4.185 GB, free: 47.25 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/14.53, allocations: 2.234 MB / 4.187 GB, free: 45.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001681/14.53, allocations: 219.2 kB / 4.187 GB, free: 45.43 MB / 0.5417 GB Notification: Performance of SimCode: time 1.553e-06/14.53, allocations: 0 / 4.187 GB, free: 45.43 MB / 0.5417 GB Notification: Performance of Templates: time 0.6504/15.18, allocations: 118.3 MB / 4.303 GB, free: 51.63 MB / 0.5417 GB