Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.018/2.018, allocations: 209.3 MB / 224.4 MB, free: 0.6602 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.359e-05/4.37e-05, allocations: 3.984 kB / 276.1 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4124, allocations: 48.71 MB / 324.9 MB, free: 2.875 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.131/0.5434, allocations: 74.99 MB / 399.8 MB, free: 4.453 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06431/0.6077, allocations: 30.33 MB / 430.2 MB, free: 6.066 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003438/0.6112, allocations: 95.31 kB / 430.3 MB, free: 5.973 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004298/0.6156, allocations: 1.011 MB / 431.3 MB, free: 4.957 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0231/0.6387, allocations: 5.436 MB / 436.7 MB, free: 15.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02417/0.6629, allocations: 6.179 MB / 442.9 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.008211/0.6712, allocations: 2.987 MB / 445.9 MB, free: 6.312 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002432/0.6737, allocations: 0.9841 MB / 446.9 MB, free: 5.324 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005782/0.6795, allocations: 1.734 MB / 448.6 MB, free: 3.586 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05272/0.7323, allocations: 20.73 MB / 469.3 MB, free: 14.85 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02933/0.7617, allocations: 9.404 MB / 478.7 MB, free: 5.434 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004773/0.7665, allocations: 0.5703 MB / 479.3 MB, free: 4.863 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001914/0.7685, allocations: 0.7284 MB / 480 MB, free: 4.133 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001458/0.77, allocations: 276 kB / 480.3 MB, free: 3.863 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3446/1.115, allocations: 6.265 MB / 486.6 MB, free: 38.74 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/1.115, allocations: 3.812 kB / 486.6 MB, free: 38.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.116e-06/1.115, allocations: 0.9062 kB / 486.6 MB, free: 38.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001781/1.115, allocations: 0 / 486.6 MB, free: 38.74 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: 510 * Number of variables: 510 Notification: Performance of Generate backend data structure: time 0.01429/1.129, allocations: 3.277 MB / 489.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/1.129, allocations: 9.469 kB / 489.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00922/1.139, allocations: 0.8083 MB / 490.7 MB, free: 37.07 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005993/1.145, allocations: 1.57 MB / 492.2 MB, free: 36.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004425/1.145, allocations: 178.9 kB / 492.4 MB, free: 36.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001174/1.146, allocations: 201.2 kB / 492.6 MB, free: 36.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/1.162, allocations: 3.481 MB / 496.1 MB, free: 36.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/1.162, allocations: 5.938 kB / 496.1 MB, free: 36.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006022/1.162, allocations: 85 kB / 496.2 MB, free: 36.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005002/1.163, allocations: 192.5 kB / 496.4 MB, free: 36.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01518/1.178, allocations: 3.276 MB / 499.6 MB, free: 36.24 MB / 410.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.03211/1.21, allocations: 14.97 MB / 0.5025 GB, free: 27.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009377/1.22, allocations: 2.31 MB / 0.5048 GB, free: 27.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05925/1.279, allocations: 19 MB / 0.5233 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007142/1.286, allocations: 1.616 MB / 0.5249 GB, free: 14.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 6.522e-06/1.286, allocations: 0 / 0.5249 GB, free: 14.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.0355/1.322, allocations: 8.132 MB / 0.5329 GB, free: 12.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/1.322, allocations: 234.9 kB / 0.5331 GB, free: 12.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/1.325, allocations: 1.393 MB / 0.5345 GB, free: 11.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005861/1.326, allocations: 59.27 kB / 0.5345 GB, free: 11.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/1.327, allocations: 0.9382 MB / 0.5354 GB, free: 10.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001066/1.328, allocations: 0.5806 MB / 0.536 GB, free: 10.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/1.328, allocations: 43.75 kB / 0.536 GB, free: 10.31 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/1.329, allocations: 390.5 kB / 0.5364 GB, free: 9.953 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003947/1.333, allocations: 1.147 MB / 0.5375 GB, free: 9.168 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004528/1.337, allocations: 1.662 MB / 0.5391 GB, free: 7.699 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004559/1.342, allocations: 1.374 MB / 0.5405 GB, free: 6.816 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.441e-05/1.342, allocations: 4 kB / 0.5405 GB, free: 6.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01317/1.355, allocations: 3.844 MB / 0.5442 GB, free: 4.223 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001706/1.357, allocations: 5.788 MB / 0.5499 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/1.357, allocations: 20 kB / 0.5499 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02574/1.383, allocations: 2.942 MB / 0.5528 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/1.385, allocations: 330 kB / 0.5531 GB, free: 11.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/1.396, allocations: 3.477 MB / 0.5565 GB, free: 8.672 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004691/1.401, allocations: 269.5 kB / 0.5568 GB, free: 8.441 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007814/1.402, allocations: 105 kB / 0.5569 GB, free: 8.359 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.402, allocations: 7.953 kB / 0.5569 GB, free: 8.352 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01329/1.415, allocations: 3.614 MB / 0.5604 GB, free: 5.914 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.934e-05/1.415, allocations: 16.16 kB / 0.5604 GB, free: 5.898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/1.427, allocations: 1.692 MB / 0.5621 GB, free: 4.465 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002902/1.43, allocations: 372.1 kB / 0.5624 GB, free: 4.141 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007628/1.437, allocations: 2.749 MB / 0.5651 GB, free: 2.066 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/1.441, allocations: 257.2 kB / 0.5653 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004638/1.441, allocations: 99.44 kB / 0.5654 GB, free: 1.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 22 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,pipe3.statesFM[2].phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 86} Notification: Performance of prepare postOptimizeDAE: time 0.002214/1.444, allocations: 0.6482 MB / 0.5661 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006979/1.444, allocations: 197.6 kB / 0.5663 GB, free: 1.137 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01809/1.462, allocations: 7.733 MB / 0.5738 GB, free: 11.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001411/1.463, allocations: 92.38 kB / 0.5739 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/1.463, allocations: 0 / 0.5739 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01453/1.477, allocations: 6.636 MB / 0.5804 GB, free: 7.254 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0255/1.503, allocations: 10.85 MB / 0.591 GB, free: 140 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/1.503, allocations: 4 kB / 0.591 GB, free: 136 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003533/1.506, allocations: 407.7 kB / 0.5914 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002104/1.509, allocations: 351.1 kB / 0.5917 GB, free: 15.48 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004972/1.509, allocations: 60.95 kB / 0.5918 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002298/1.511, allocations: 2.581 MB / 0.5943 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.511, allocations: 4.094 kB / 0.5943 GB, free: 12.98 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01797/1.529, allocations: 7.147 MB / 0.6013 GB, free: 8.156 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002607/1.532, allocations: 0.735 MB / 0.602 GB, free: 7.531 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009209/1.533, allocations: 54.73 kB / 0.602 GB, free: 7.508 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003378/1.536, allocations: 196.3 kB / 0.6022 GB, free: 7.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006639/1.537, allocations: 144.5 kB / 0.6024 GB, free: 7.215 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002672/1.537, allocations: 62.98 kB / 0.6024 GB, free: 7.168 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00331/1.541, allocations: 1.164 MB / 0.6036 GB, free: 6.289 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.32e-07/1.541, allocations: 0 / 0.6036 GB, free: 6.289 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01224/1.553, allocations: 2.513 MB / 0.606 GB, free: 3.934 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valve.filter.x[1],valve.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe2.mediums[2].p,pipe2.mediums[2].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 53 ($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,$cse21.region3boundary,$cse22.region3boundary,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.region,$whenCondition1,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[1].phase,pipe2.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,pipe3.statesFM[2].phase) * Number of discrete states: 5 (valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 25 * 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,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01163/1.565, allocations: 2.096 MB / 0.6081 GB, free: 2.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01825/1.583, allocations: 5.344 MB / 0.6133 GB, free: 13.72 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/1.583, allocations: 0 / 0.6133 GB, free: 13.72 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006843/1.59, allocations: 2.419 MB / 0.6156 GB, free: 11.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008549/1.599, allocations: 0.8691 MB / 0.6165 GB, free: 10.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02354/1.622, allocations: 9.193 MB / 0.6255 GB, free: 1.352 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003706/1.626, allocations: 2.253 MB / 0.6277 GB, free: 15.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/1.627, allocations: 191.3 kB / 0.6279 GB, free: 14.88 MB / 490.7 MB Notification: Performance of SimCode: time 3.627e-06/1.627, allocations: 0 / 0.6279 GB, free: 14.88 MB / 490.7 MB Notification: Performance of Templates: time 0.4665/2.094, allocations: 94.12 MB / 0.7198 GB, free: 174.3 MB / 0.4948 GB