Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,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.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 1.969/1.969, allocations: 209.2 MB / 224.4 MB, free: 0.8594 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.19e-05, allocations: 3.594 kB / 276.2 MB, free: 15.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3423, allocations: 48.68 MB / 324.8 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1309/0.4732, allocations: 74.99 MB / 399.8 MB, free: 4.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06414/0.5374, allocations: 30.34 MB / 430.2 MB, free: 6.086 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003318/0.5408, allocations: 95.31 kB / 430.3 MB, free: 5.992 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004235/0.545, allocations: 1.019 MB / 431.3 MB, free: 4.969 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02209/0.5672, allocations: 5.432 MB / 436.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02363/0.5908, allocations: 6.167 MB / 442.9 MB, free: 9.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.007926/0.5988, allocations: 2.995 MB / 445.9 MB, free: 6.336 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002316/0.6012, allocations: 0.9841 MB / 446.8 MB, free: 5.348 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005424/0.6066, allocations: 1.738 MB / 448.6 MB, free: 3.605 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0539/0.6606, allocations: 20.72 MB / 469.3 MB, free: 14.87 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02816/0.6888, allocations: 9.404 MB / 478.7 MB, free: 5.457 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004493/0.6933, allocations: 0.5664 MB / 479.3 MB, free: 4.891 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001918/0.6953, allocations: 0.7362 MB / 480 MB, free: 4.152 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001633/0.697, allocations: 272 kB / 480.3 MB, free: 3.887 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3846/1.082, allocations: 6.262 MB / 486.5 MB, free: 38.64 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/1.082, allocations: 1.125 kB / 486.5 MB, free: 38.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.268e-06/1.082, allocations: 0 / 486.5 MB, free: 38.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001737/1.082, allocations: 0.75 kB / 486.5 MB, free: 38.64 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.01985/1.102, allocations: 3.284 MB / 489.8 MB, free: 37.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.61e-05/1.102, allocations: 8.906 kB / 489.8 MB, free: 37.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01511/1.117, allocations: 0.81 MB / 490.6 MB, free: 36.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007698/1.125, allocations: 1.567 MB / 492.2 MB, free: 36.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005793/1.125, allocations: 177.9 kB / 492.4 MB, free: 36.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001451/1.127, allocations: 202.8 kB / 492.6 MB, free: 36.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02125/1.148, allocations: 3.482 MB / 496.1 MB, free: 36.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001272/1.148, allocations: 6 kB / 496.1 MB, free: 36.16 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006975/1.149, allocations: 84.31 kB / 496.2 MB, free: 36.16 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004782/1.15, allocations: 193 kB / 496.3 MB, free: 36.16 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/1.164, allocations: 3.273 MB / 499.6 MB, free: 36.14 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.0313/1.196, allocations: 14.97 MB / 0.5025 GB, free: 27.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009036/1.205, allocations: 2.312 MB / 0.5048 GB, free: 27.05 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05773/1.263, allocations: 19 MB / 0.5233 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007033/1.27, allocations: 1.613 MB / 0.5249 GB, free: 14.58 MB / 410.7 MB Notification: Performance of pre-optimization done (n=153): time 6.312e-06/1.27, allocations: 0 / 0.5249 GB, free: 14.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=169): time 0.03454/1.304, allocations: 8.128 MB / 0.5329 GB, free: 12.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.449e-05/1.304, allocations: 236.3 kB / 0.5331 GB, free: 12.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00308/1.308, allocations: 1.388 MB / 0.5344 GB, free: 11.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005725/1.308, allocations: 58.14 kB / 0.5345 GB, free: 11.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00092/1.309, allocations: 0.9411 MB / 0.5354 GB, free: 10.78 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001022/1.31, allocations: 0.5861 MB / 0.536 GB, free: 10.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/1.31, allocations: 43.5 kB / 0.536 GB, free: 10.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/1.311, allocations: 391 kB / 0.5364 GB, free: 9.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003843/1.314, allocations: 1.14 MB / 0.5375 GB, free: 9.133 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004438/1.319, allocations: 1.661 MB / 0.5391 GB, free: 7.664 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004472/1.323, allocations: 1.374 MB / 0.5405 GB, free: 6.781 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.227e-05/1.324, allocations: 10.94 kB / 0.5405 GB, free: 6.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=268) (initialization): time 0.01326/1.337, allocations: 3.848 MB / 0.5442 GB, free: 4.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001646/1.339, allocations: 5.782 MB / 0.5499 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.612e-05/1.339, allocations: 16.75 kB / 0.5499 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02569/1.364, allocations: 2.949 MB / 0.5528 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002499/1.367, allocations: 326.1 kB / 0.5531 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/1.378, allocations: 3.477 MB / 0.5565 GB, free: 8.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004408/1.382, allocations: 265.3 kB / 0.5567 GB, free: 8.402 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007344/1.383, allocations: 109.3 kB / 0.5569 GB, free: 8.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/1.383, allocations: 7.953 kB / 0.5569 GB, free: 8.312 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01381/1.397, allocations: 3.623 MB / 0.5604 GB, free: 5.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.478e-05/1.397, allocations: 12 kB / 0.5604 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/1.409, allocations: 1.694 MB / 0.5621 GB, free: 4.422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002826/1.412, allocations: 366.6 kB / 0.5624 GB, free: 4.102 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007697/1.42, allocations: 2.761 MB / 0.5651 GB, free: 2.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00364/1.423, allocations: 249.5 kB / 0.5653 GB, free: 1.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006913/1.424, allocations: 103.2 kB / 0.5654 GB, free: 1.727 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.002647/1.427, allocations: 0.6463 MB / 0.5661 GB, free: 1.289 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007545/1.428, allocations: 197.6 kB / 0.5663 GB, free: 1.094 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01855/1.446, allocations: 7.729 MB / 0.5738 GB, free: 11.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001209/1.446, allocations: 92.94 kB / 0.5739 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/1.446, allocations: 4 kB / 0.5739 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0148/1.461, allocations: 6.638 MB / 0.5804 GB, free: 7.203 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02536/1.487, allocations: 10.85 MB / 0.591 GB, free: 92 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-05/1.487, allocations: 0 / 0.591 GB, free: 92 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003564/1.49, allocations: 402 kB / 0.5914 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002082/1.492, allocations: 359.1 kB / 0.5917 GB, free: 15.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005422/1.493, allocations: 56.72 kB / 0.5918 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002299/1.495, allocations: 2.579 MB / 0.5943 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/1.495, allocations: 0 / 0.5943 GB, free: 12.94 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/1.513, allocations: 7.148 MB / 0.6013 GB, free: 8.113 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002514/1.515, allocations: 0.7272 MB / 0.602 GB, free: 7.488 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009817/1.516, allocations: 50.42 kB / 0.602 GB, free: 7.469 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00346/1.52, allocations: 203.5 kB / 0.6022 GB, free: 7.301 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007051/1.521, allocations: 145.9 kB / 0.6024 GB, free: 7.176 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002541/1.521, allocations: 63.78 kB / 0.6024 GB, free: 7.125 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002895/1.524, allocations: 1.163 MB / 0.6036 GB, free: 6.246 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.524, allocations: 7.719 kB / 0.6036 GB, free: 6.242 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01144/1.535, allocations: 2.515 MB / 0.606 GB, free: 3.887 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.01106/1.546, allocations: 2.101 MB / 0.6081 GB, free: 2.039 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01821/1.565, allocations: 5.346 MB / 0.6133 GB, free: 13.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.565, allocations: 0 / 0.6133 GB, free: 13.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006535/1.571, allocations: 2.414 MB / 0.6156 GB, free: 11.32 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008319/1.58, allocations: 0.8661 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.02266/1.602, allocations: 9.189 MB / 0.6255 GB, free: 1.348 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003328/1.606, 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.001322/1.607, allocations: 183.4 kB / 0.6278 GB, free: 14.89 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/1.607, allocations: 1.641 kB / 0.6278 GB, free: 14.89 MB / 490.7 MB Notification: Performance of Templates: time 0.4589/2.066, allocations: 94.13 MB / 0.7198 GB, free: 174.3 MB / 0.4948 GB