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.BranchingPipes4.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.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.118/2.118, allocations: 234.9 MB / 250.5 MB, free: 9.531 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004363, allocations: 12 kB / 314.4 MB, free: 9.551 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2759, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.157/6.433, allocations: 2.66 GB / 3.021 GB, free: 120.9 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/6.433, allocations: 89.45 kB / 3.021 GB, free: 120.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.047/10.48, allocations: 0.9012 GB / 3.922 GB, free: 28.83 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.474e-06/10.48, allocations: 2.312 kB / 3.922 GB, free: 28.83 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000259/10.48, allocations: 63.75 kB / 3.922 GB, free: 28.83 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.01566/10.5, allocations: 4.308 MB / 3.926 GB, free: 27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/10.5, allocations: 10.16 kB / 3.926 GB, free: 27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008352/10.5, allocations: 0.8718 MB / 3.927 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0069/10.51, allocations: 2.096 MB / 3.929 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002582/10.51, allocations: 180.5 kB / 3.929 GB, free: 26.42 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000685/10.51, allocations: 210.3 kB / 3.93 GB, free: 26.41 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01057/10.52, allocations: 3.678 MB / 3.933 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001062/10.52, allocations: 9.688 kB / 3.933 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003969/10.52, allocations: 95.27 kB / 3.933 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002609/10.52, allocations: 165.6 kB / 3.933 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/10.54, allocations: 3.433 MB / 3.937 GB, free: 25.88 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.02434/10.56, allocations: 15.42 MB / 3.952 GB, free: 16.57 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007205/10.57, allocations: 2.255 MB / 3.954 GB, free: 16.54 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04316/10.61, allocations: 18.89 MB / 3.972 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006007/10.62, allocations: 1.682 MB / 3.974 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=163): time 7.353e-06/10.62, allocations: 0 / 3.974 GB, free: 20.59 MB / 0.5261 GB Notification: Performance of matching and sorting (n=179): time 0.03227/10.65, allocations: 9.007 MB / 3.983 GB, free: 19.35 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001885/10.65, allocations: 262 kB / 3.983 GB, free: 19.07 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002641/10.65, allocations: 1.455 MB / 3.985 GB, free: 18.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004395/10.65, allocations: 58.58 kB / 3.985 GB, free: 18.86 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007813/10.65, allocations: 0.9343 MB / 3.986 GB, free: 18.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006051/10.65, allocations: 0.5961 MB / 3.986 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/10.65, allocations: 39.44 kB / 3.986 GB, free: 18.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002454/10.65, allocations: 401.6 kB / 3.987 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003053/10.66, allocations: 1.124 MB / 3.988 GB, free: 17.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003733/10.66, allocations: 1.596 MB / 3.989 GB, free: 17.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003512/10.66, allocations: 1.376 MB / 3.991 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/10.66, allocations: 2.281 kB / 3.991 GB, free: 17.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.008544/10.67, allocations: 3.174 MB / 3.994 GB, free: 16.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002436/10.67, allocations: 4.858 MB / 3.998 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.225e-05/10.67, allocations: 14.17 kB / 3.998 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/10.68, allocations: 251.9 kB / 3.999 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003065/10.68, allocations: 0.5163 MB / 3.999 GB, free: 11.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/10.68, allocations: 2.433 MB / 4.002 GB, free: 25.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003422/10.69, allocations: 270.4 kB / 4.002 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004644/10.69, allocations: 102 kB / 4.002 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/10.69, allocations: 5.719 kB / 4.002 GB, free: 25.73 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007731/10.69, allocations: 3.019 MB / 4.005 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.945e-05/10.69, allocations: 13 kB / 4.005 GB, free: 25.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001183/10.7, allocations: 255.9 kB / 4.005 GB, free: 25.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003051/10.7, allocations: 0.511 MB / 4.006 GB, free: 25.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002329/10.7, allocations: 2.434 MB / 4.008 GB, free: 23.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/10.7, allocations: 265.7 kB / 4.008 GB, free: 23.47 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002856/10.7, allocations: 105.8 kB / 4.008 GB, free: 23.47 MB / 0.5417 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.001904/10.71, allocations: 0.763 MB / 4.009 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005364/10.71, allocations: 210.6 kB / 4.009 GB, free: 23.11 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01371/10.72, allocations: 7.614 MB / 4.017 GB, free: 22.36 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.552e-05/10.72, allocations: 87.47 kB / 4.017 GB, free: 22.36 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/10.72, allocations: 0.9375 kB / 4.017 GB, free: 22.36 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01113/10.73, allocations: 6.638 MB / 4.023 GB, free: 21.46 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01899/10.75, allocations: 10.85 MB / 4.034 GB, free: 20.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/10.75, allocations: 2.438 kB / 4.034 GB, free: 20.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002364/10.75, allocations: 404.7 kB / 4.034 GB, free: 20.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001776/10.75, allocations: 370.1 kB / 4.035 GB, free: 20.64 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003011/10.75, allocations: 68.05 kB / 4.035 GB, free: 20.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/10.76, allocations: 2.519 MB / 4.037 GB, free: 18.56 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.502e-06/10.76, allocations: 2.812 kB / 4.037 GB, free: 18.56 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/10.77, allocations: 7.137 MB / 4.044 GB, free: 17.91 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/10.77, allocations: 0.7507 MB / 4.045 GB, free: 17.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005582/10.77, allocations: 56.5 kB / 4.045 GB, free: 17.58 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002402/10.78, allocations: 210.5 kB / 4.045 GB, free: 17.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003637/10.78, allocations: 147.2 kB / 4.045 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002298/10.78, allocations: 75.23 kB / 4.045 GB, free: 17.56 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.00228/10.78, allocations: 1.217 MB / 4.047 GB, free: 17.41 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.34e-07/10.78, allocations: 2.594 kB / 4.047 GB, free: 17.41 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01018/10.79, allocations: 2.852 MB / 4.049 GB, free: 17.02 MB / 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.01191/10.8, allocations: 2.95 MB / 4.052 GB, free: 16.43 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0114/10.81, allocations: 5.317 MB / 4.057 GB, free: 16.08 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.393e-06/10.81, allocations: 3.25 kB / 4.057 GB, free: 16.08 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004584/10.82, allocations: 2.477 MB / 4.06 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005928/10.82, allocations: 0.9611 MB / 4.061 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6329/11.46, allocations: 130.9 MB / 4.189 GB, free: 65.39 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002181/11.46, allocations: 2.231 MB / 4.191 GB, free: 64.64 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/11.46, allocations: 219 kB / 4.191 GB, free: 64.64 MB / 0.5573 GB Notification: Performance of SimCode: time 2.141e-06/11.46, allocations: 0 / 4.191 GB, free: 64.64 MB / 0.5573 GB Notification: Performance of Templates: time 0.1687/11.63, allocations: 118.2 MB / 4.306 GB, free: 23.21 MB / 0.5573 GB