Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1") Notification: Performance of loadModel(ModelicaTest): time 1.846/1.846, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004467/0.0004468, allocations: 16 kB / 282.6 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2856, allocations: 48.7 MB / 331.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.307/6.593, allocations: 2.545 GB / 2.869 GB, free: 75.08 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002442/6.593, allocations: 81.83 kB / 2.869 GB, free: 75.08 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397/9.991, allocations: 0.7776 GB / 3.647 GB, free: 23.97 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.79e-06/9.991, allocations: 3.375 kB / 3.647 GB, free: 23.97 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00032/9.991, allocations: 72.3 kB / 3.647 GB, free: 23.96 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01707/10.01, allocations: 4.114 MB / 3.651 GB, free: 21.87 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/10.01, allocations: 6.875 kB / 3.651 GB, free: 21.87 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007856/10.02, allocations: 0.8105 MB / 3.651 GB, free: 21.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007215/10.02, allocations: 2.1 MB / 3.653 GB, free: 21.27 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003365/10.02, allocations: 174.8 kB / 3.654 GB, free: 21.26 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/10.02, allocations: 203.2 kB / 3.654 GB, free: 21.26 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/10.04, allocations: 3.706 MB / 3.657 GB, free: 20.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.668e-05/10.04, allocations: 6.562 kB / 3.657 GB, free: 20.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000459/10.04, allocations: 87.53 kB / 3.658 GB, free: 20.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002433/10.04, allocations: 163.1 kB / 3.658 GB, free: 20.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01202/10.05, allocations: 3.534 MB / 3.661 GB, free: 20.67 MB / 458.7 MB 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.02485/10.07, allocations: 14.74 MB / 3.676 GB, free: 11.98 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007077/10.08, allocations: 2.207 MB / 3.678 GB, free: 11.94 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04314/10.12, allocations: 18.85 MB / 3.696 GB, free: 15.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005491/10.13, allocations: 1.662 MB / 3.698 GB, free: 15.48 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001726/10.13, allocations: 191.6 kB / 3.698 GB, free: 15.4 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 9.227e-06/10.13, allocations: 0 / 3.698 GB, free: 15.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.03366/10.17, allocations: 9.161 MB / 3.707 GB, free: 12.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002818/10.17, allocations: 417.8 kB / 3.707 GB, free: 12.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002902/10.17, allocations: 1.512 MB / 3.709 GB, free: 11.05 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000481/10.17, allocations: 64.56 kB / 3.709 GB, free: 10.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008217/10.17, allocations: 0.916 MB / 3.71 GB, free: 10.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007436/10.17, allocations: 0.5682 MB / 3.71 GB, free: 9.602 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/10.17, allocations: 40 kB / 3.71 GB, free: 9.562 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002559/10.17, allocations: 393.5 kB / 3.711 GB, free: 9.195 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002736/10.17, allocations: 1.156 MB / 3.712 GB, free: 8.23 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003231/10.18, allocations: 1.623 MB / 3.713 GB, free: 6.637 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00332/10.18, allocations: 1.404 MB / 3.715 GB, free: 5.383 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.821e-05/10.18, allocations: 7.141 kB / 3.715 GB, free: 5.379 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.009819/10.19, allocations: 3.413 MB / 3.718 GB, free: 2.391 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002567/10.19, allocations: 4.422 MB / 3.722 GB, free: 13.63 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.886e-05/10.19, allocations: 15.84 kB / 3.722 GB, free: 13.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006578/10.2, allocations: 0.9956 MB / 3.723 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00282/10.2, allocations: 471.3 kB / 3.724 GB, free: 12.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004229/10.21, allocations: 3.171 MB / 3.727 GB, free: 9.445 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00319/10.21, allocations: 230.9 kB / 3.727 GB, free: 9.266 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005912/10.21, allocations: 107.2 kB / 3.727 GB, free: 9.172 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/10.21, allocations: 5.875 kB / 3.727 GB, free: 9.168 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009743/10.22, allocations: 3.198 MB / 3.73 GB, free: 6.391 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-05/10.22, allocations: 18.8 kB / 3.73 GB, free: 6.375 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001718/10.22, allocations: 356 kB / 3.731 GB, free: 6.094 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/10.23, allocations: 495.8 kB / 3.731 GB, free: 5.684 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00574/10.23, allocations: 4.112 MB / 3.735 GB, free: 1.633 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/10.23, allocations: 228.1 kB / 3.735 GB, free: 1.453 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004554/10.23, allocations: 106.7 kB / 3.736 GB, free: 1.359 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,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.002488/10.24, allocations: 0.7573 MB / 3.736 GB, free: 0.6523 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00073/10.24, allocations: 209.5 kB / 3.736 GB, free: 456 kB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3344/10.57, allocations: 7.872 MB / 3.744 GB, free: 53.32 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.965e-05/10.57, allocations: 84.8 kB / 3.744 GB, free: 53.32 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/10.57, allocations: 0 / 3.744 GB, free: 53.32 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01348/10.59, allocations: 6.888 MB / 3.751 GB, free: 52.42 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01964/10.61, allocations: 10.9 MB / 3.762 GB, free: 51.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/10.61, allocations: 0 / 3.762 GB, free: 51.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00194/10.61, allocations: 342.6 kB / 3.762 GB, free: 51.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006413/10.61, allocations: 2.145 MB / 3.764 GB, free: 51.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004589/10.61, allocations: 66.28 kB / 3.764 GB, free: 51.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003924/10.62, allocations: 4.111 MB / 3.768 GB, free: 49.61 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.951e-06/10.62, allocations: 6.391 kB / 3.768 GB, free: 49.6 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/10.63, allocations: 7.952 MB / 3.776 GB, free: 49.09 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002372/10.64, allocations: 0.7474 MB / 3.777 GB, free: 48.83 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/10.64, allocations: 55.91 kB / 3.777 GB, free: 48.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002847/10.64, allocations: 195.8 kB / 3.777 GB, free: 48.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006076/10.64, allocations: 135.5 kB / 3.777 GB, free: 48.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002862/10.64, allocations: 73.77 kB / 3.777 GB, free: 48.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002559/10.64, allocations: 1.254 MB / 3.778 GB, free: 48.67 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.069e-06/10.64, allocations: 0 / 3.778 GB, free: 48.67 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01123/10.65, allocations: 2.802 MB / 3.781 GB, free: 48.67 MB / 490.7 MB 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: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,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.01234/10.67, allocations: 2.831 MB / 3.784 GB, free: 48.42 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01234/10.68, allocations: 5.475 MB / 3.789 GB, free: 47.84 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.148e-06/10.68, allocations: 2.562 kB / 3.789 GB, free: 47.84 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004667/10.68, allocations: 2.377 MB / 3.791 GB, free: 47.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005471/10.69, allocations: 0.8767 MB / 3.792 GB, free: 47.67 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6043/11.29, allocations: 128.3 MB / 3.918 GB, free: 50.07 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002752/11.3, allocations: 2.249 MB / 3.92 GB, free: 49.33 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001125/11.3, allocations: 194.8 kB / 3.92 GB, free: 49.32 MB / 490.7 MB Notification: Performance of SimCode: time 1.99e-06/11.3, allocations: 0 / 3.92 GB, free: 49.32 MB / 490.7 MB Notification: Performance of Templates: time 0.1693/11.47, allocations: 116.5 MB / 4.034 GB, free: 31.09 MB / 490.7 MB