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.BranchingPipes1.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.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.436/2.436, allocations: 234.9 MB / 251.1 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005806/0.0005807, allocations: 11.98 kB / 314.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3593/0.3599, allocations: 54.87 MB / 369.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.954/8.314, allocations: 2.656 GB / 3.017 GB, free: 36.55 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/8.315, allocations: 82.47 kB / 3.017 GB, free: 36.51 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138/12.45, allocations: 0.7969 GB / 3.814 GB, free: 6.562 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.066e-06/12.45, allocations: 0 / 3.814 GB, free: 6.562 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0004306/12.45, allocations: 71.86 kB / 3.814 GB, free: 6.492 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.02401/12.48, allocations: 4.24 MB / 3.818 GB, free: 2.168 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/12.48, allocations: 8.031 kB / 3.818 GB, free: 2.16 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008946/12.49, allocations: 0.8436 MB / 3.819 GB, free: 1.312 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4458/12.93, allocations: 2.094 MB / 3.821 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000422/12.93, allocations: 178.2 kB / 3.821 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001296/12.93, allocations: 198.6 kB / 3.821 GB, free: 34.25 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01464/12.95, allocations: 3.739 MB / 3.825 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-05/12.95, allocations: 5.969 kB / 3.825 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004934/12.95, allocations: 85.58 kB / 3.825 GB, free: 33.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003668/12.95, allocations: 171.2 kB / 3.825 GB, free: 33.69 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01384/12.96, allocations: 3.543 MB / 3.829 GB, free: 33.68 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.03085/12.99, allocations: 14.77 MB / 3.843 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008174/13, allocations: 2.195 MB / 3.845 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05919/13.06, allocations: 18.88 MB / 3.864 GB, free: 29.46 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007127/13.07, allocations: 1.686 MB / 3.865 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002064/13.07, allocations: 188.8 kB / 3.866 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=162): time 9.538e-06/13.07, allocations: 0 / 3.866 GB, free: 29.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.04046/13.11, allocations: 9.16 MB / 3.875 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000267/13.11, allocations: 412.8 kB / 3.875 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003465/13.12, allocations: 1.716 MB / 3.877 GB, free: 27.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006291/13.12, allocations: 59.52 kB / 3.877 GB, free: 27.37 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00101/13.12, allocations: 0.9203 MB / 3.878 GB, free: 27 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009986/13.12, allocations: 0.5909 MB / 3.878 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/13.12, allocations: 36.59 kB / 3.878 GB, free: 26.71 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002416/13.12, allocations: 391.8 kB / 3.879 GB, free: 26.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003528/13.12, allocations: 1.162 MB / 3.88 GB, free: 26.39 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003981/13.13, allocations: 1.643 MB / 3.881 GB, free: 25.89 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004179/13.13, allocations: 1.415 MB / 3.883 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-05/13.13, allocations: 5.906 kB / 3.883 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=263) (initialization): time 0.01075/13.14, allocations: 3.401 MB / 3.886 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003567/13.14, allocations: 486 kB / 3.886 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-05/13.14, allocations: 20.34 kB / 3.887 GB, free: 25.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008353/13.15, allocations: 0.985 MB / 3.887 GB, free: 25.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003747/13.15, allocations: 474.1 kB / 3.888 GB, free: 25.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004319/13.16, allocations: 3.168 MB / 3.891 GB, free: 22.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003971/13.16, allocations: 229.5 kB / 3.891 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004258/13.16, allocations: 112.1 kB / 3.891 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/13.16, allocations: 4.781 kB / 3.891 GB, free: 22.91 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01015/13.17, allocations: 3.183 MB / 3.894 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.429e-05/13.17, allocations: 10.12 kB / 3.894 GB, free: 22.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/13.18, allocations: 365.3 kB / 3.895 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003867/13.18, allocations: 495.5 kB / 3.895 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006041/13.19, allocations: 4.099 MB / 3.899 GB, free: 19.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003092/13.19, allocations: 236.6 kB / 3.9 GB, free: 19.91 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000342/13.19, allocations: 107.2 kB / 3.9 GB, free: 19.91 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 () * 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.002237/13.19, allocations: 0.767 MB / 3.9 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006745/13.19, allocations: 213.8 kB / 3.901 GB, free: 19.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01658/13.21, allocations: 7.853 MB / 3.908 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-05/13.21, allocations: 82.92 kB / 3.908 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/13.21, allocations: 1.094 kB / 3.908 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01368/13.22, allocations: 6.875 MB / 3.915 GB, free: 17.92 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02271/13.25, allocations: 10.9 MB / 3.926 GB, free: 17.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/13.25, allocations: 0 / 3.926 GB, free: 17.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002856/13.25, allocations: 348.2 kB / 3.926 GB, free: 17.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008078/13.26, allocations: 2.146 MB / 3.928 GB, free: 17.03 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005772/13.26, allocations: 66.62 kB / 3.928 GB, free: 17.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/13.26, allocations: 4.109 MB / 3.932 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/13.26, allocations: 1.484 kB / 3.932 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01714/13.28, allocations: 7.99 MB / 3.94 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002401/13.28, allocations: 0.7528 MB / 3.941 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000798/13.28, allocations: 51.81 kB / 3.941 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002834/13.29, allocations: 193 kB / 3.941 GB, free: 13.89 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004194/13.29, allocations: 151.1 kB / 3.941 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002311/13.29, allocations: 70.56 kB / 3.941 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002756/13.29, allocations: 1.258 MB / 3.942 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.81e-07/13.29, allocations: 0 / 3.942 GB, free: 13.74 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01287/13.3, allocations: 2.825 MB / 3.945 GB, free: 13.61 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) * 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.01656/13.32, allocations: 2.854 MB / 3.948 GB, free: 13.31 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01558/13.33, allocations: 5.593 MB / 3.953 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/13.33, allocations: 3.938 kB / 3.953 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005926/13.34, allocations: 2.426 MB / 3.956 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008134/13.35, allocations: 0.8815 MB / 3.957 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.9209/14.27, allocations: 130.7 MB / 4.084 GB, free: 56.29 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00374/14.27, allocations: 2.247 MB / 4.086 GB, free: 55.5 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001297/14.27, allocations: 198.6 kB / 4.087 GB, free: 55.5 MB / 0.5417 GB Notification: Performance of SimCode: time 1.653e-06/14.27, allocations: 0 / 4.087 GB, free: 55.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.1931/14.47, allocations: 117 MB / 4.201 GB, free: 9.148 MB / 0.5417 GB