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.196/2.196, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.512e-05/2.528e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3221, allocations: 54.86 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.841/6.164, allocations: 2.656 GB / 3.012 GB, free: 15.23 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/6.164, allocations: 75.97 kB / 3.012 GB, free: 15.16 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.94/10.1, allocations: 0.7947 GB / 3.807 GB, free: 37.55 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.021e-06/10.1, allocations: 0 / 3.807 GB, free: 37.55 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002975/10.1, allocations: 68.91 kB / 3.807 GB, free: 37.55 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01623/10.12, allocations: 3.958 MB / 3.811 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/10.12, allocations: 10.16 kB / 3.811 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007922/10.13, allocations: 0.8385 MB / 3.811 GB, free: 35.77 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00714/10.14, allocations: 2.089 MB / 3.813 GB, free: 35.31 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/10.14, allocations: 173.2 kB / 3.814 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009175/10.14, allocations: 200.2 kB / 3.814 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01128/10.15, allocations: 3.695 MB / 3.817 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.563e-05/10.15, allocations: 6.406 kB / 3.817 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004403/10.15, allocations: 84.75 kB / 3.817 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003082/10.15, allocations: 168.2 kB / 3.818 GB, free: 34.75 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/10.16, allocations: 3.42 MB / 3.821 GB, free: 34.73 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or 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.0245/10.19, allocations: 14.78 MB / 3.835 GB, free: 26.13 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005976/10.19, allocations: 2.117 MB / 3.837 GB, free: 26.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002141/10.19, allocations: 1.056 MB / 3.839 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04175/10.24, allocations: 18.94 MB / 3.857 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005203/10.24, allocations: 1.692 MB / 3.859 GB, free: 14.13 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001599/10.24, allocations: 192.9 kB / 3.859 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=162): time 6.499e-06/10.24, allocations: 0 / 3.859 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of matching and sorting (n=174): time 0.02567/10.27, allocations: 7.33 MB / 3.866 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007336/10.27, allocations: 417.9 kB / 3.866 GB, free: 28.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003069/10.27, allocations: 1.491 MB / 3.868 GB, free: 28.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005033/10.27, allocations: 59.11 kB / 3.868 GB, free: 28.37 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008605/10.27, allocations: 0.9304 MB / 3.869 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008297/10.27, allocations: 0.5759 MB / 3.869 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002249/10.27, allocations: 44.19 kB / 3.869 GB, free: 27.54 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002677/10.27, allocations: 392.7 kB / 3.87 GB, free: 27.23 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002283/10.28, allocations: 1.06 MB / 3.871 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002667/10.28, allocations: 1.531 MB / 3.872 GB, free: 26.72 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003175/10.28, allocations: 1.318 MB / 3.874 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-05/10.28, allocations: 8.406 kB / 3.874 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.007616/10.29, allocations: 3.179 MB / 3.877 GB, free: 26.41 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002175/10.29, allocations: 4.438 MB / 3.881 GB, free: 21.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.616e-05/10.29, allocations: 17.16 kB / 3.881 GB, free: 21.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006616/10.3, allocations: 0.9592 MB / 3.882 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/10.3, allocations: 472 kB / 3.882 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003934/10.31, allocations: 3.158 MB / 3.886 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/10.31, allocations: 242.2 kB / 3.886 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005512/10.31, allocations: 109.7 kB / 3.886 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/10.31, allocations: 7.688 kB / 3.886 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007204/10.32, allocations: 2.972 MB / 3.889 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.377e-05/10.32, allocations: 20.8 kB / 3.889 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00156/10.32, allocations: 338.2 kB / 3.889 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003148/10.32, allocations: 497.2 kB / 3.89 GB, free: 19.48 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005032/10.33, allocations: 4.039 MB / 3.894 GB, free: 16.67 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002456/10.33, allocations: 229 kB / 3.894 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003866/10.33, allocations: 104.8 kB / 3.894 GB, free: 16.66 MB / 0.5261 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 () * 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.0007908/10.33, allocations: 311.4 kB / 3.894 GB, free: 16.47 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005865/10.33, allocations: 208 kB / 3.894 GB, free: 16.37 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01291/10.35, allocations: 7.739 MB / 3.902 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.079e-05/10.35, allocations: 86.44 kB / 3.902 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.032e-06/10.35, allocations: 0 / 3.902 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0106/10.36, allocations: 6.774 MB / 3.909 GB, free: 14.65 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01824/10.37, allocations: 10.79 MB / 3.919 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/10.37, allocations: 0 / 3.919 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00211/10.38, allocations: 343.4 kB / 3.92 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006916/10.38, allocations: 2.498 MB / 3.922 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004738/10.38, allocations: 63.33 kB / 3.922 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004677/10.39, allocations: 4.108 MB / 3.926 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.114e-06/10.39, allocations: 2.266 kB / 3.926 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01332/10.4, allocations: 7.673 MB / 3.934 GB, free: 10.95 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002063/10.4, allocations: 0.759 MB / 3.934 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006244/10.4, allocations: 51.45 kB / 3.934 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/10.41, allocations: 196.6 kB / 3.934 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000374/10.41, allocations: 143.8 kB / 3.935 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002355/10.41, allocations: 68.45 kB / 3.935 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002474/10.41, allocations: 1.238 MB / 3.936 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.217e-06/10.41, allocations: 0 / 3.936 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01133/10.42, allocations: 2.83 MB / 3.939 GB, free: 10.04 MB / 0.5261 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) * 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.01261/10.43, allocations: 2.835 MB / 3.941 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01125/10.45, allocations: 5.308 MB / 3.947 GB, free: 7.809 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.466e-06/10.45, allocations: 0 / 3.947 GB, free: 7.809 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004596/10.45, allocations: 2.352 MB / 3.949 GB, free: 6.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005924/10.46, allocations: 0.8851 MB / 3.95 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6528/11.11, allocations: 128.8 MB / 4.076 GB, free: 59.39 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00228/11.11, allocations: 2.246 MB / 4.078 GB, free: 58.61 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/11.11, allocations: 196.5 kB / 4.078 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of SimCode: time 1.733e-06/11.11, allocations: 0 / 4.078 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of Templates: time 0.1529/11.27, allocations: 116.7 MB / 4.192 GB, free: 7.309 MB / 0.5417 GB