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.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadModel(ModelicaTest): time 1.916/1.916, allocations: 209.3 MB / 224.4 MB, free: 0.5039 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.224e-05/3.221e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3564, allocations: 48.69 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.09774/0.4542, allocations: 53.65 MB / 378.5 MB, free: 9.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0511/0.5054, allocations: 24.09 MB / 402.6 MB, free: 1.699 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002509/0.508, allocations: 67.5 kB / 402.6 MB, free: 1.633 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003187/0.5112, allocations: 0.7271 MB / 403.4 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0197/0.531, allocations: 4.456 MB / 407.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01894/0.5499, allocations: 4.844 MB / 412.7 MB, free: 7.59 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005516/0.5555, allocations: 1.95 MB / 414.6 MB, free: 5.641 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.5571, allocations: 0.6441 MB / 415.3 MB, free: 4.996 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003805/0.561, allocations: 1.173 MB / 416.4 MB, free: 3.82 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03102/0.592, allocations: 12.01 MB / 428.4 MB, free: 7.805 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02595/0.6181, allocations: 8.573 MB / 437 MB, free: 15.22 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004252/0.6224, allocations: 0.5078 MB / 437.5 MB, free: 14.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001336/0.6238, allocations: 490.6 kB / 438 MB, free: 14.23 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000849/0.6247, allocations: 176 kB / 438.2 MB, free: 14.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01459/0.6393, allocations: 4.978 MB / 443.2 MB, free: 9.074 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6393, allocations: 0 / 443.2 MB, free: 9.074 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.179e-06/0.6393, allocations: 4 kB / 443.2 MB, free: 9.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.55e-05/0.6394, allocations: 0 / 443.2 MB, free: 9.07 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.00913/0.6486, allocations: 2.432 MB / 445.6 MB, free: 6.578 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.6486, allocations: 12.03 kB / 445.6 MB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005594/0.6542, allocations: 0.5325 MB / 446.1 MB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/0.6577, allocations: 1.082 MB / 447.2 MB, free: 4.902 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002158/0.6579, allocations: 118.3 kB / 447.3 MB, free: 4.785 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004297/0.6584, allocations: 127.9 kB / 447.5 MB, free: 4.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008177/0.6666, allocations: 2.208 MB / 449.7 MB, free: 2.336 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.605e-05/0.6667, allocations: 7.875 kB / 449.7 MB, free: 2.328 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002603/0.667, allocations: 59.98 kB / 449.7 MB, free: 2.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002911/0.6673, allocations: 114.2 kB / 449.8 MB, free: 2.156 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008843/0.6762, allocations: 2.042 MB / 451.9 MB, free: 108 kB / 378.7 MB 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.02099/0.6972, allocations: 9.577 MB / 461.5 MB, free: 5.703 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005974/0.7033, allocations: 1.374 MB / 462.8 MB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3366/1.04, allocations: 18.98 MB / 481.8 MB, free: 131.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004795/1.045, allocations: 1.015 MB / 482.8 MB, free: 131.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=94): time 5.54e-06/1.045, allocations: 0 / 482.8 MB, free: 131.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=102): time 0.0236/1.068, allocations: 5.104 MB / 487.9 MB, free: 129.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/1.069, allocations: 223.5 kB / 488.2 MB, free: 129.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002374/1.071, allocations: 0.9557 MB / 489.1 MB, free: 129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000304/1.071, allocations: 47.95 kB / 489.2 MB, free: 129 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006286/1.072, allocations: 0.6576 MB / 489.8 MB, free: 128.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005656/1.073, allocations: 357.6 kB / 490.2 MB, free: 128.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/1.073, allocations: 28.91 kB / 490.2 MB, free: 128.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/1.073, allocations: 364.9 kB / 490.5 MB, free: 127.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/1.075, allocations: 0.6683 MB / 491.2 MB, free: 127.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/1.078, allocations: 1.019 MB / 492.2 MB, free: 127 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/1.081, allocations: 0.8326 MB / 493.1 MB, free: 126.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.096e-05/1.081, allocations: 2.688 kB / 493.1 MB, free: 126.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.007157/1.088, allocations: 1.941 MB / 495 MB, free: 125.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008315/1.089, allocations: 3.781 MB / 498.8 MB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-05/1.089, allocations: 10.52 kB / 498.8 MB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008595/1.09, allocations: 139.5 kB / 498.9 MB, free: 121.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002785/1.093, allocations: 332 kB / 499.3 MB, free: 121.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001128/1.094, allocations: 1.254 MB / 0.4888 GB, free: 120.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002494/1.097, allocations: 155.4 kB / 0.4889 GB, free: 120.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003265/1.097, allocations: 67.64 kB / 0.489 GB, free: 120.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/1.097, allocations: 4.812 kB / 0.489 GB, free: 120.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006427/1.103, allocations: 1.863 MB / 0.4908 GB, free: 120 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.499e-05/1.104, allocations: 11.95 kB / 0.4908 GB, free: 120 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006725/1.104, allocations: 132.8 kB / 0.491 GB, free: 119.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/1.107, allocations: 333.6 kB / 0.4913 GB, free: 119.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/1.108, allocations: 1.261 MB / 0.4925 GB, free: 118.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/1.11, allocations: 155.2 kB / 0.4927 GB, free: 118.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002458/1.11, allocations: 65.92 kB / 0.4927 GB, free: 118.7 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 16 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.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,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 153 * 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.001396/1.112, allocations: 467.9 kB / 0.4932 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004424/1.112, allocations: 136.4 kB / 0.4933 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/1.123, allocations: 4.718 MB / 0.4979 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.094e-05/1.123, allocations: 57.38 kB / 0.498 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/1.123, allocations: 0 / 0.498 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007664/1.13, allocations: 3.948 MB / 0.5018 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01332/1.144, allocations: 6.681 MB / 0.5083 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/1.144, allocations: 2.406 kB / 0.5083 GB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00191/1.146, allocations: 242.3 kB / 0.5086 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/1.147, allocations: 180.4 kB / 0.5087 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002166/1.147, allocations: 35.98 kB / 0.5088 GB, free: 109.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008572/1.148, allocations: 1.286 MB / 0.51 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.148, allocations: 0 / 0.51 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008934/1.157, allocations: 4.311 MB / 0.5142 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.158, allocations: 0.5092 MB / 0.5147 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005299/1.159, allocations: 32 kB / 0.5148 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/1.161, allocations: 123.7 kB / 0.5149 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003028/1.161, allocations: 80.88 kB / 0.515 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/1.161, allocations: 39.98 kB / 0.515 GB, free: 103.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001639/1.163, allocations: 0.841 MB / 0.5158 GB, free: 102.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.163, allocations: 4 kB / 0.5158 GB, free: 102.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006983/1.17, allocations: 2.002 MB / 0.5178 GB, free: 100.6 MB / 410.7 MB 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: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse18.region3boundary,$cse19.region3boundary,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,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.009014/1.179, allocations: 1.837 MB / 0.5196 GB, free: 99.12 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009287/1.188, allocations: 3.244 MB / 0.5227 GB, free: 95.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/1.188, allocations: 0 / 0.5227 GB, free: 95.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003285/1.192, allocations: 1.457 MB / 0.5242 GB, free: 94.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00502/1.197, allocations: 0.5732 MB / 0.5247 GB, free: 93.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01141/1.208, allocations: 5.909 MB / 0.5305 GB, free: 87.97 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001499/1.21, allocations: 1.697 MB / 0.5322 GB, free: 86.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008065/1.21, allocations: 139.3 kB / 0.5323 GB, free: 86.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/1.211, allocations: 0 / 0.5323 GB, free: 86.1 MB / 410.7 MB Notification: Performance of Templates: time 0.1171/1.328, allocations: 66.07 MB / 0.5968 GB, free: 19.98 MB / 410.7 MB