Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 2.203/2.203, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.223e-05, allocations: 4.938 kB / 304.9 MB, free: 5.664 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3249, allocations: 54.85 MB / 359.8 MB, free: 2.656 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.28/6.605, allocations: 2.655 GB / 3.007 GB, free: 115.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/6.605, allocations: 86.5 kB / 3.007 GB, free: 115.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.522/9.127, allocations: 0.5733 GB / 3.58 GB, free: 44.29 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.853e-06/9.127, allocations: 3.344 kB / 3.58 GB, free: 44.29 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001582/9.127, allocations: 47.55 kB / 3.58 GB, free: 44.28 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.0096/9.137, allocations: 2.845 MB / 3.583 GB, free: 42.82 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/9.137, allocations: 14.56 kB / 3.583 GB, free: 42.82 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005757/9.143, allocations: 0.5418 MB / 3.584 GB, free: 42.72 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004242/9.147, allocations: 1.437 MB / 3.585 GB, free: 42.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001413/9.147, allocations: 106.7 kB / 3.585 GB, free: 42.36 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000292/9.148, allocations: 129.5 kB / 3.585 GB, free: 42.36 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005698/9.153, allocations: 2.256 MB / 3.587 GB, free: 41.98 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.51e-05/9.153, allocations: 3.938 kB / 3.587 GB, free: 41.97 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002154/9.154, allocations: 62.66 kB / 3.587 GB, free: 41.97 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/9.154, allocations: 98.7 kB / 3.588 GB, free: 41.97 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005111/9.159, allocations: 1.939 MB / 3.589 GB, free: 41.96 MB / 0.4948 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.01363/9.172, allocations: 9.646 MB / 3.599 GB, free: 36.04 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003975/9.176, allocations: 1.306 MB / 3.6 GB, free: 36.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/9.178, allocations: 0.6179 MB / 3.601 GB, free: 36 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04139/9.219, allocations: 18.85 MB / 3.619 GB, free: 24.25 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003068/9.222, allocations: 1.037 MB / 3.62 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=96): time 5.057e-06/9.222, allocations: 0 / 3.62 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=104): time 0.01427/9.236, allocations: 4.374 MB / 3.624 GB, free: 23.45 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.092e-05/9.237, allocations: 271 kB / 3.625 GB, free: 23.14 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001843/9.238, allocations: 0.9792 MB / 3.626 GB, free: 22.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002669/9.239, allocations: 51.08 kB / 3.626 GB, free: 22.94 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004646/9.239, allocations: 0.6341 MB / 3.626 GB, free: 22.59 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003444/9.24, allocations: 356.8 kB / 3.627 GB, free: 22.37 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/9.24, allocations: 28.75 kB / 3.627 GB, free: 22.37 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001035/9.24, allocations: 360.9 kB / 3.627 GB, free: 22.06 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/9.241, allocations: 0.6076 MB / 3.628 GB, free: 22.05 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/9.242, allocations: 0.9313 MB / 3.628 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/9.244, allocations: 0.7724 MB / 3.629 GB, free: 21.65 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.519e-06/9.244, allocations: 1.812 kB / 3.629 GB, free: 21.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003777/9.248, allocations: 1.751 MB / 3.631 GB, free: 21.52 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006442/9.248, allocations: 3.264 MB / 3.634 GB, free: 18.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/9.248, allocations: 13.66 kB / 3.634 GB, free: 18.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005971/9.249, allocations: 128.1 kB / 3.634 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/9.251, allocations: 326.3 kB / 3.635 GB, free: 18.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008587/9.252, allocations: 1.252 MB / 3.636 GB, free: 17.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/9.254, allocations: 159.4 kB / 3.636 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/9.254, allocations: 62.39 kB / 3.636 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/9.254, allocations: 3.281 kB / 3.636 GB, free: 17.07 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003769/9.258, allocations: 1.667 MB / 3.638 GB, free: 17 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/9.258, allocations: 12.53 kB / 3.638 GB, free: 17 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006155/9.259, allocations: 129.9 kB / 3.638 GB, free: 16.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/9.26, allocations: 333.1 kB / 3.638 GB, free: 16.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/9.262, allocations: 1.249 MB / 3.639 GB, free: 31.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/9.263, allocations: 151.9 kB / 3.639 GB, free: 31.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/9.263, allocations: 64.02 kB / 3.64 GB, free: 31.94 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (152): * Single equations (assignments): 147 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004859/9.264, allocations: 227 kB / 3.64 GB, free: 31.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003377/9.264, allocations: 133.7 kB / 3.64 GB, free: 31.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006982/9.271, allocations: 4.678 MB / 3.644 GB, free: 31.21 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.138e-05/9.271, allocations: 57.28 kB / 3.645 GB, free: 31.21 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.805e-06/9.271, allocations: 0 / 3.645 GB, free: 31.21 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005326/9.277, allocations: 3.901 MB / 3.648 GB, free: 30.75 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009864/9.287, allocations: 6.656 MB / 3.655 GB, free: 28.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/9.287, allocations: 3.562 kB / 3.655 GB, free: 28.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/9.288, allocations: 242.1 kB / 3.655 GB, free: 28.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009307/9.289, allocations: 176.7 kB / 3.655 GB, free: 28.28 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/9.289, allocations: 35.75 kB / 3.655 GB, free: 28.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001119/9.29, allocations: 1.291 MB / 3.657 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.481e-06/9.29, allocations: 0 / 3.657 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006359/9.297, allocations: 4.157 MB / 3.661 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/9.298, allocations: 0.5292 MB / 3.661 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000322/9.298, allocations: 35.58 kB / 3.661 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/9.3, allocations: 127 kB / 3.661 GB, free: 24.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002204/9.3, allocations: 84.95 kB / 3.661 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/9.3, allocations: 43.48 kB / 3.661 GB, free: 24.86 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001523/9.301, allocations: 0.8505 MB / 3.662 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.33e-07/9.301, allocations: 0 / 3.662 GB, free: 24.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007455/9.309, allocations: 2.186 MB / 3.664 GB, free: 24.04 MB / 0.5105 GB 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 36 ($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,$cse22.phase,$cse22.region,$cse24.region3boundary,$cse25.region3boundary,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 15 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.009712/9.319, allocations: 2.4 MB / 3.667 GB, free: 23.39 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00598/9.325, allocations: 3.009 MB / 3.67 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.721e-06/9.325, allocations: 7.812 kB / 3.67 GB, free: 22.23 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002327/9.327, allocations: 1.416 MB / 3.671 GB, free: 21.59 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003607/9.331, allocations: 0.5695 MB / 3.672 GB, free: 21.44 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5861/9.917, allocations: 126.2 MB / 3.795 GB, free: 51.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001303/9.918, allocations: 1.703 MB / 3.796 GB, free: 50.34 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006898/9.919, allocations: 132.9 kB / 3.797 GB, free: 50.34 MB / 0.5105 GB Notification: Performance of SimCode: time 3.513e-06/9.919, allocations: 0 / 3.797 GB, free: 50.34 MB / 0.5105 GB Notification: Performance of Templates: time 0.09462/10.01, allocations: 68.42 MB / 3.863 GB, free: 29.93 MB / 0.5105 GB