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.BranchingPipes2.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.BranchingPipes2,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|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.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.295/2.295, allocations: 234.9 MB / 251.1 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004383, allocations: 12 kB / 314.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3958, allocations: 54.86 MB / 369.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.844/8.24, allocations: 2.673 GB / 3.034 GB, free: 46.75 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002991/8.241, allocations: 84.58 kB / 3.034 GB, free: 46.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.136/12.38, allocations: 0.8006 GB / 3.834 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.595e-06/12.38, allocations: 0 / 3.834 GB, free: 10.64 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003406/12.38, allocations: 67.86 kB / 3.835 GB, free: 10.57 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.02279/12.4, allocations: 3.915 MB / 3.838 GB, free: 6.586 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.728e-05/12.4, allocations: 8.031 kB / 3.838 GB, free: 6.578 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008696/12.41, allocations: 0.7826 MB / 3.839 GB, free: 5.793 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009056/12.42, allocations: 2.003 MB / 3.841 GB, free: 3.734 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003853/12.42, allocations: 167.4 kB / 3.841 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/12.42, allocations: 183.9 kB / 3.841 GB, free: 3.391 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.477/12.9, allocations: 3.344 MB / 3.845 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/12.9, allocations: 6.844 kB / 3.845 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005424/12.9, allocations: 79.17 kB / 3.845 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003792/12.9, allocations: 145.7 kB / 3.845 GB, free: 35.98 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01396/12.91, allocations: 3.18 MB / 3.848 GB, free: 35.96 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.02822/12.94, allocations: 13.66 MB / 3.861 GB, free: 27.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008235/12.95, allocations: 2.033 MB / 3.863 GB, free: 27.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05883/13.01, allocations: 18.82 MB / 3.882 GB, free: 32.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006364/13.01, allocations: 1.593 MB / 3.883 GB, free: 31.96 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00169/13.02, allocations: 175.5 kB / 3.883 GB, free: 31.92 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 6.482e-06/13.02, allocations: 0 / 3.883 GB, free: 31.92 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.04456/13.06, allocations: 8.33 MB / 3.892 GB, free: 30.72 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002384/13.06, allocations: 256.6 kB / 3.892 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003906/13.06, allocations: 1.449 MB / 3.893 GB, free: 30.26 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006839/13.06, allocations: 58.27 kB / 3.893 GB, free: 30.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001098/13.07, allocations: 0.8218 MB / 3.894 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001019/13.07, allocations: 0.5603 MB / 3.895 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/13.07, allocations: 33.56 kB / 3.895 GB, free: 29.61 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002783/13.07, allocations: 387.6 kB / 3.895 GB, free: 29.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004162/13.07, allocations: 1.016 MB / 3.896 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00497/13.08, allocations: 1.464 MB / 3.897 GB, free: 28.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00479/13.08, allocations: 1.266 MB / 3.899 GB, free: 28.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.867e-05/13.08, allocations: 3.906 kB / 3.899 GB, free: 28.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01337/13.1, allocations: 3.005 MB / 3.902 GB, free: 28.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004551/13.1, allocations: 479.9 kB / 3.902 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.816e-05/13.1, allocations: 9.938 kB / 3.902 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005677/13.1, allocations: 0.5351 MB / 3.903 GB, free: 28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004812/13.11, allocations: 453.7 kB / 3.903 GB, free: 28 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004021/13.11, allocations: 2.714 MB / 3.906 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004347/13.11, allocations: 257.6 kB / 3.906 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003084/13.11, allocations: 105 kB / 3.906 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/13.11, allocations: 7.219 kB / 3.906 GB, free: 25.92 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00794/13.12, allocations: 2.743 MB / 3.909 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.576e-05/13.12, allocations: 9.688 kB / 3.909 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/13.12, allocations: 211.2 kB / 3.909 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003428/13.13, allocations: 465.5 kB / 3.909 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/13.13, allocations: 1.878 MB / 3.911 GB, free: 24.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003104/13.13, allocations: 254.7 kB / 3.911 GB, free: 24.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/13.13, allocations: 95.88 kB / 3.912 GB, free: 24.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.001953/13.13, allocations: 0.7143 MB / 3.912 GB, free: 23.94 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005692/13.14, allocations: 190.3 kB / 3.912 GB, free: 23.85 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0154/13.15, allocations: 7.448 MB / 3.92 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.838e-05/13.15, allocations: 84.56 kB / 3.92 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/13.15, allocations: 0 / 3.92 GB, free: 23.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01265/13.16, allocations: 6.519 MB / 3.926 GB, free: 22.25 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02428/13.19, allocations: 11.21 MB / 3.937 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.221e-05/13.19, allocations: 6.25 kB / 3.937 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002877/13.19, allocations: 358.2 kB / 3.937 GB, free: 21.15 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004271/13.2, allocations: 1.2 MB / 3.939 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005153/13.2, allocations: 67.53 kB / 3.939 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003523/13.2, allocations: 3.214 MB / 3.942 GB, free: 18.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/13.2, allocations: 11.89 kB / 3.942 GB, free: 18.98 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01497/13.21, allocations: 7.166 MB / 3.949 GB, free: 18.14 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003182/13.22, allocations: 0.7081 MB / 3.95 GB, free: 17.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008814/13.22, allocations: 56.52 kB / 3.95 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002697/13.22, allocations: 182.7 kB / 3.95 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/13.22, allocations: 157.7 kB / 3.95 GB, free: 17.83 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002276/13.22, allocations: 74.17 kB / 3.95 GB, free: 17.83 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002304/13.22, allocations: 1.08 MB / 3.951 GB, free: 17.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.01e-07/13.22, allocations: 0 / 3.951 GB, free: 17.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01193/13.24, allocations: 2.56 MB / 3.954 GB, free: 17.58 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse32.phase,$cse32.region,$cse34.region3boundary,$cse35.region3boundary,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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 (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01496/13.25, allocations: 2.691 MB / 3.956 GB, free: 17.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01289/13.26, allocations: 4.867 MB / 3.961 GB, free: 16.97 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.371e-05/13.26, allocations: 0 / 3.961 GB, free: 16.97 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005619/13.27, allocations: 2.509 MB / 3.963 GB, free: 16.82 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007514/13.28, allocations: 0.843 MB / 3.964 GB, free: 16.8 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8955/14.17, allocations: 130.1 MB / 4.091 GB, free: 60.67 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0027/14.18, allocations: 2.128 MB / 4.093 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001267/14.18, allocations: 191 kB / 4.093 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of SimCode: time 2.054e-06/14.18, allocations: 0 / 4.093 GB, free: 59.93 MB / 0.5417 GB Notification: Performance of Templates: time 0.1926/14.37, allocations: 109.6 MB / 4.2 GB, free: 35.12 MB / 0.5417 GB