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.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|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.BranchingPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.843/1.843, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000441/0.000441, allocations: 16 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2823, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.04/6.323, allocations: 2.545 GB / 2.869 GB, free: 102.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/6.323, allocations: 79.09 kB / 2.869 GB, free: 102.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.365/9.688, allocations: 0.7842 GB / 3.653 GB, free: 24.27 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.789e-06/9.688, allocations: 0 / 3.653 GB, free: 24.27 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000248/9.689, allocations: 69.84 kB / 3.653 GB, free: 24.26 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 514 * Number of variables: 514 Notification: Performance of Generate backend data structure: time 0.01568/9.704, allocations: 4.124 MB / 3.657 GB, free: 22.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/9.704, allocations: 9.75 kB / 3.657 GB, free: 22.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00746/9.712, allocations: 0.8162 MB / 3.658 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007077/9.719, allocations: 2.172 MB / 3.66 GB, free: 21.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/9.719, allocations: 175.6 kB / 3.66 GB, free: 21.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005358/9.72, allocations: 199 kB / 3.66 GB, free: 21.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01059/9.73, allocations: 3.708 MB / 3.664 GB, free: 20.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-05/9.73, allocations: 11.34 kB / 3.664 GB, free: 20.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003789/9.731, allocations: 90.17 kB / 3.664 GB, free: 20.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002365/9.731, allocations: 162.3 kB / 3.664 GB, free: 20.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01125/9.742, allocations: 3.541 MB / 3.668 GB, free: 19.97 MB / 458.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.02255/9.765, allocations: 14.74 MB / 3.682 GB, free: 9.074 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006368/9.771, allocations: 2.196 MB / 3.684 GB, free: 8.391 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04031/9.812, allocations: 18.87 MB / 3.703 GB, free: 7.203 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005722/9.817, allocations: 1.66 MB / 3.704 GB, free: 5.859 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0015/9.819, allocations: 188.1 kB / 3.705 GB, free: 5.676 MB / 474.7 MB Notification: Performance of pre-optimization done (n=158): time 5.676e-06/9.819, allocations: 4 kB / 3.705 GB, free: 5.672 MB / 474.7 MB Notification: Performance of matching and sorting (n=170): time 0.3733/10.19, allocations: 9.162 MB / 3.713 GB, free: 40.65 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/10.19, allocations: 413.9 kB / 3.714 GB, free: 40.18 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002901/10.2, allocations: 1.503 MB / 3.715 GB, free: 40.01 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002672/10.2, allocations: 61.27 kB / 3.715 GB, free: 39.98 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007699/10.2, allocations: 0.9202 MB / 3.716 GB, free: 39.62 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006265/10.2, allocations: 0.5741 MB / 3.717 GB, free: 39.33 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002043/10.2, allocations: 38.25 kB / 3.717 GB, free: 39.33 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/10.2, allocations: 396.4 kB / 3.717 GB, free: 39.02 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003183/10.2, allocations: 1.153 MB / 3.718 GB, free: 39.01 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/10.2, allocations: 1.623 MB / 3.72 GB, free: 38.51 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003131/10.21, allocations: 1.409 MB / 3.721 GB, free: 38.42 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/10.21, allocations: 3.562 kB / 3.721 GB, free: 38.42 MB / 474.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.008583/10.22, allocations: 3.41 MB / 3.725 GB, free: 38.21 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009023/10.22, allocations: 4.429 MB / 3.729 GB, free: 33.62 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.102e-05/10.22, allocations: 21.83 kB / 3.729 GB, free: 33.62 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006374/10.22, allocations: 0.9859 MB / 3.73 GB, free: 33.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/10.23, allocations: 475.5 kB / 3.73 GB, free: 33.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003141/10.23, allocations: 3.158 MB / 3.734 GB, free: 31.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002854/10.23, allocations: 241.1 kB / 3.734 GB, free: 31.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000326/10.23, allocations: 109.5 kB / 3.734 GB, free: 31.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/10.23, allocations: 4.656 kB / 3.734 GB, free: 31.49 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008135/10.24, allocations: 3.196 MB / 3.737 GB, free: 31.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-05/10.24, allocations: 16.75 kB / 3.737 GB, free: 31.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001765/10.24, allocations: 354.5 kB / 3.737 GB, free: 31.31 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002567/10.24, allocations: 497.2 kB / 3.738 GB, free: 31.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/10.25, allocations: 4.105 MB / 3.742 GB, free: 28.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002243/10.25, allocations: 239.6 kB / 3.742 GB, free: 28.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002775/10.25, allocations: 95.81 kB / 3.742 GB, free: 28.49 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 27 (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,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.001762/10.25, allocations: 0.7671 MB / 3.743 GB, free: 28.23 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005468/10.25, allocations: 209.2 kB / 3.743 GB, free: 28.13 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01304/10.27, allocations: 7.85 MB / 3.751 GB, free: 27.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.132e-05/10.27, allocations: 79.77 kB / 3.751 GB, free: 27.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.733e-06/10.27, allocations: 7.828 kB / 3.751 GB, free: 27.47 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01061/10.28, allocations: 6.894 MB / 3.758 GB, free: 26.56 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01897/10.3, allocations: 10.88 MB / 3.768 GB, free: 25.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/10.3, allocations: 3.844 kB / 3.768 GB, free: 25.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/10.3, allocations: 339.7 kB / 3.769 GB, free: 25.83 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006719/10.31, allocations: 2.146 MB / 3.771 GB, free: 25.74 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004174/10.31, allocations: 65.98 kB / 3.771 GB, free: 25.74 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003923/10.31, allocations: 4.113 MB / 3.775 GB, free: 23.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.873e-06/10.31, allocations: 0 / 3.775 GB, free: 23.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/10.32, allocations: 7.96 MB / 3.782 GB, free: 22.96 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001975/10.33, allocations: 0.7438 MB / 3.783 GB, free: 22.64 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005425/10.33, allocations: 56.05 kB / 3.783 GB, free: 22.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002076/10.33, allocations: 198.4 kB / 3.783 GB, free: 22.62 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003673/10.33, allocations: 143.3 kB / 3.784 GB, free: 22.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002091/10.33, allocations: 71.19 kB / 3.784 GB, free: 22.62 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002223/10.33, allocations: 1.252 MB / 3.785 GB, free: 22.47 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.41e-07/10.33, allocations: 0 / 3.785 GB, free: 22.47 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01019/10.34, allocations: 2.797 MB / 3.788 GB, free: 22.35 MB / 474.7 MB 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,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($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,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent) * 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 (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.01153/10.35, allocations: 2.835 MB / 3.79 GB, free: 22.05 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01152/10.37, allocations: 5.464 MB / 3.796 GB, free: 21.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.163e-06/10.37, allocations: 5.375 kB / 3.796 GB, free: 21.47 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004532/10.37, allocations: 2.38 MB / 3.798 GB, free: 21.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005319/10.38, allocations: 0.8883 MB / 3.799 GB, free: 21.29 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6233/11, allocations: 128.3 MB / 3.924 GB, free: 65.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002047/11, allocations: 2.248 MB / 3.926 GB, free: 65.12 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009922/11, allocations: 191.2 kB / 3.927 GB, free: 65.12 MB / 0.4948 GB Notification: Performance of SimCode: time 2.172e-06/11, allocations: 0 / 3.927 GB, free: 65.12 MB / 0.4948 GB Notification: Performance of Templates: time 0.1484/11.15, allocations: 116.5 MB / 4.04 GB, free: 31.97 MB / 0.4948 GB