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.203/2.203, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.963e-05/2.979e-05, allocations: 4 kB / 309.7 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3174, allocations: 54.86 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.131/6.448, allocations: 2.673 GB / 3.029 GB, free: 130.8 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/6.449, allocations: 77.19 kB / 3.029 GB, free: 130.8 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.725/10.17, allocations: 0.8678 GB / 3.897 GB, free: 39.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.019e-06/10.17, allocations: 0 / 3.897 GB, free: 39.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000203/10.17, allocations: 61.16 kB / 3.897 GB, free: 39.19 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.01292/10.19, allocations: 3.764 MB / 3.901 GB, free: 37.43 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/10.19, allocations: 7.781 kB / 3.901 GB, free: 37.43 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007258/10.19, allocations: 0.786 MB / 3.902 GB, free: 37.3 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006048/10.2, allocations: 1.969 MB / 3.904 GB, free: 36.85 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000207/10.2, allocations: 162.6 kB / 3.904 GB, free: 36.85 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005266/10.2, allocations: 192.2 kB / 3.904 GB, free: 36.84 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008202/10.21, allocations: 3.254 MB / 3.907 GB, free: 36.36 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-05/10.21, allocations: 11.06 kB / 3.907 GB, free: 36.35 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003257/10.21, allocations: 78.98 kB / 3.907 GB, free: 36.35 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002293/10.21, allocations: 149.4 kB / 3.907 GB, free: 36.35 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008031/10.22, allocations: 2.829 MB / 3.91 GB, free: 36.33 MB / 0.5105 GB 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.01938/10.24, allocations: 13.89 MB / 3.924 GB, free: 27.86 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005485/10.24, allocations: 1.973 MB / 3.926 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/10.24, allocations: 1.03 MB / 3.927 GB, free: 27.8 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0403/10.29, allocations: 18.88 MB / 3.945 GB, free: 15.94 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004932/10.29, allocations: 1.596 MB / 3.947 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001485/10.29, allocations: 161.5 kB / 3.947 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 7.795e-06/10.29, allocations: 0 / 3.947 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.02284/10.31, allocations: 6.881 MB / 3.953 GB, free: 14.73 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/10.31, allocations: 259.8 kB / 3.954 GB, free: 14.45 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002277/10.32, allocations: 1.263 MB / 3.955 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003624/10.32, allocations: 54.86 kB / 3.955 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006439/10.32, allocations: 0.8471 MB / 3.956 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005261/10.32, allocations: 0.5536 MB / 3.956 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/10.32, allocations: 38.84 kB / 3.956 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001305/10.32, allocations: 386.1 kB / 3.957 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00195/10.32, allocations: 0.9156 MB / 3.958 GB, free: 12.51 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002243/10.32, allocations: 1.353 MB / 3.959 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002243/10.33, allocations: 1.164 MB / 3.96 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.745e-06/10.33, allocations: 3.125 kB / 3.96 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.0069/10.33, allocations: 2.796 MB / 3.963 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001524/10.33, allocations: 4.256 MB / 3.967 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.364e-05/10.33, allocations: 9.188 kB / 3.967 GB, free: 21.61 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003143/10.34, allocations: 0.5249 MB / 3.967 GB, free: 21.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002609/10.34, allocations: 453.4 kB / 3.968 GB, free: 21.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/10.34, allocations: 2.707 MB / 3.971 GB, free: 19.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003218/10.35, allocations: 268.5 kB / 3.971 GB, free: 19.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003972/10.35, allocations: 101 kB / 3.971 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/10.35, allocations: 5.375 kB / 3.971 GB, free: 19.03 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00565/10.35, allocations: 2.54 MB / 3.973 GB, free: 18.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/10.35, allocations: 14.97 kB / 3.973 GB, free: 18.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008552/10.35, allocations: 202.7 kB / 3.974 GB, free: 17.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002584/10.36, allocations: 461.4 kB / 3.974 GB, free: 17.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/10.36, allocations: 1.88 MB / 3.976 GB, free: 16.26 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/10.36, allocations: 262.3 kB / 3.976 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003038/10.36, allocations: 92.89 kB / 3.976 GB, free: 16.18 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 () * 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.0007107/10.36, allocations: 290 kB / 3.976 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005146/10.36, allocations: 202.8 kB / 3.977 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/10.37, allocations: 7.35 MB / 3.984 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.12e-05/10.37, allocations: 84.86 kB / 3.984 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/10.37, allocations: 0 / 3.984 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01062/10.38, allocations: 6.415 MB / 3.99 GB, free: 5.902 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3716/10.76, allocations: 11.19 MB / 4.001 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.026e-05/10.76, allocations: 3.875 kB / 4.001 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002086/10.76, allocations: 358.2 kB / 4.001 GB, free: 53.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003471/10.76, allocations: 1.299 MB / 4.003 GB, free: 53.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000429/10.76, allocations: 68.09 kB / 4.003 GB, free: 53.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002673/10.76, allocations: 3.191 MB / 4.006 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.524e-06/10.76, allocations: 10.59 kB / 4.006 GB, free: 51.23 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/10.78, allocations: 7.146 MB / 4.013 GB, free: 50.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002037/10.78, allocations: 0.707 MB / 4.014 GB, free: 50.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006773/10.78, allocations: 52.94 kB / 4.014 GB, free: 50.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002391/10.78, allocations: 195.6 kB / 4.014 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004477/10.78, allocations: 149.3 kB / 4.014 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002478/10.78, allocations: 80.7 kB / 4.014 GB, free: 50.07 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002343/10.79, allocations: 1.07 MB / 4.015 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.004e-06/10.79, allocations: 2.406 kB / 4.015 GB, free: 49.91 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01048/10.8, allocations: 2.605 MB / 4.018 GB, free: 49.91 MB / 0.5261 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) * 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.01207/10.81, allocations: 2.763 MB / 4.02 GB, free: 49.74 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009055/10.82, allocations: 4.579 MB / 4.025 GB, free: 49.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/10.82, allocations: 1.875 kB / 4.025 GB, free: 49.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00455/10.82, allocations: 2.434 MB / 4.027 GB, free: 49.29 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005941/10.83, allocations: 0.9056 MB / 4.028 GB, free: 49.27 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2675/11.09, allocations: 127.4 MB / 4.153 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/11.1, allocations: 2.148 MB / 4.155 GB, free: 24.73 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009722/11.1, allocations: 186.3 kB / 4.155 GB, free: 24.58 MB / 0.5261 GB Notification: Performance of SimCode: time 1.706e-06/11.1, allocations: 4 kB / 4.155 GB, free: 24.57 MB / 0.5261 GB Notification: Performance of Templates: time 0.4968/11.59, allocations: 110.5 MB / 4.263 GB, free: 62.11 MB / 0.5417 GB