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/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.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.999/1.999, allocations: 209.4 MB / 217.3 MB, free: 4.184 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.694e-05/1.7e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2743, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.259/6.533, allocations: 2.545 GB / 2.857 GB, free: 94.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/6.533, allocations: 88.77 kB / 2.857 GB, free: 94.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.375/9.908, allocations: 0.7756 GB / 3.633 GB, free: 6.207 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.721e-06/9.908, allocations: 0 / 3.633 GB, free: 6.207 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002856/9.908, allocations: 67.84 kB / 3.633 GB, free: 6.145 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.01533/9.924, allocations: 3.824 MB / 3.637 GB, free: 2.258 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/9.924, allocations: 8.031 kB / 3.637 GB, free: 2.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007731/9.932, allocations: 0.8145 MB / 3.637 GB, free: 1.434 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007396/9.939, allocations: 2.16 MB / 3.639 GB, free: 15.25 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002733/9.939, allocations: 91.94 kB / 3.64 GB, free: 15.16 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009464/9.94, allocations: 115.9 kB / 3.64 GB, free: 15.05 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008161/9.949, allocations: 2.866 MB / 3.642 GB, free: 12.18 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008865/9.957, allocations: 2.863 MB / 3.645 GB, free: 9.109 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.84e-05/9.958, allocations: 8 kB / 3.645 GB, free: 9.102 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004806/9.958, allocations: 4 kB / 3.645 GB, free: 9.098 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002907/9.958, allocations: 163.6 kB / 3.645 GB, free: 8.938 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.588/10.55, allocations: 108.8 MB / 3.752 GB, free: 17.01 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003231/10.55, allocations: 1.575 MB / 3.753 GB, free: 16.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00191/10.55, allocations: 0.9712 MB / 3.754 GB, free: 16.97 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04047/10.59, allocations: 17.52 MB / 3.771 GB, free: 21.43 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002492/10.59, allocations: 1.216 MB / 3.772 GB, free: 21.28 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001437/10.6, allocations: 158.2 kB / 3.773 GB, free: 21.28 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 7.459e-06/10.6, allocations: 4 kB / 3.773 GB, free: 21.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160): time 0.02844/10.62, allocations: 7.916 MB / 3.78 GB, free: 19.68 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003169/10.62, allocations: 0.5106 MB / 3.781 GB, free: 19.08 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/10.63, allocations: 1.19 MB / 3.782 GB, free: 18.91 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000433/10.63, allocations: 25.7 kB / 3.782 GB, free: 18.88 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008787/10.63, allocations: 0.9988 MB / 3.783 GB, free: 18.46 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006702/10.63, allocations: 0.5191 MB / 3.783 GB, free: 18.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/10.63, allocations: 7.469 kB / 3.784 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002449/10.63, allocations: 387.6 kB / 3.784 GB, free: 17.88 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002008/10.63, allocations: 1.032 MB / 3.785 GB, free: 17.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/10.63, allocations: 1.489 MB / 3.786 GB, free: 17.36 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01474/10.65, allocations: 2.844 MB / 3.789 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-05/10.65, allocations: 4.75 kB / 3.789 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.02005/10.67, allocations: 4.638 MB / 3.794 GB, free: 17.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002138/10.67, allocations: 4.425 MB / 3.798 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-05/10.67, allocations: 14.19 kB / 3.798 GB, free: 12.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004365/10.68, allocations: 0.8104 MB / 3.799 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002544/10.68, allocations: 469 kB / 3.799 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004542/10.68, allocations: 3.328 MB / 3.802 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003264/10.69, allocations: 227.4 kB / 3.803 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005747/10.69, allocations: 107.8 kB / 3.803 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/10.69, allocations: 11.61 kB / 3.803 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01884/10.71, allocations: 4.225 MB / 3.807 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.764e-05/10.71, allocations: 17.19 kB / 3.807 GB, free: 10.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/10.71, allocations: 330.2 kB / 3.807 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/10.71, allocations: 497.3 kB / 3.808 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005006/10.71, allocations: 3.983 MB / 3.812 GB, free: 7.336 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002403/10.72, allocations: 207.4 kB / 3.812 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003591/10.72, allocations: 101.7 kB / 3.812 GB, free: 7.312 MB / 0.5105 GB 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,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,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 (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.0007388/10.72, allocations: 229.1 kB / 3.812 GB, free: 7.137 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005671/10.72, allocations: 197.4 kB / 3.812 GB, free: 7.039 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/10.73, allocations: 6.718 MB / 3.819 GB, free: 6.434 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-05/10.73, allocations: 74.08 kB / 3.819 GB, free: 6.406 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.923e-06/10.73, allocations: 4 kB / 3.819 GB, free: 6.402 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009923/10.74, allocations: 5.68 MB / 3.825 GB, free: 19.09 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01602/10.76, allocations: 9.04 MB / 3.833 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/10.76, allocations: 0 / 3.833 GB, free: 14.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/10.76, allocations: 300.1 kB / 3.834 GB, free: 14.39 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005153/10.76, allocations: 2.372 MB / 3.836 GB, free: 12.78 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003413/10.76, allocations: 42.88 kB / 3.836 GB, free: 12.76 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00557/10.77, allocations: 4.408 MB / 3.84 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.899e-06/10.77, allocations: 0 / 3.84 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01356/10.78, allocations: 7.11 MB / 3.847 GB, free: 5.562 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00185/10.79, allocations: 0.6908 MB / 3.848 GB, free: 5.074 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00047/10.79, allocations: 22.45 kB / 3.848 GB, free: 5.059 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/10.79, allocations: 150.7 kB / 3.848 GB, free: 4.949 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003253/10.79, allocations: 133.7 kB / 3.848 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/10.79, allocations: 64.95 kB / 3.848 GB, free: 4.844 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002058/10.79, allocations: 1.074 MB / 3.849 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.55e-07/10.79, allocations: 0 / 3.849 GB, free: 4.18 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01051/10.8, allocations: 2.675 MB / 3.852 GB, free: 1.945 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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: 43 ($cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.region3boundary,$cse36.region3boundary,$cse37.phase,$cse37.region,$cse39.phase,$cse39.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) * 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 (151): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 15 * 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.3108/11.11, allocations: 2.993 MB / 3.855 GB, free: 98.84 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01068/11.12, allocations: 4.877 MB / 3.86 GB, free: 98.33 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/11.12, allocations: 0 / 3.86 GB, free: 98.33 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003719/11.13, allocations: 2.047 MB / 3.862 GB, free: 98.2 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004779/11.13, allocations: 0.7768 MB / 3.862 GB, free: 98.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/11.14, allocations: 5.388 MB / 3.868 GB, free: 97.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/11.14, allocations: 2.17 MB / 3.87 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/11.15, allocations: 184.2 kB / 3.87 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of SimCode: time 1.751e-06/11.15, allocations: 0 / 3.87 GB, free: 96.36 MB / 0.5261 GB Notification: Performance of Templates: time 0.2111/11.36, allocations: 112.2 MB / 3.979 GB, free: 80.69 MB / 0.5261 GB