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.423/2.423, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.057e-05/6.072e-05, allocations: 7.984 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.3991, allocations: 54.86 MB / 362.9 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.09374/0.4929, allocations: 54.06 MB / 416.9 MB, free: 7.691 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0515/0.5445, allocations: 24.21 MB / 441.1 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002376/0.5469, allocations: 67.5 kB / 441.2 MB, free: 15.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003292/0.5503, allocations: 0.7349 MB / 441.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01906/0.5694, allocations: 4.498 MB / 446.4 MB, free: 10.11 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01993/0.5894, allocations: 4.87 MB / 451.3 MB, free: 5.234 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00574/0.5951, allocations: 1.978 MB / 453.3 MB, free: 3.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001609/0.5968, allocations: 0.6491 MB / 453.9 MB, free: 2.602 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004029/0.6008, allocations: 1.196 MB / 455.1 MB, free: 1.402 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03122/0.6321, allocations: 12.14 MB / 467.2 MB, free: 5.258 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02624/0.6584, allocations: 8.701 MB / 475.9 MB, free: 12.55 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004217/0.6627, allocations: 0.5234 MB / 476.5 MB, free: 12.02 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00131/0.664, allocations: 486.6 kB / 476.9 MB, free: 11.55 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008109/0.6649, allocations: 172 kB / 477.1 MB, free: 11.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01507/0.68, allocations: 5.04 MB / 482.2 MB, free: 6.328 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.68, allocations: 0 / 482.2 MB, free: 6.328 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.68, allocations: 0 / 482.2 MB, free: 6.328 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.295e-05/0.6801, allocations: 0 / 482.2 MB, free: 6.328 MB / 410.7 MB 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.009524/0.6897, allocations: 2.49 MB / 484.6 MB, free: 3.777 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.6897, allocations: 8.031 kB / 484.7 MB, free: 3.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005538/0.6953, allocations: 0.5365 MB / 485.2 MB, free: 3.23 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00345/0.6988, allocations: 1.082 MB / 486.3 MB, free: 2.102 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001827/0.699, allocations: 122.4 kB / 486.4 MB, free: 1.98 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003406/0.6994, allocations: 123.9 kB / 486.5 MB, free: 1.859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007723/0.7071, allocations: 2.231 MB / 488.7 MB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.915e-05/0.7072, allocations: 7.984 kB / 488.8 MB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002229/0.7074, allocations: 47.98 kB / 488.8 MB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002722/0.7077, allocations: 118.2 kB / 488.9 MB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008172/0.7159, allocations: 2.05 MB / 491 MB, free: 13.28 MB / 426.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.02001/0.736, allocations: 9.589 MB / 0.4888 GB, free: 2.871 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005981/0.742, allocations: 1.374 MB / 0.4902 GB, free: 1.484 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3838/1.126, allocations: 19.01 MB / 0.5087 GB, free: 112.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004272/1.13, allocations: 1.021 MB / 0.5097 GB, free: 112 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 5.831e-06/1.13, allocations: 0 / 0.5097 GB, free: 112 MB / 426.7 MB Notification: Performance of matching and sorting (n=104): time 0.0219/1.152, allocations: 5.124 MB / 0.5147 GB, free: 109.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/1.152, allocations: 222.6 kB / 0.5149 GB, free: 109 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001839/1.154, allocations: 0.9497 MB / 0.5159 GB, free: 108 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002805/1.155, allocations: 46.69 kB / 0.5159 GB, free: 107.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006124/1.155, allocations: 0.6676 MB / 0.5166 GB, free: 107.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005541/1.156, allocations: 359.2 kB / 0.5169 GB, free: 106.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/1.156, allocations: 28 kB / 0.5169 GB, free: 106.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001436/1.156, allocations: 365.7 kB / 0.5173 GB, free: 106.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002202/1.158, allocations: 0.6793 MB / 0.5179 GB, free: 105.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002473/1.161, allocations: 1.029 MB / 0.5189 GB, free: 104.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/1.163, allocations: 0.8322 MB / 0.5198 GB, free: 103.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.356e-05/1.163, allocations: 0 / 0.5198 GB, free: 103.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.00612/1.17, allocations: 1.945 MB / 0.5217 GB, free: 101.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000823/1.17, allocations: 3.782 MB / 0.5254 GB, free: 97.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.065e-05/1.171, allocations: 15.95 kB / 0.5254 GB, free: 97.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008008/1.171, allocations: 137.6 kB / 0.5255 GB, free: 97.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/1.174, allocations: 335 kB / 0.5258 GB, free: 97.34 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001048/1.175, allocations: 1.249 MB / 0.527 GB, free: 96.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002404/1.178, allocations: 163.1 kB / 0.5272 GB, free: 95.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/1.178, allocations: 63.98 kB / 0.5273 GB, free: 95.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/1.178, allocations: 8 kB / 0.5273 GB, free: 95.81 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005822/1.184, allocations: 1.846 MB / 0.5291 GB, free: 93.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.467e-05/1.184, allocations: 14.86 kB / 0.5291 GB, free: 93.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006337/1.185, allocations: 137.6 kB / 0.5292 GB, free: 93.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/1.187, allocations: 331.5 kB / 0.5295 GB, free: 93.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009454/1.188, allocations: 1.253 MB / 0.5308 GB, free: 92.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/1.19, allocations: 157.5 kB / 0.5309 GB, free: 92.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002269/1.19, allocations: 63.98 kB / 0.531 GB, free: 91.95 MB / 426.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: 17 (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,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 (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.001226/1.192, allocations: 477.4 kB / 0.5314 GB, free: 91.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003875/1.192, allocations: 134.4 kB / 0.5315 GB, free: 91.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009854/1.202, allocations: 4.717 MB / 0.5362 GB, free: 86.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.154e-05/1.202, allocations: 59.91 kB / 0.5362 GB, free: 86.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/1.202, allocations: 0 / 0.5362 GB, free: 86.52 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007372/1.209, allocations: 3.944 MB / 0.5401 GB, free: 82.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/1.222, allocations: 6.688 MB / 0.5466 GB, free: 75.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/1.222, allocations: 4 kB / 0.5466 GB, free: 75.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001973/1.224, allocations: 235.7 kB / 0.5468 GB, free: 75.51 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/1.225, allocations: 181.4 kB / 0.547 GB, free: 75.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/1.225, allocations: 39.97 kB / 0.547 GB, free: 75.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009262/1.226, allocations: 1.288 MB / 0.5483 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/1.226, allocations: 0 / 0.5483 GB, free: 73.95 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008983/1.235, allocations: 4.321 MB / 0.5525 GB, free: 69.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/1.237, allocations: 0.5131 MB / 0.553 GB, free: 69.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004796/1.237, allocations: 28 kB / 0.553 GB, free: 69.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.239, allocations: 119.8 kB / 0.5532 GB, free: 68.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002748/1.239, allocations: 100.7 kB / 0.5532 GB, free: 68.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/1.239, allocations: 39.98 kB / 0.5533 GB, free: 68.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001571/1.241, allocations: 0.8451 MB / 0.5541 GB, free: 67.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.241, allocations: 0 / 0.5541 GB, free: 67.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00697/1.248, allocations: 1.999 MB / 0.5561 GB, free: 66.09 MB / 426.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: 36 ($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,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.009277/1.257, allocations: 1.861 MB / 0.5579 GB, free: 64.57 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008735/1.266, allocations: 3.278 MB / 0.5611 GB, free: 61.26 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.266, allocations: 1.375 kB / 0.5611 GB, free: 61.26 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003375/1.27, allocations: 1.498 MB / 0.5625 GB, free: 59.75 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004949/1.275, allocations: 0.5718 MB / 0.5631 GB, free: 59.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/1.285, allocations: 5.916 MB / 0.5689 GB, free: 53.33 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/1.287, allocations: 1.697 MB / 0.5705 GB, free: 51.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008207/1.288, allocations: 139.4 kB / 0.5707 GB, free: 51.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.203e-06/1.288, allocations: 0 / 0.5707 GB, free: 51.46 MB / 426.7 MB Notification: Performance of Templates: time 0.1241/1.412, allocations: 66.4 MB / 0.6355 GB, free: 1.012 MB / 442.7 MB