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.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.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.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.325/2.325, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006082/0.0006082, allocations: 19.98 kB / 314.9 MB, free: 9.609 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3743/0.375, allocations: 54.86 MB / 369.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.777/8.152, allocations: 2.656 GB / 3.017 GB, free: 36.07 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002824/8.153, allocations: 82.59 kB / 3.017 GB, free: 36.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639/12.79, allocations: 0.8038 GB / 3.821 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.965e-06/12.79, allocations: 0.5625 kB / 3.821 GB, free: 36.33 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004603/12.79, allocations: 64.8 kB / 3.821 GB, free: 36.33 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.02391/12.82, allocations: 4.242 MB / 3.825 GB, free: 35.27 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/12.82, allocations: 10 kB / 3.825 GB, free: 35.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009171/12.83, allocations: 0.8391 MB / 3.826 GB, free: 35.12 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009423/12.84, allocations: 2.191 MB / 3.828 GB, free: 34.67 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003794/12.84, allocations: 173.5 kB / 3.828 GB, free: 34.67 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/12.84, allocations: 202.7 kB / 3.828 GB, free: 34.66 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/12.85, allocations: 3.731 MB / 3.832 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.104e-05/12.85, allocations: 4.875 kB / 3.832 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004843/12.85, allocations: 85.81 kB / 3.832 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003448/12.85, allocations: 168.5 kB / 3.832 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01409/12.87, allocations: 3.542 MB / 3.836 GB, free: 34.09 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.03255/12.9, allocations: 14.77 MB / 3.85 GB, free: 25.52 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008341/12.91, allocations: 2.196 MB / 3.852 GB, free: 25.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05927/12.97, allocations: 18.89 MB / 3.871 GB, free: 29.67 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006791/12.97, allocations: 1.676 MB / 3.872 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001892/12.98, allocations: 195.1 kB / 3.873 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 8.316e-06/12.98, allocations: 3.781 kB / 3.873 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.042/13.02, allocations: 9.166 MB / 3.882 GB, free: 28.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002934/13.02, allocations: 412.3 kB / 3.882 GB, free: 27.72 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003653/13.02, allocations: 1.705 MB / 3.884 GB, free: 27.53 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006265/13.02, allocations: 60.92 kB / 3.884 GB, free: 27.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009707/13.02, allocations: 0.9248 MB / 3.885 GB, free: 27.05 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009326/13.02, allocations: 0.5822 MB / 3.885 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/13.02, allocations: 41.69 kB / 3.885 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002622/13.02, allocations: 396.8 kB / 3.886 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003755/13.03, allocations: 1.166 MB / 3.887 GB, free: 26.37 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004352/13.03, allocations: 1.633 MB / 3.888 GB, free: 25.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004356/13.04, allocations: 1.424 MB / 3.89 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.801e-05/13.04, allocations: 2.688 kB / 3.89 GB, free: 25.78 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01137/13.05, allocations: 3.396 MB / 3.893 GB, free: 25.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005721/13.05, allocations: 487.1 kB / 3.893 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.93e-05/13.05, allocations: 19.58 kB / 3.893 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01293/13.06, allocations: 0.9928 MB / 3.894 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003902/13.07, allocations: 469.2 kB / 3.895 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004396/13.07, allocations: 3.164 MB / 3.898 GB, free: 22.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004083/13.08, allocations: 237.3 kB / 3.898 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006005/13.08, allocations: 114.2 kB / 3.898 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/13.08, allocations: 3.75 kB / 3.898 GB, free: 22.88 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01042/13.09, allocations: 3.184 MB / 3.901 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.598e-05/13.09, allocations: 18.25 kB / 3.901 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002032/13.09, allocations: 353 kB / 3.902 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003849/13.09, allocations: 498.3 kB / 3.902 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005941/13.1, allocations: 4.096 MB / 3.906 GB, free: 19.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/13.1, allocations: 233.1 kB / 3.906 GB, free: 19.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003322/13.1, allocations: 101.7 kB / 3.907 GB, free: 19.88 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,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,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.002256/13.1, allocations: 0.7643 MB / 3.907 GB, free: 19.61 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006915/13.1, allocations: 217.6 kB / 3.908 GB, free: 19.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/13.12, allocations: 7.857 MB / 3.915 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.587e-05/13.12, allocations: 85.19 kB / 3.915 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/13.12, allocations: 0 / 3.915 GB, free: 18.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01359/13.14, allocations: 6.877 MB / 3.922 GB, free: 17.84 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02449/13.16, allocations: 10.9 MB / 3.933 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.526e-05/13.16, allocations: 3.75 kB / 3.933 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002915/13.16, allocations: 343.2 kB / 3.933 GB, free: 17.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008096/13.17, allocations: 2.143 MB / 3.935 GB, free: 16.94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000577/13.17, allocations: 64.03 kB / 3.935 GB, free: 16.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005227/13.18, allocations: 4.113 MB / 3.939 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/13.18, allocations: 6.328 kB / 3.939 GB, free: 14.84 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/13.2, allocations: 7.985 MB / 3.947 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002533/13.2, allocations: 0.7517 MB / 3.948 GB, free: 13.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001024/13.2, allocations: 59.05 kB / 3.948 GB, free: 13.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003393/13.2, allocations: 197.2 kB / 3.948 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006053/13.2, allocations: 137.1 kB / 3.948 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002542/13.2, allocations: 73.66 kB / 3.948 GB, free: 13.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002993/13.21, allocations: 1.254 MB / 3.949 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.12e-07/13.21, allocations: 0 / 3.949 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01434/13.22, allocations: 2.825 MB / 3.952 GB, free: 13.25 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.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.01623/13.24, allocations: 2.845 MB / 3.955 GB, free: 12.67 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01609/13.25, allocations: 5.593 MB / 3.96 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/13.25, allocations: 2.219 kB / 3.96 GB, free: 11.34 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005945/13.26, allocations: 2.428 MB / 3.963 GB, free: 10.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008214/13.27, allocations: 0.8865 MB / 3.964 GB, free: 10.09 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.8252/14.09, allocations: 130.8 MB / 4.091 GB, free: 56.4 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003294/14.1, allocations: 2.246 MB / 4.093 GB, free: 55.62 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00131/14.1, allocations: 200.3 kB / 4.094 GB, free: 55.61 MB / 0.5417 GB Notification: Performance of SimCode: time 1.483e-06/14.1, allocations: 0 / 4.094 GB, free: 55.61 MB / 0.5417 GB Notification: Performance of Templates: time 0.2179/14.32, allocations: 117.1 MB / 4.208 GB, free: 5.691 MB / 0.5417 GB