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.BranchingPipes14.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.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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") Notification: Performance of loadModel(ModelicaTest): time 2.652/2.652, allocations: 234.9 MB / 251.1 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004226/0.0004227, allocations: 8 kB / 314.9 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3411, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.834/8.175, allocations: 2.677 GB / 3.038 GB, free: 14.06 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/8.176, allocations: 94.47 kB / 3.038 GB, free: 14.02 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.975/13.15, allocations: 0.9046 GB / 3.943 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.885e-06/13.15, allocations: 0 / 3.943 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003059/13.15, allocations: 63.09 kB / 3.943 GB, free: 36.46 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01996/13.17, allocations: 4.238 MB / 3.947 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/13.17, allocations: 13.84 kB / 3.947 GB, free: 34.42 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009404/13.18, allocations: 0.8745 MB / 3.948 GB, free: 34.28 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008463/13.19, allocations: 2.118 MB / 3.95 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002379/13.19, allocations: 183.9 kB / 3.95 GB, free: 33.77 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000649/13.19, allocations: 204.9 kB / 3.95 GB, free: 33.76 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01167/13.2, allocations: 3.666 MB / 3.954 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.772e-05/13.2, allocations: 9.562 kB / 3.954 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000403/13.2, allocations: 90.58 kB / 3.954 GB, free: 33.19 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002991/13.2, allocations: 168.8 kB / 3.954 GB, free: 33.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01214/13.21, allocations: 3.343 MB / 3.957 GB, free: 32.95 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.02643/13.24, allocations: 15.47 MB / 3.973 GB, free: 21.16 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008861/13.25, allocations: 2.787 MB / 3.975 GB, free: 19.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0563/13.31, allocations: 18.7 MB / 3.994 GB, free: 7.289 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006541/13.31, allocations: 1.722 MB / 3.995 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=173): time 5.139e-06/13.31, allocations: 0 / 3.995 GB, free: 6.754 MB / 0.5105 GB Notification: Performance of matching and sorting (n=189): time 0.0381/13.35, allocations: 9.172 MB / 4.004 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001836/13.35, allocations: 260.9 kB / 4.004 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003409/13.35, allocations: 1.552 MB / 4.006 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006868/13.36, allocations: 57.7 kB / 4.006 GB, free: 14.13 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001123/13.36, allocations: 0.924 MB / 4.007 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001018/13.36, allocations: 0.6297 MB / 4.008 GB, free: 12.69 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002377/13.36, allocations: 40 kB / 4.008 GB, free: 12.65 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002676/13.36, allocations: 400.8 kB / 4.008 GB, free: 12.28 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003824/13.36, allocations: 1.137 MB / 4.009 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004308/13.37, allocations: 1.638 MB / 4.011 GB, free: 9.715 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004356/13.37, allocations: 1.395 MB / 4.012 GB, free: 8.461 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/13.37, allocations: 4 kB / 4.012 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0106/13.38, allocations: 3.187 MB / 4.015 GB, free: 5.645 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004574/13.38, allocations: 0.5141 MB / 4.016 GB, free: 4.957 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.756e-05/13.38, allocations: 12 kB / 4.016 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/13.38, allocations: 258 kB / 4.016 GB, free: 4.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004515/13.39, allocations: 0.5279 MB / 4.016 GB, free: 4.281 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002205/13.39, allocations: 2.44 MB / 4.019 GB, free: 1.828 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00476/13.39, allocations: 295.7 kB / 4.019 GB, free: 1.602 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004083/13.4, allocations: 115.5 kB / 4.019 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/13.4, allocations: 4 kB / 4.019 GB, free: 1.496 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4373/13.83, allocations: 3.038 MB / 4.022 GB, free: 51.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.267e-05/13.83, allocations: 11.59 kB / 4.022 GB, free: 51.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001446/13.83, allocations: 247.9 kB / 4.022 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004623/13.84, allocations: 0.5249 MB / 4.023 GB, free: 50.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/13.84, allocations: 2.434 MB / 4.025 GB, free: 48.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003983/13.84, allocations: 306.8 kB / 4.026 GB, free: 48.92 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003529/13.85, allocations: 103.8 kB / 4.026 GB, free: 48.92 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 30 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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.002203/13.85, allocations: 0.7652 MB / 4.026 GB, free: 48.66 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006574/13.85, allocations: 207.4 kB / 4.027 GB, free: 48.66 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0168/13.86, allocations: 7.55 MB / 4.034 GB, free: 48.14 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.894e-05/13.86, allocations: 86.34 kB / 4.034 GB, free: 48.14 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/13.86, allocations: 0 / 4.034 GB, free: 48.14 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01363/13.88, allocations: 6.571 MB / 4.04 GB, free: 47.24 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02679/13.91, allocations: 12.2 MB / 4.052 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/13.91, allocations: 9.531 kB / 4.052 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003244/13.91, allocations: 431.8 kB / 4.053 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/13.91, allocations: 370.8 kB / 4.053 GB, free: 45.76 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003212/13.91, allocations: 73.11 kB / 4.053 GB, free: 45.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001677/13.91, allocations: 2.53 MB / 4.056 GB, free: 43.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/13.91, allocations: 10.53 kB / 4.056 GB, free: 43.69 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01578/13.93, allocations: 7.384 MB / 4.063 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002287/13.93, allocations: 0.7583 MB / 4.064 GB, free: 42.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006641/13.93, allocations: 62.7 kB / 4.064 GB, free: 42.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002877/13.93, allocations: 220 kB / 4.064 GB, free: 42.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004395/13.94, allocations: 177.7 kB / 4.064 GB, free: 42.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002449/13.94, allocations: 77.77 kB / 4.064 GB, free: 42.59 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002439/13.94, allocations: 1.142 MB / 4.065 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.31e-07/13.94, allocations: 0 / 4.065 GB, free: 42.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0124/13.95, allocations: 2.749 MB / 4.068 GB, free: 42.45 MB / 0.5261 GB 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: 56 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase) * 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 (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.01485/13.97, allocations: 2.869 MB / 4.071 GB, free: 42.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01416/13.98, allocations: 5.364 MB / 4.076 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/13.98, allocations: 5.75 kB / 4.076 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006576/13.99, allocations: 2.747 MB / 4.079 GB, free: 41.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009062/14, allocations: 0.9787 MB / 4.08 GB, free: 41.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3573/14.35, allocations: 130.8 MB / 4.207 GB, free: 28 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002704/14.36, allocations: 2.249 MB / 4.21 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/14.36, allocations: 212.2 kB / 4.21 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of SimCode: time 1.032e-06/14.36, allocations: 4 kB / 4.21 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of Templates: time 0.7667/15.12, allocations: 118 MB / 4.325 GB, free: 52.11 MB / 0.5417 GB