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.BranchingPipes2.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.BranchingPipes2,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|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.BranchingPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.842/1.842, allocations: 209.3 MB / 222.4 MB, free: 1.949 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.839e-05, allocations: 4 kB / 277.8 MB, free: 12.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.0926, allocations: 48.71 MB / 326.5 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.358/6.45, allocations: 2.562 GB / 2.881 GB, free: 5.582 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/6.45, allocations: 76.45 kB / 2.881 GB, free: 5.543 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.656/10.11, allocations: 0.7789 GB / 3.66 GB, free: 27.32 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.797e-06/10.11, allocations: 3.938 kB / 3.66 GB, free: 27.32 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002692/10.11, allocations: 65.73 kB / 3.66 GB, free: 27.3 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: 463 * Number of variables: 463 Notification: Performance of Generate backend data structure: time 0.01498/10.12, allocations: 3.527 MB / 3.663 GB, free: 25.56 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/10.12, allocations: 11.5 kB / 3.663 GB, free: 25.56 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00758/10.13, allocations: 0.7547 MB / 3.664 GB, free: 25.44 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006602/10.14, allocations: 1.977 MB / 3.666 GB, free: 25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/10.14, allocations: 160.9 kB / 3.666 GB, free: 24.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008315/10.14, allocations: 185.9 kB / 3.666 GB, free: 24.99 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/10.15, allocations: 3.309 MB / 3.67 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.044e-05/10.15, allocations: 7.031 kB / 3.67 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004599/10.15, allocations: 81.03 kB / 3.67 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000246/10.15, allocations: 146.8 kB / 3.67 GB, free: 24.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009665/10.16, allocations: 3.05 MB / 3.673 GB, free: 24.48 MB / 458.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.02233/10.18, allocations: 13.64 MB / 3.686 GB, free: 16.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005812/10.19, allocations: 1.962 MB / 3.688 GB, free: 16.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/10.19, allocations: 1.026 MB / 3.689 GB, free: 16.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04446/10.23, allocations: 18.85 MB / 3.707 GB, free: 20.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005306/10.24, allocations: 1.588 MB / 3.709 GB, free: 20.09 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001463/10.24, allocations: 177.7 kB / 3.709 GB, free: 20.01 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 6.527e-06/10.24, allocations: 3.938 kB / 3.709 GB, free: 20.01 MB / 474.7 MB Notification: Performance of matching and sorting (n=163): time 0.02401/10.26, allocations: 6.862 MB / 3.716 GB, free: 19.05 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001976/10.26, allocations: 261.2 kB / 3.716 GB, free: 18.76 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/10.27, allocations: 1.251 MB / 3.717 GB, free: 18.58 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004816/10.27, allocations: 59.06 kB / 3.717 GB, free: 18.55 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008005/10.27, allocations: 0.8329 MB / 3.718 GB, free: 18.13 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007903/10.27, allocations: 0.5391 MB / 3.719 GB, free: 17.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000206/10.27, allocations: 36.16 kB / 3.719 GB, free: 17.79 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002666/10.27, allocations: 382.2 kB / 3.719 GB, free: 17.47 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002078/10.27, allocations: 0.9091 MB / 3.72 GB, free: 17.47 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002411/10.27, allocations: 1.354 MB / 3.721 GB, free: 17.02 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002502/10.28, allocations: 1.152 MB / 3.722 GB, free: 16.92 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.564e-05/10.28, allocations: 1.188 kB / 3.722 GB, free: 16.92 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007721/10.28, allocations: 2.823 MB / 3.725 GB, free: 16.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002078/10.29, allocations: 4.25 MB / 3.729 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.694e-05/10.29, allocations: 9.844 kB / 3.729 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00335/10.29, allocations: 0.5184 MB / 3.73 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/10.29, allocations: 457.3 kB / 3.73 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/10.3, allocations: 2.7 MB / 3.733 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00336/10.3, allocations: 258.2 kB / 3.733 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005689/10.3, allocations: 100.8 kB / 3.733 GB, free: 10.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/10.3, allocations: 3.469 kB / 3.733 GB, free: 10.05 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006273/10.31, allocations: 2.562 MB / 3.736 GB, free: 9.844 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-05/10.31, allocations: 13.05 kB / 3.736 GB, free: 9.844 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008785/10.31, allocations: 196.9 kB / 3.736 GB, free: 9.816 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002873/10.31, allocations: 472.2 kB / 3.736 GB, free: 9.77 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001696/10.31, allocations: 1.87 MB / 3.738 GB, free: 8.086 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002484/10.31, allocations: 255 kB / 3.739 GB, free: 8.023 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000374/10.31, allocations: 95.59 kB / 3.739 GB, free: 8.004 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 27 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (215): * Single equations (assignments): 209 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0007273/10.32, allocations: 293.7 kB / 3.739 GB, free: 7.742 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005273/10.32, allocations: 186.1 kB / 3.739 GB, free: 7.648 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0124/10.33, allocations: 7.368 MB / 3.746 GB, free: 4.324 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.748e-05/10.33, allocations: 88.83 kB / 3.746 GB, free: 4.297 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/10.33, allocations: 0 / 3.746 GB, free: 4.297 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01086/10.34, allocations: 6.443 MB / 3.753 GB, free: 14.61 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02243/10.36, allocations: 11.07 MB / 3.763 GB, free: 4.926 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.297e-05/10.36, allocations: 4 kB / 3.763 GB, free: 4.922 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/10.36, allocations: 357.7 kB / 3.764 GB, free: 4.629 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003671/10.37, allocations: 1.267 MB / 3.765 GB, free: 3.57 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004256/10.37, allocations: 64.06 kB / 3.765 GB, free: 3.516 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003548/10.37, allocations: 3.186 MB / 3.768 GB, free: 408 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.519e-05/10.37, allocations: 16.23 kB / 3.768 GB, free: 392 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3233/10.7, allocations: 7.15 MB / 3.775 GB, free: 56.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/10.7, allocations: 0.7008 MB / 3.776 GB, free: 56.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006356/10.7, allocations: 51.8 kB / 3.776 GB, free: 56.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002207/10.7, allocations: 184.6 kB / 3.776 GB, free: 56.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/10.7, allocations: 147.2 kB / 3.776 GB, free: 56.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002305/10.7, allocations: 72.2 kB / 3.776 GB, free: 56.26 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002353/10.7, allocations: 1.061 MB / 3.777 GB, free: 56.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.78e-07/10.7, allocations: 0.875 kB / 3.777 GB, free: 56.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01141/10.71, allocations: 2.539 MB / 3.78 GB, free: 56.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.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.phase,$cse38.region,$cse40.region3boundary,$cse41.region3boundary,$cse42.phase,$cse42.region,$cse44.phase,$cse44.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01233/10.73, allocations: 2.675 MB / 3.782 GB, free: 55.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009796/10.74, allocations: 4.47 MB / 3.787 GB, free: 55.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/10.74, allocations: 0 / 3.787 GB, free: 55.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004806/10.74, allocations: 2.378 MB / 3.789 GB, free: 55.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006015/10.75, allocations: 0.8357 MB / 3.79 GB, free: 55.48 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2801/11.03, allocations: 125.2 MB / 3.912 GB, free: 30.44 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/11.03, allocations: 2.12 MB / 3.914 GB, free: 28.85 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009851/11.03, allocations: 188.7 kB / 3.914 GB, free: 28.69 MB / 490.7 MB Notification: Performance of SimCode: time 2.734e-06/11.03, allocations: 0 / 3.914 GB, free: 28.69 MB / 490.7 MB Notification: Performance of Templates: time 0.4714/11.5, allocations: 108.7 MB / 4.021 GB, free: 36.52 MB / 490.7 MB