Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.098/2.098, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004371/0.0004373, allocations: 16 kB / 314.4 MB, free: 9.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2718/0.2723, allocations: 54.85 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.043/6.315, allocations: 2.673 GB / 3.034 GB, free: 107.1 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/6.315, allocations: 83.08 kB / 3.034 GB, free: 107 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948/10.26, allocations: 0.8701 GB / 3.904 GB, free: 31.69 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.453e-06/10.26, allocations: 0 / 3.904 GB, free: 31.69 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002205/10.26, allocations: 60.03 kB / 3.904 GB, free: 31.69 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.014/10.28, allocations: 4.017 MB / 3.908 GB, free: 30 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/10.28, allocations: 11.69 kB / 3.908 GB, free: 30 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007191/10.28, allocations: 0.7834 MB / 3.909 GB, free: 29.88 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006484/10.29, allocations: 1.998 MB / 3.911 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/10.29, allocations: 165.8 kB / 3.911 GB, free: 29.44 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005144/10.29, allocations: 186.2 kB / 3.911 GB, free: 29.43 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009922/10.3, allocations: 3.26 MB / 3.914 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.627e-05/10.3, allocations: 7.812 kB / 3.914 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003203/10.3, allocations: 82.33 kB / 3.914 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/10.3, allocations: 149.9 kB / 3.915 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009089/10.31, allocations: 2.945 MB / 3.917 GB, free: 28.93 MB / 0.5105 GB 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.01957/10.33, allocations: 13.9 MB / 3.931 GB, free: 20.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006298/10.34, allocations: 2.033 MB / 3.933 GB, free: 20.45 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04065/10.38, allocations: 18.82 MB / 3.951 GB, free: 24.61 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005624/10.38, allocations: 1.586 MB / 3.953 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001478/10.39, allocations: 169.8 kB / 3.953 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=155): time 6.759e-06/10.39, allocations: 0 / 3.953 GB, free: 24.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=167): time 0.02911/10.41, allocations: 8.322 MB / 3.961 GB, free: 23.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001809/10.41, allocations: 263.3 kB / 3.961 GB, free: 22.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00239/10.42, allocations: 1.275 MB / 3.963 GB, free: 22.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0004368/10.42, allocations: 56.8 kB / 3.963 GB, free: 22.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000724/10.42, allocations: 0.8426 MB / 3.964 GB, free: 22.28 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005887/10.42, allocations: 0.5509 MB / 3.964 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/10.42, allocations: 40.62 kB / 3.964 GB, free: 21.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002281/10.42, allocations: 384.3 kB / 3.965 GB, free: 21.62 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002397/10.42, allocations: 1.016 MB / 3.966 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00301/10.42, allocations: 1.454 MB / 3.967 GB, free: 21.17 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/10.43, allocations: 1.261 MB / 3.968 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/10.43, allocations: 3.812 kB / 3.968 GB, free: 21.09 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.00855/10.44, allocations: 3.002 MB / 3.971 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002052/10.44, allocations: 4.25 MB / 3.975 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.659e-05/10.44, allocations: 11.19 kB / 3.975 GB, free: 16.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003799/10.44, allocations: 0.5368 MB / 3.976 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002536/10.45, allocations: 452 kB / 3.976 GB, free: 16.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002803/10.45, allocations: 2.711 MB / 3.979 GB, free: 14.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003186/10.45, allocations: 267.9 kB / 3.979 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005227/10.45, allocations: 98.47 kB / 3.979 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/10.45, allocations: 4.312 kB / 3.979 GB, free: 14.34 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007141/10.46, allocations: 2.747 MB / 3.982 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/10.46, allocations: 11.59 kB / 3.982 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009608/10.46, allocations: 209.5 kB / 3.982 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/10.46, allocations: 468.1 kB / 3.983 GB, free: 14.18 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001699/10.46, allocations: 1.875 MB / 3.984 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00255/10.47, allocations: 269.4 kB / 3.985 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003827/10.47, allocations: 92.31 kB / 3.985 GB, free: 12.61 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 29 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,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 () * Number of clocked 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.001926/10.47, allocations: 0.7212 MB / 3.985 GB, free: 12.35 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005262/10.47, allocations: 194.7 kB / 3.986 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/10.48, allocations: 7.436 MB / 3.993 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.443e-05/10.48, allocations: 81.52 kB / 3.993 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/10.48, allocations: 0 / 3.993 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01107/10.49, allocations: 6.517 MB / 3.999 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02089/10.52, allocations: 11.22 MB / 4.01 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.765e-05/10.52, allocations: 3.688 kB / 4.01 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/10.52, allocations: 359.2 kB / 4.011 GB, free: 9.418 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003597/10.52, allocations: 1.174 MB / 4.012 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003946/10.52, allocations: 65.64 kB / 4.012 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003171/10.52, allocations: 3.205 MB / 4.015 GB, free: 7.262 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.474e-06/10.52, allocations: 8.969 kB / 4.015 GB, free: 7.262 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/10.54, allocations: 7.475 MB / 4.022 GB, free: 5.984 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002123/10.54, allocations: 0.7059 MB / 4.023 GB, free: 21.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005388/10.54, allocations: 54.31 kB / 4.023 GB, free: 21.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002162/10.54, allocations: 191.6 kB / 4.023 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003477/10.54, allocations: 143 kB / 4.023 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002135/10.54, allocations: 75.58 kB / 4.023 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002065/10.54, allocations: 1.09 MB / 4.024 GB, free: 21.5 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.69e-07/10.54, allocations: 1.875 kB / 4.024 GB, free: 21.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009669/10.55, allocations: 2.598 MB / 4.027 GB, free: 21.17 MB / 0.5417 GB 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: 55 ($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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Number of clocked states: 0 () * 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.01125/10.57, allocations: 2.759 MB / 4.03 GB, free: 20.65 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01078/10.58, allocations: 4.876 MB / 4.034 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/10.58, allocations: 0.9375 kB / 4.034 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004536/10.58, allocations: 2.51 MB / 4.037 GB, free: 20.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00525/10.59, allocations: 0.9229 MB / 4.038 GB, free: 20.14 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6168/11.2, allocations: 130.1 MB / 4.165 GB, free: 55.11 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/11.2, allocations: 2.136 MB / 4.167 GB, free: 54.34 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/11.21, allocations: 188.9 kB / 4.167 GB, free: 54.33 MB / 0.5417 GB Notification: Performance of SimCode: time 1.673e-06/11.21, allocations: 0 / 4.167 GB, free: 54.33 MB / 0.5417 GB Notification: Performance of Templates: time 0.1399/11.35, allocations: 110.8 MB / 4.275 GB, free: 12.07 MB / 0.5417 GB