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/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.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.907/1.907, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004405/0.0004406, allocations: 8 kB / 282.6 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08877/0.08924, allocations: 48.7 MB / 331.3 MB, free: 8.938 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.358/6.447, allocations: 2.55 GB / 2.873 GB, free: 60.74 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001981/6.447, allocations: 82.08 kB / 2.873 GB, free: 60.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.889/10.34, allocations: 0.8785 GB / 3.752 GB, free: 28.25 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.883e-06/10.34, allocations: 0 / 3.752 GB, free: 28.25 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002407/10.34, allocations: 66.66 kB / 3.752 GB, free: 28.23 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.01585/10.35, allocations: 4.159 MB / 3.756 GB, free: 26.17 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/10.35, allocations: 15.44 kB / 3.756 GB, free: 26.17 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008015/10.36, allocations: 0.8491 MB / 3.757 GB, free: 26.03 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007111/10.37, allocations: 2.08 MB / 3.759 GB, free: 25.52 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002811/10.37, allocations: 185 kB / 3.759 GB, free: 25.52 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008392/10.37, allocations: 203.7 kB / 3.759 GB, free: 25.51 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01119/10.38, allocations: 3.68 MB / 3.763 GB, free: 24.96 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-05/10.38, allocations: 6.594 kB / 3.763 GB, free: 24.96 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004069/10.38, allocations: 90.59 kB / 3.763 GB, free: 24.96 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000254/10.38, allocations: 171.6 kB / 3.763 GB, free: 24.95 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/10.39, allocations: 3.42 MB / 3.766 GB, free: 24.91 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.02421/10.42, allocations: 15.38 MB / 3.781 GB, free: 13.88 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007382/10.42, allocations: 2.275 MB / 3.783 GB, free: 13.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04178/10.47, allocations: 18.86 MB / 3.802 GB, free: 16.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005933/10.47, allocations: 1.673 MB / 3.804 GB, free: 15.94 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 7.07e-06/10.47, allocations: 3.328 kB / 3.804 GB, free: 15.94 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.03243/10.5, allocations: 9.001 MB / 3.812 GB, free: 8.641 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/10.5, allocations: 261.1 kB / 3.813 GB, free: 8.336 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003112/10.51, allocations: 1.449 MB / 3.814 GB, free: 7.109 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004608/10.51, allocations: 57.7 kB / 3.814 GB, free: 7.047 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/10.51, allocations: 0.9272 MB / 3.815 GB, free: 6.176 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009111/10.51, allocations: 0.6008 MB / 3.816 GB, free: 5.633 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/10.51, allocations: 40 kB / 3.816 GB, free: 5.594 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002683/10.51, allocations: 389.7 kB / 3.816 GB, free: 5.227 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003108/10.51, allocations: 1.121 MB / 3.817 GB, free: 4.289 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003669/10.52, allocations: 1.579 MB / 3.819 GB, free: 2.734 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00367/10.52, allocations: 1.367 MB / 3.82 GB, free: 1.504 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/10.52, allocations: 4 kB / 3.82 GB, free: 1.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.326/10.85, allocations: 3.187 MB / 3.823 GB, free: 43.42 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009864/10.85, allocations: 4.856 MB / 3.828 GB, free: 38.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/10.85, allocations: 13.27 kB / 3.828 GB, free: 38.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/10.85, allocations: 250 kB / 3.828 GB, free: 38.36 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003108/10.85, allocations: 0.5172 MB / 3.829 GB, free: 38.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001637/10.85, allocations: 2.434 MB / 3.831 GB, free: 36.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003164/10.86, allocations: 267.9 kB / 3.831 GB, free: 36.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003371/10.86, allocations: 106.5 kB / 3.831 GB, free: 36.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/10.86, allocations: 4.125 kB / 3.831 GB, free: 36.29 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008575/10.87, allocations: 3.035 MB / 3.834 GB, free: 36.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.245e-05/10.87, allocations: 14.02 kB / 3.834 GB, free: 36.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/10.87, allocations: 247.3 kB / 3.834 GB, free: 36.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003229/10.87, allocations: 0.5098 MB / 3.835 GB, free: 36.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001588/10.87, allocations: 2.434 MB / 3.837 GB, free: 34.04 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002742/10.88, allocations: 272.8 kB / 3.838 GB, free: 34.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/10.88, allocations: 101.4 kB / 3.838 GB, free: 34.04 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 (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,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,splitter.medium.phase,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 (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.00206/10.88, allocations: 0.7535 MB / 3.838 GB, free: 33.79 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006109/10.88, allocations: 210.7 kB / 3.839 GB, free: 33.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01488/10.89, allocations: 7.626 MB / 3.846 GB, free: 33.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001026/10.89, allocations: 84 kB / 3.846 GB, free: 33.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/10.89, allocations: 1.312 kB / 3.846 GB, free: 33.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01216/10.91, allocations: 6.661 MB / 3.853 GB, free: 32.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01884/10.93, allocations: 10.83 MB / 3.863 GB, free: 31.72 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/10.93, allocations: 2.125 kB / 3.863 GB, free: 31.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002116/10.93, allocations: 411.7 kB / 3.864 GB, free: 31.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/10.93, allocations: 371 kB / 3.864 GB, free: 31.69 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002702/10.93, allocations: 71.73 kB / 3.864 GB, free: 31.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001438/10.93, allocations: 2.517 MB / 3.867 GB, free: 29.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/10.93, allocations: 1.172 kB / 3.867 GB, free: 29.62 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/10.94, allocations: 7.133 MB / 3.873 GB, free: 29.01 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001974/10.95, allocations: 0.7524 MB / 3.874 GB, free: 28.74 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005066/10.95, allocations: 50.09 kB / 3.874 GB, free: 28.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/10.95, allocations: 210.8 kB / 3.874 GB, free: 28.73 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003434/10.95, allocations: 152 kB / 3.875 GB, free: 28.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/10.95, allocations: 71 kB / 3.875 GB, free: 28.73 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002222/10.95, allocations: 1.214 MB / 3.876 GB, free: 28.59 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.6e-07/10.95, allocations: 0.6562 kB / 3.876 GB, free: 28.59 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01053/10.96, allocations: 2.82 MB / 3.879 GB, free: 28.59 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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: 54 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse31.phase,$cse31.region,$cse33.region3boundary,$cse34.region3boundary,$cse35.phase,$cse35.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.region3boundary,$cse42.region3boundary,$cse43.phase,$cse43.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,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (200): * Single equations (assignments): 171 * 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.01214/10.97, allocations: 2.949 MB / 3.882 GB, free: 28.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01224/10.99, allocations: 5.201 MB / 3.887 GB, free: 28.02 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.478e-06/10.99, allocations: 2.031 kB / 3.887 GB, free: 28.02 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00478/10.99, allocations: 2.426 MB / 3.889 GB, free: 27.88 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006307/11, allocations: 0.944 MB / 3.89 GB, free: 27.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5992/11.6, allocations: 128.4 MB / 4.015 GB, free: 54.77 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002596/11.6, allocations: 2.231 MB / 4.017 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/11.6, allocations: 215.2 kB / 4.018 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of SimCode: time 2.533e-06/11.6, allocations: 0 / 4.018 GB, free: 54.02 MB / 0.4948 GB Notification: Performance of Templates: time 0.161/11.76, allocations: 117.7 MB / 4.133 GB, free: 35.38 MB / 0.4948 GB