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.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 1.982/1.982, allocations: 209.3 MB / 224.8 MB, free: 1.211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004336/0.0004337, allocations: 12 kB / 282.6 MB, free: 9.723 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08702/0.08748, allocations: 48.71 MB / 331.3 MB, free: 8.926 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.175/6.263, allocations: 2.566 GB / 2.89 GB, free: 43.52 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001994/6.263, allocations: 78.84 kB / 2.89 GB, free: 43.48 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.024/10.29, allocations: 0.8821 GB / 3.772 GB, free: 28.23 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.09e-06/10.29, allocations: 0 / 3.772 GB, free: 28.23 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002592/10.29, allocations: 59.61 kB / 3.772 GB, free: 28.22 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01538/10.3, allocations: 4.108 MB / 3.776 GB, free: 25.95 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/10.3, allocations: 8.5 kB / 3.776 GB, free: 25.95 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008308/10.31, allocations: 0.8515 MB / 3.777 GB, free: 25.73 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007143/10.32, allocations: 2.106 MB / 3.779 GB, free: 24.79 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003011/10.32, allocations: 185.8 kB / 3.779 GB, free: 24.71 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008264/10.32, allocations: 202.3 kB / 3.779 GB, free: 24.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01113/10.33, allocations: 3.644 MB / 3.783 GB, free: 23.16 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.703e-05/10.33, allocations: 11.02 kB / 3.783 GB, free: 23.15 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003913/10.33, allocations: 87.02 kB / 3.783 GB, free: 23.1 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002436/10.33, allocations: 170.8 kB / 3.783 GB, free: 23.07 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0113/10.34, allocations: 3.326 MB / 3.786 GB, free: 22.11 MB / 474.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.02365/10.37, allocations: 15.44 MB / 3.802 GB, free: 10.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007875/10.37, allocations: 2.786 MB / 3.804 GB, free: 9.066 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03959/10.41, allocations: 18.68 MB / 3.823 GB, free: 7.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006257/10.42, allocations: 1.701 MB / 3.824 GB, free: 5.883 MB / 490.7 MB Notification: Performance of pre-optimization done (n=169): time 6.554e-06/10.42, allocations: 0 / 3.824 GB, free: 5.883 MB / 490.7 MB Notification: Performance of matching and sorting (n=185): time 0.3501/10.77, allocations: 9.164 MB / 3.833 GB, free: 44.64 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.292e-05/10.77, allocations: 261.9 kB / 3.833 GB, free: 44.36 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/10.77, allocations: 1.362 MB / 3.835 GB, free: 44.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000484/10.77, allocations: 62.08 kB / 3.835 GB, free: 44.16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008012/10.78, allocations: 0.9167 MB / 3.836 GB, free: 43.79 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006974/10.78, allocations: 0.6141 MB / 3.836 GB, free: 43.48 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001995/10.78, allocations: 42.88 kB / 3.836 GB, free: 43.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001719/10.78, allocations: 396.8 kB / 3.837 GB, free: 43.16 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003145/10.78, allocations: 1.12 MB / 3.838 GB, free: 43.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00392/10.78, allocations: 1.628 MB / 3.839 GB, free: 42.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003631/10.79, allocations: 1.376 MB / 3.841 GB, free: 42.57 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/10.79, allocations: 2.906 kB / 3.841 GB, free: 42.57 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.00894/10.8, allocations: 3.219 MB / 3.844 GB, free: 42.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009945/10.8, allocations: 4.86 MB / 3.849 GB, free: 37.31 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.944e-05/10.8, allocations: 10.59 kB / 3.849 GB, free: 37.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/10.8, allocations: 257.8 kB / 3.849 GB, free: 37.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/10.8, allocations: 0.5244 MB / 3.849 GB, free: 37.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001598/10.8, allocations: 2.432 MB / 3.852 GB, free: 35.21 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003583/10.81, allocations: 308 kB / 3.852 GB, free: 35.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004945/10.81, allocations: 110.7 kB / 3.852 GB, free: 35.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/10.81, allocations: 3.812 kB / 3.852 GB, free: 35.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008702/10.82, allocations: 3.062 MB / 3.855 GB, free: 35.05 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.554e-05/10.82, allocations: 16.5 kB / 3.855 GB, free: 35.05 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/10.82, allocations: 250.3 kB / 3.855 GB, free: 35.02 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002919/10.82, allocations: 0.5159 MB / 3.856 GB, free: 35.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00143/10.82, allocations: 2.44 MB / 3.858 GB, free: 32.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002999/10.82, allocations: 310.4 kB / 3.859 GB, free: 32.94 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003399/10.83, allocations: 104.4 kB / 3.859 GB, free: 32.94 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002003/10.83, allocations: 0.7599 MB / 3.859 GB, free: 32.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005961/10.83, allocations: 203.6 kB / 3.86 GB, free: 32.58 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01485/10.84, allocations: 7.558 MB / 3.867 GB, free: 31.93 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.742e-05/10.84, allocations: 85.16 kB / 3.867 GB, free: 31.93 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/10.84, allocations: 0 / 3.867 GB, free: 31.93 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01193/10.85, allocations: 6.578 MB / 3.873 GB, free: 31.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0239/10.88, allocations: 12.19 MB / 3.885 GB, free: 29.47 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-05/10.88, allocations: 6.688 kB / 3.885 GB, free: 29.47 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002415/10.88, allocations: 438.8 kB / 3.886 GB, free: 29.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002025/10.88, allocations: 365 kB / 3.886 GB, free: 29.43 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004691/10.88, allocations: 68.23 kB / 3.886 GB, free: 29.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/10.89, allocations: 2.533 MB / 3.889 GB, free: 27.36 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.058e-06/10.89, allocations: 7.875 kB / 3.889 GB, free: 27.36 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01409/10.9, allocations: 7.76 MB / 3.896 GB, free: 25.96 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002058/10.9, allocations: 0.7505 MB / 3.897 GB, free: 25.62 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005469/10.9, allocations: 58.97 kB / 3.897 GB, free: 25.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002168/10.9, allocations: 225.7 kB / 3.897 GB, free: 25.61 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004017/10.9, allocations: 167.9 kB / 3.897 GB, free: 25.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002336/10.91, allocations: 84.48 kB / 3.898 GB, free: 25.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002168/10.91, allocations: 1.146 MB / 3.899 GB, free: 25.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.95e-07/10.91, allocations: 0 / 3.899 GB, free: 25.45 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01074/10.92, allocations: 2.719 MB / 3.901 GB, free: 25.35 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse12.phase,$cse12.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.region3boundary,$cse39.region3boundary,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.region3boundary,$cse44.region3boundary,$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,junctionIdeal.medium.phase) * 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 (212): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 23 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01172/10.93, allocations: 2.836 MB / 3.904 GB, free: 25.07 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/10.94, allocations: 5.254 MB / 3.909 GB, free: 24.73 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/10.94, allocations: 0 / 3.909 GB, free: 24.73 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00514/10.95, allocations: 2.696 MB / 3.912 GB, free: 24.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006131/10.95, allocations: 0.9842 MB / 3.913 GB, free: 24.56 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6023/11.56, allocations: 128.6 MB / 4.038 GB, free: 54.33 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00217/11.56, allocations: 2.242 MB / 4.041 GB, free: 53.58 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001212/11.56, allocations: 210.3 kB / 4.041 GB, free: 53.58 MB / 0.4948 GB Notification: Performance of SimCode: time 1.733e-06/11.56, allocations: 0 / 4.041 GB, free: 53.58 MB / 0.4948 GB Notification: Performance of Templates: time 0.1534/11.71, allocations: 117.3 MB / 4.155 GB, free: 23.92 MB / 0.4948 GB