Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.398/2.398, allocations: 234.9 MB / 251.1 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.00044, allocations: 8 kB / 314.9 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3537/0.3542, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.782/8.136, allocations: 2.673 GB / 3.034 GB, free: 19.16 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/8.137, allocations: 83.41 kB / 3.035 GB, free: 19.11 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.857/12.99, allocations: 0.8701 GB / 3.905 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.196e-06/12.99, allocations: 0 / 3.905 GB, free: 36.71 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003628/12.99, allocations: 62.58 kB / 3.905 GB, free: 36.71 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.01948/13.01, allocations: 4.019 MB / 3.909 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/13.01, allocations: 11.95 kB / 3.909 GB, free: 34.86 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008259/13.02, allocations: 0.7857 MB / 3.909 GB, free: 34.73 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008555/13.03, allocations: 1.995 MB / 3.911 GB, free: 34.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000341/13.03, allocations: 163.8 kB / 3.912 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/13.03, allocations: 190.9 kB / 3.912 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01221/13.04, allocations: 3.27 MB / 3.915 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.624e-05/13.04, allocations: 4.531 kB / 3.915 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004342/13.04, allocations: 87.41 kB / 3.915 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003056/13.05, allocations: 147.2 kB / 3.915 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/13.06, allocations: 2.952 MB / 3.918 GB, free: 33.79 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.02685/13.08, allocations: 13.89 MB / 3.932 GB, free: 25.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007896/13.09, allocations: 2.028 MB / 3.934 GB, free: 25.29 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05807/13.15, allocations: 18.83 MB / 3.952 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006359/13.16, allocations: 1.593 MB / 3.953 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001911/13.16, allocations: 161.5 kB / 3.954 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=155): time 9.798e-06/13.16, allocations: 2.844 kB / 3.954 GB, free: 13.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=167): time 0.03827/13.2, allocations: 8.348 MB / 3.962 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006207/13.2, allocations: 258.6 kB / 3.962 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003219/13.2, allocations: 1.445 MB / 3.963 GB, free: 27.49 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0006276/13.2, allocations: 58.36 kB / 3.963 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001002/13.2, allocations: 0.8476 MB / 3.964 GB, free: 27.03 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001087/13.2, allocations: 0.5529 MB / 3.965 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002521/13.2, allocations: 32.78 kB / 3.965 GB, free: 26.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002683/13.2, allocations: 386.7 kB / 3.965 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003364/13.21, allocations: 1.017 MB / 3.966 GB, free: 26.36 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004056/13.21, allocations: 1.463 MB / 3.968 GB, free: 25.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003972/13.22, allocations: 1.258 MB / 3.969 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.708e-05/13.22, allocations: 9.062 kB / 3.969 GB, free: 25.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=236) (initialization): time 0.01114/13.23, allocations: 3.009 MB / 3.972 GB, free: 25.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004034/13.23, allocations: 481.6 kB / 3.972 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/13.23, allocations: 11.61 kB / 3.972 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004657/13.23, allocations: 0.5317 MB / 3.973 GB, free: 24.97 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00371/13.24, allocations: 460.2 kB / 3.973 GB, free: 24.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003234/13.24, allocations: 2.702 MB / 3.976 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004328/13.24, allocations: 274.7 kB / 3.976 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006743/13.24, allocations: 96.36 kB / 3.976 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/13.24, allocations: 3.656 kB / 3.976 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008869/13.25, allocations: 2.748 MB / 3.979 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.434e-05/13.25, allocations: 14.31 kB / 3.979 GB, free: 21.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001079/13.25, allocations: 206.5 kB / 3.979 GB, free: 21.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003735/13.26, allocations: 467.2 kB / 3.98 GB, free: 21.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001855/13.26, allocations: 1.876 MB / 3.981 GB, free: 20.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003511/13.26, allocations: 264.2 kB / 3.982 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000516/13.26, allocations: 101.1 kB / 3.982 GB, free: 20.03 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.002312/13.27, allocations: 0.716 MB / 3.983 GB, free: 19.56 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006406/13.27, allocations: 192 kB / 3.983 GB, free: 19.46 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01642/13.28, allocations: 7.439 MB / 3.99 GB, free: 16.15 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001313/13.28, allocations: 80.67 kB / 3.99 GB, free: 16.13 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/13.28, allocations: 7.938 kB / 3.99 GB, free: 16.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01316/13.3, allocations: 6.51 MB / 3.996 GB, free: 13 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02804/13.32, allocations: 11.23 MB / 4.007 GB, free: 4.562 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.943e-05/13.32, allocations: 7.953 kB / 4.007 GB, free: 4.555 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003007/13.33, allocations: 354.8 kB / 4.008 GB, free: 4.262 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004806/13.33, allocations: 1.183 MB / 4.009 GB, free: 3.254 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005705/13.33, allocations: 67.02 kB / 4.009 GB, free: 3.199 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00383/13.34, allocations: 3.21 MB / 4.012 GB, free: 68 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.065e-06/13.34, allocations: 8.062 kB / 4.012 GB, free: 60 kB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01837/13.36, allocations: 7.163 MB / 4.019 GB, free: 9.473 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002391/13.36, allocations: 0.7017 MB / 4.02 GB, free: 8.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008594/13.36, allocations: 51.75 kB / 4.02 GB, free: 8.793 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003171/13.36, allocations: 190.3 kB / 4.02 GB, free: 8.645 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006366/13.36, allocations: 154.8 kB / 4.02 GB, free: 8.547 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002923/13.36, allocations: 70.66 kB / 4.02 GB, free: 8.484 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002874/13.37, allocations: 1.088 MB / 4.021 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.72e-07/13.37, allocations: 0 / 4.021 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01381/13.38, allocations: 2.598 MB / 4.024 GB, free: 5.02 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.01605/13.4, allocations: 2.763 MB / 4.026 GB, free: 2.898 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.4376/13.83, allocations: 4.873 MB / 4.031 GB, free: 65.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/13.83, allocations: 0 / 4.031 GB, free: 65.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006855/13.84, allocations: 2.513 MB / 4.034 GB, free: 65.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008554/13.85, allocations: 0.9097 MB / 4.035 GB, free: 65.15 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3871/14.24, allocations: 130.1 MB / 4.162 GB, free: 52.16 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003047/14.24, allocations: 2.142 MB / 4.164 GB, free: 51.38 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/14.24, allocations: 188.3 kB / 4.164 GB, free: 51.38 MB / 0.5417 GB Notification: Performance of SimCode: time 1.453e-06/14.24, allocations: 0 / 4.164 GB, free: 51.38 MB / 0.5417 GB Notification: Performance of Templates: time 0.6419/14.88, allocations: 110.8 MB / 4.272 GB, free: 61.6 MB / 0.5417 GB