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.BranchingPipes4.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,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|splitter.medium.h|splitter.medium.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.BranchingPipes4") Notification: Performance of loadModel(ModelicaTest): time 1.946/1.946, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.918e-05/1.936e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2651, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.886/6.151, allocations: 2.549 GB / 2.861 GB, free: 18.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/6.151, allocations: 79.95 kB / 2.861 GB, free: 18.48 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.23/10.38, allocations: 0.8687 GB / 3.73 GB, free: 35.62 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.379e-06/10.38, allocations: 0.9688 kB / 3.73 GB, free: 35.62 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002735/10.38, allocations: 69.25 kB / 3.73 GB, free: 35.62 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.01543/10.4, allocations: 3.903 MB / 3.734 GB, free: 33.96 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/10.4, allocations: 12.97 kB / 3.734 GB, free: 33.96 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00808/10.41, allocations: 0.8432 MB / 3.735 GB, free: 33.82 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00685/10.41, allocations: 2.059 MB / 3.737 GB, free: 33.38 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002204/10.41, allocations: 91.3 kB / 3.737 GB, free: 33.38 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007727/10.41, allocations: 118.4 kB / 3.737 GB, free: 33.38 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007026/10.42, allocations: 2.652 MB / 3.74 GB, free: 33.37 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008087/10.43, allocations: 2.868 MB / 3.742 GB, free: 32.86 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.363e-05/10.43, allocations: 10.39 kB / 3.742 GB, free: 32.85 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003591/10.43, allocations: 3.531 kB / 3.742 GB, free: 32.85 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002413/10.43, allocations: 170.1 kB / 3.743 GB, free: 32.85 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.2883/10.72, allocations: 109.5 MB / 3.849 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003754/10.72, allocations: 2.067 MB / 3.852 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001891/10.72, allocations: 0.9435 MB / 3.852 GB, free: 23.19 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04026/10.76, allocations: 17.53 MB / 3.87 GB, free: 11.64 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002494/10.77, allocations: 1.159 MB / 3.871 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=149): time 7.155e-06/10.77, allocations: 0 / 3.871 GB, free: 11.47 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165): time 0.02931/10.8, allocations: 7.787 MB / 3.878 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002479/10.8, allocations: 367.2 kB / 3.879 GB, free: 9.312 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/10.8, allocations: 1.138 MB / 3.88 GB, free: 9.133 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004389/10.8, allocations: 25.7 kB / 3.88 GB, free: 9.102 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009105/10.8, allocations: 1.005 MB / 3.881 GB, free: 8.559 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007901/10.8, allocations: 0.5356 MB / 3.881 GB, free: 8.207 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/10.8, allocations: 5.594 kB / 3.881 GB, free: 8.203 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002702/10.8, allocations: 392.4 kB / 3.882 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/10.8, allocations: 0.9856 MB / 3.883 GB, free: 7.883 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002582/10.81, allocations: 1.432 MB / 3.884 GB, free: 7.375 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01509/10.82, allocations: 2.778 MB / 3.887 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.622e-05/10.82, allocations: 2.062 kB / 3.887 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01955/10.84, allocations: 4.371 MB / 3.891 GB, free: 6.223 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002585/10.84, allocations: 4.856 MB / 3.896 GB, free: 17.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.286e-05/10.84, allocations: 15.05 kB / 3.896 GB, free: 17.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/10.84, allocations: 217.7 kB / 3.896 GB, free: 16.95 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003022/10.85, allocations: 0.5146 MB / 3.896 GB, free: 16.56 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/10.85, allocations: 2.46 MB / 3.899 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003504/10.85, allocations: 273.9 kB / 3.899 GB, free: 14.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005856/10.85, allocations: 107.4 kB / 3.899 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/10.85, allocations: 8 kB / 3.899 GB, free: 13.96 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01815/10.87, allocations: 4.018 MB / 3.903 GB, free: 11.69 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.474e-05/10.87, allocations: 14.42 kB / 3.903 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007667/10.87, allocations: 227.7 kB / 3.903 GB, free: 11.54 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002932/10.88, allocations: 0.5088 MB / 3.904 GB, free: 11.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/10.88, allocations: 2.46 MB / 3.906 GB, free: 8.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002778/10.88, allocations: 239.3 kB / 3.907 GB, free: 8.664 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003481/10.88, allocations: 104.5 kB / 3.907 GB, free: 8.59 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: 28 (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,pipe1.statesFM[2].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,splitter.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (247): * Single equations (assignments): 241 * 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.0007639/10.88, allocations: 227.2 kB / 3.907 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006334/10.88, allocations: 193.6 kB / 3.907 GB, free: 8.199 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/10.9, allocations: 6.31 MB / 3.913 GB, free: 4.719 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.497e-05/10.9, allocations: 74.38 kB / 3.913 GB, free: 4.691 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/10.9, allocations: 5.156 kB / 3.913 GB, free: 4.688 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01092/10.91, allocations: 5.277 MB / 3.918 GB, free: 1.527 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3434/11.25, allocations: 9.017 MB / 3.927 GB, free: 94.03 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.5e-05/11.25, allocations: 2.406 kB / 3.927 GB, free: 94.03 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002093/11.25, allocations: 358.4 kB / 3.928 GB, free: 94.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/11.25, allocations: 326.4 kB / 3.928 GB, free: 94 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003912/11.25, allocations: 36.59 kB / 3.928 GB, free: 94 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/11.26, allocations: 2.628 MB / 3.93 GB, free: 91.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.001e-06/11.26, allocations: 6.438 kB / 3.93 GB, free: 91.94 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/11.27, allocations: 6.235 MB / 3.937 GB, free: 91.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002008/11.27, allocations: 0.6931 MB / 3.937 GB, free: 91.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000716/11.27, allocations: 17.8 kB / 3.937 GB, free: 91.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00282/11.28, allocations: 169.7 kB / 3.937 GB, free: 91.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005137/11.28, allocations: 144 kB / 3.938 GB, free: 91.42 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002394/11.28, allocations: 65.92 kB / 3.938 GB, free: 91.42 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002059/11.28, allocations: 1.04 MB / 3.939 GB, free: 91.31 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.058e-06/11.28, allocations: 0 / 3.939 GB, free: 91.31 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01175/11.29, allocations: 2.682 MB / 3.941 GB, free: 91.31 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 44 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.region3boundary,$cse27.region3boundary,$cse28.phase,$cse28.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].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,splitter.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (183): * Single equations (assignments): 158 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01259/11.3, allocations: 3.116 MB / 3.944 GB, free: 91.15 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009271/11.31, allocations: 4.577 MB / 3.949 GB, free: 90.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.821e-06/11.31, allocations: 1.531 kB / 3.949 GB, free: 90.85 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004077/11.32, allocations: 2.099 MB / 3.951 GB, free: 90.72 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005848/11.32, allocations: 0.8559 MB / 3.952 GB, free: 90.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/11.33, allocations: 5.446 MB / 3.957 GB, free: 89.64 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/11.33, allocations: 2.141 MB / 3.959 GB, free: 88.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/11.34, allocations: 207.5 kB / 3.959 GB, free: 88.88 MB / 0.5261 GB Notification: Performance of SimCode: time 1.859e-06/11.34, allocations: 0.6562 kB / 3.959 GB, free: 88.88 MB / 0.5261 GB Notification: Performance of Templates: time 0.1459/11.48, allocations: 113.2 MB / 4.07 GB, free: 59.66 MB / 0.5261 GB