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.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") Notification: Performance of loadModel(ModelicaTest): time 1.846/1.846, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004387/0.0004387, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2854, allocations: 48.7 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.029/6.314, allocations: 2.546 GB / 2.869 GB, free: 102.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/6.315, allocations: 76.86 kB / 2.869 GB, free: 102.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.519/9.834, allocations: 0.8432 GB / 3.713 GB, free: 1.914 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.386e-06/9.834, allocations: 0 / 3.713 GB, free: 1.914 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002341/9.834, allocations: 55.98 kB / 3.713 GB, free: 1.859 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: 472 * Number of variables: 472 Notification: Performance of Generate backend data structure: time 0.3258/10.16, allocations: 3.95 MB / 3.717 GB, free: 30.17 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/10.16, allocations: 10.91 kB / 3.717 GB, free: 30.17 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007314/10.17, allocations: 0.7625 MB / 3.717 GB, free: 30.04 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006448/10.17, allocations: 1.953 MB / 3.719 GB, free: 29.7 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002732/10.17, allocations: 160.9 kB / 3.719 GB, free: 29.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007368/10.17, allocations: 180.4 kB / 3.72 GB, free: 29.7 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/10.19, allocations: 3.282 MB / 3.723 GB, free: 29.24 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.47e-05/10.19, allocations: 4.312 kB / 3.723 GB, free: 29.24 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003991/10.19, allocations: 85.58 kB / 3.723 GB, free: 29.24 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002518/10.19, allocations: 147.6 kB / 3.723 GB, free: 29.23 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009978/10.2, allocations: 3.014 MB / 3.726 GB, free: 29.21 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.02292/10.22, allocations: 14.02 MB / 3.74 GB, free: 20.79 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006419/10.23, allocations: 2.028 MB / 3.742 GB, free: 20.76 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0412/10.27, allocations: 18.86 MB / 3.76 GB, free: 24.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005227/10.27, allocations: 1.543 MB / 3.762 GB, free: 24.82 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001463/10.27, allocations: 158.3 kB / 3.762 GB, free: 24.75 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 6.12e-06/10.27, allocations: 0 / 3.762 GB, free: 24.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=154): time 0.02723/10.3, allocations: 8.211 MB / 3.77 GB, free: 23.54 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/10.3, allocations: 253.8 kB / 3.77 GB, free: 23.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002491/10.3, allocations: 1.346 MB / 3.771 GB, free: 23.08 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000334/10.3, allocations: 57.3 kB / 3.771 GB, free: 23.05 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007055/10.3, allocations: 0.8459 MB / 3.772 GB, free: 22.63 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005321/10.31, allocations: 0.5162 MB / 3.773 GB, free: 22.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/10.31, allocations: 35.78 kB / 3.773 GB, free: 22.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000237/10.31, allocations: 380.7 kB / 3.773 GB, free: 21.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002546/10.31, allocations: 1.006 MB / 3.774 GB, free: 21.99 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002762/10.31, allocations: 1.409 MB / 3.775 GB, free: 21.56 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002907/10.31, allocations: 1.241 MB / 3.777 GB, free: 21.47 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/10.31, allocations: 3.562 kB / 3.777 GB, free: 21.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.00833/10.32, allocations: 3.042 MB / 3.78 GB, free: 21.26 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002119/10.32, allocations: 4.244 MB / 3.784 GB, free: 16.85 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/10.32, allocations: 11.59 kB / 3.784 GB, free: 16.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003604/10.33, allocations: 0.6131 MB / 3.784 GB, free: 16.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002402/10.33, allocations: 439.4 kB / 3.785 GB, free: 16.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003027/10.33, allocations: 2.833 MB / 3.788 GB, free: 14.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/10.34, allocations: 234.5 kB / 3.788 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000345/10.34, allocations: 93.8 kB / 3.788 GB, free: 14.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/10.34, allocations: 8.062 kB / 3.788 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006487/10.34, allocations: 2.743 MB / 3.791 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/10.34, allocations: 12.09 kB / 3.791 GB, free: 14.59 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008641/10.34, allocations: 210.3 kB / 3.791 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002389/10.35, allocations: 460.2 kB / 3.791 GB, free: 14.57 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/10.35, allocations: 1.879 MB / 3.793 GB, free: 13.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002138/10.35, allocations: 231.3 kB / 3.793 GB, free: 13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002581/10.35, allocations: 91.52 kB / 3.793 GB, free: 13 MB / 490.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 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (205): * Single equations (assignments): 199 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.001706/10.35, allocations: 0.71 MB / 3.794 GB, free: 12.74 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004876/10.35, allocations: 189.4 kB / 3.794 GB, free: 12.64 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01262/10.37, allocations: 7.443 MB / 3.801 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.642e-05/10.37, allocations: 82.28 kB / 3.802 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.085e-05/10.37, allocations: 0 / 3.802 GB, free: 11.97 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01042/10.38, allocations: 6.523 MB / 3.808 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01732/10.39, allocations: 10.34 MB / 3.818 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/10.39, allocations: 0 / 3.818 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002108/10.4, allocations: 332 kB / 3.818 GB, free: 10.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004405/10.4, allocations: 1.348 MB / 3.82 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003965/10.4, allocations: 56.69 kB / 3.82 GB, free: 10.33 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003524/10.4, allocations: 3.474 MB / 3.823 GB, free: 8.238 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.602e-06/10.4, allocations: 0 / 3.823 GB, free: 8.238 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01315/10.42, allocations: 7.238 MB / 3.83 GB, free: 7.66 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001916/10.42, allocations: 0.7046 MB / 3.831 GB, free: 7.344 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006549/10.42, allocations: 39.95 kB / 3.831 GB, free: 7.344 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002104/10.42, allocations: 196.4 kB / 3.831 GB, free: 7.328 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/10.42, allocations: 127.6 kB / 3.831 GB, free: 7.324 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001971/10.42, allocations: 69.8 kB / 3.831 GB, free: 7.324 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002109/10.43, allocations: 1.141 MB / 3.832 GB, free: 7.176 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.13e-07/10.43, allocations: 0 / 3.832 GB, free: 7.176 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01027/10.44, allocations: 2.676 MB / 3.835 GB, free: 7.059 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse24.phase,$cse24.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse30.phase,$cse30.region,$cse32.region3boundary,$cse33.region3boundary,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse37.region3boundary,$cse38.region3boundary,$cse39.phase,$cse39.region,$cse41.phase,$cse41.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 (164): * Single equations (assignments): 138 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01176/10.45, allocations: 2.869 MB / 3.838 GB, free: 6.754 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01065/10.46, allocations: 4.726 MB / 3.842 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.201e-06/10.46, allocations: 1.875 kB / 3.842 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004209/10.46, allocations: 2.256 MB / 3.845 GB, free: 22.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005791/10.47, allocations: 0.8802 MB / 3.845 GB, free: 22.27 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5936/11.06, allocations: 127.8 MB / 3.97 GB, free: 52.51 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001923/11.06, allocations: 2.133 MB / 3.972 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009958/11.06, allocations: 184.7 kB / 3.973 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of SimCode: time 1.689e-06/11.06, allocations: 0 / 3.973 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of Templates: time 0.5065/11.57, allocations: 110.6 MB / 4.081 GB, free: 71.56 MB / 0.5105 GB