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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadModel(ModelicaTest): time 2.591/2.591, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.644e-05/3.634e-05, allocations: 4 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3922, allocations: 54.86 MB / 362.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.1375/0.5298, allocations: 75.57 MB / 438.4 MB, free: 2.102 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06539/0.5953, allocations: 30.49 MB / 468.9 MB, free: 3.539 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003756/0.5991, allocations: 99.31 kB / 469 MB, free: 3.441 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004824/0.604, allocations: 1.011 MB / 470 MB, free: 2.426 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02352/0.6276, allocations: 5.495 MB / 475.5 MB, free: 12.91 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02429/0.6519, allocations: 6.235 MB / 481.8 MB, free: 6.664 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008392/0.6603, allocations: 3.034 MB / 484.8 MB, free: 3.621 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00253/0.6629, allocations: 0.9957 MB / 485.8 MB, free: 2.625 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005966/0.6689, allocations: 1.753 MB / 487.5 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4198/1.089, allocations: 20.93 MB / 0.4966 GB, free: 25.87 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02644/1.115, allocations: 9.55 MB / 0.5059 GB, free: 25.85 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005289/1.121, allocations: 0.5791 MB / 0.5064 GB, free: 25.85 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001969/1.123, allocations: 0.7444 MB / 0.5072 GB, free: 25.84 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/1.124, allocations: 271.4 kB / 0.5074 GB, free: 25.84 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01772/1.142, allocations: 6.335 MB / 0.5136 GB, free: 25.44 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/1.142, allocations: 0 / 0.5136 GB, free: 25.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.142, allocations: 0 / 0.5136 GB, free: 25.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001458/1.142, allocations: 0 / 0.5136 GB, free: 25.44 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01321/1.155, allocations: 3.359 MB / 0.5169 GB, free: 23.87 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/1.156, allocations: 10.28 kB / 0.5169 GB, free: 23.87 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008915/1.164, allocations: 0.83 MB / 0.5177 GB, free: 23.73 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005125/1.17, allocations: 1.578 MB / 0.5193 GB, free: 23.32 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002926/1.17, allocations: 177.2 kB / 0.5194 GB, free: 23.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007939/1.171, allocations: 200.5 kB / 0.5196 GB, free: 23.32 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01236/1.183, allocations: 3.489 MB / 0.523 GB, free: 22.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.972e-05/1.183, allocations: 4.625 kB / 0.523 GB, free: 22.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003803/1.184, allocations: 82.12 kB / 0.5231 GB, free: 22.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003979/1.184, allocations: 192.4 kB / 0.5233 GB, free: 22.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/1.197, allocations: 3.275 MB / 0.5265 GB, free: 22.82 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.02909/1.226, allocations: 14.99 MB / 0.5411 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008701/1.235, allocations: 2.305 MB / 0.5434 GB, free: 9.367 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06286/1.298, allocations: 19.04 MB / 0.562 GB, free: 4.469 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007096/1.305, allocations: 1.616 MB / 0.5635 GB, free: 3.211 MB / 442.7 MB Notification: Performance of pre-optimization done (n=155): time 6.473e-06/1.305, allocations: 4 kB / 0.5635 GB, free: 3.207 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.03584/1.341, allocations: 8.147 MB / 0.5715 GB, free: 13.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001806/1.341, allocations: 226.9 kB / 0.5717 GB, free: 12.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/1.345, allocations: 1.397 MB / 0.5731 GB, free: 11.77 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005499/1.345, allocations: 56.77 kB / 0.5731 GB, free: 11.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/1.346, allocations: 0.9483 MB / 0.5741 GB, free: 11.09 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/1.347, allocations: 0.5784 MB / 0.5746 GB, free: 10.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002371/1.348, allocations: 48 kB / 0.5747 GB, free: 10.58 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002519/1.348, allocations: 393.9 kB / 0.575 GB, free: 10.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004043/1.352, allocations: 1.142 MB / 0.5762 GB, free: 9.438 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004898/1.357, allocations: 1.667 MB / 0.5778 GB, free: 7.969 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004902/1.362, allocations: 1.387 MB / 0.5791 GB, free: 7.078 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-05/1.362, allocations: 4 kB / 0.5792 GB, free: 7.074 MB / 458.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01392/1.376, allocations: 3.841 MB / 0.5829 GB, free: 4.488 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002891/1.379, allocations: 5.793 MB / 0.5886 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001041/1.379, allocations: 12 kB / 0.5886 GB, free: 14.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02617/1.405, allocations: 2.955 MB / 0.5915 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/1.408, allocations: 321.3 kB / 0.5918 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/1.418, allocations: 3.49 MB / 0.5952 GB, free: 8.926 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004018/1.422, allocations: 273.2 kB / 0.5954 GB, free: 8.691 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005074/1.423, allocations: 105 kB / 0.5955 GB, free: 8.609 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/1.423, allocations: 4 kB / 0.5955 GB, free: 8.605 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01259/1.436, allocations: 3.562 MB / 0.599 GB, free: 6.223 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.099e-05/1.436, allocations: 16 kB / 0.599 GB, free: 6.207 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01201/1.448, allocations: 1.688 MB / 0.6007 GB, free: 4.781 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002957/1.451, allocations: 365.5 kB / 0.601 GB, free: 4.461 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008082/1.459, allocations: 2.764 MB / 0.6037 GB, free: 2.375 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003356/1.462, allocations: 255.1 kB / 0.604 GB, free: 2.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005878/1.463, allocations: 104.8 kB / 0.6041 GB, free: 2.078 MB / 474.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: 23 (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,valveOpening1.nextEventScaled,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.002369/1.465, allocations: 0.6425 MB / 0.6047 GB, free: 1.645 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007572/1.466, allocations: 197.6 kB / 0.6049 GB, free: 1.449 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01877/1.485, allocations: 7.734 MB / 0.6124 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/1.485, allocations: 90.17 kB / 0.6125 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/1.485, allocations: 0 / 0.6125 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01514/1.5, allocations: 6.633 MB / 0.619 GB, free: 7.566 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/1.525, allocations: 10.87 MB / 0.6296 GB, free: 452 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/1.525, allocations: 3.953 kB / 0.6296 GB, free: 448 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003409/1.529, allocations: 402 kB / 0.63 GB, free: 76 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/1.531, allocations: 350.3 kB / 0.6303 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004277/1.531, allocations: 65.64 kB / 0.6304 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002417/1.534, allocations: 2.574 MB / 0.6329 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.534, allocations: 4.031 kB / 0.6329 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/1.551, allocations: 7.15 MB / 0.6399 GB, free: 7.566 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002422/1.554, allocations: 0.7338 MB / 0.6406 GB, free: 6.809 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007769/1.555, allocations: 55.92 kB / 0.6407 GB, free: 6.758 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00279/1.558, allocations: 191.7 kB / 0.6409 GB, free: 6.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000507/1.558, allocations: 149.7 kB / 0.641 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/1.558, allocations: 71.91 kB / 0.6411 GB, free: 6.355 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002676/1.561, allocations: 1.163 MB / 0.6422 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.254e-06/1.561, allocations: 0 / 0.6422 GB, free: 5.172 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01168/1.573, allocations: 2.529 MB / 0.6447 GB, free: 2.645 MB / 0.4948 GB 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: 54 ($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,valveOpening1.nextEventScaled,pipe3.statesFM[2].phase) * 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 (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.01259/1.585, allocations: 2.107 MB / 0.6467 GB, free: 0.7266 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01658/1.602, allocations: 5.413 MB / 0.652 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/1.602, allocations: 2 kB / 0.652 GB, free: 11.35 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006511/1.609, allocations: 2.45 MB / 0.6544 GB, free: 8.918 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007894/1.617, allocations: 0.8724 MB / 0.6553 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02094/1.638, allocations: 9.203 MB / 0.6642 GB, free: 14.91 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002741/1.64, allocations: 2.257 MB / 0.6664 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001224/1.642, allocations: 187.4 kB / 0.6666 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of SimCode: time 1.192e-06/1.642, allocations: 3.656 kB / 0.6666 GB, free: 12.44 MB / 0.5261 GB Notification: Performance of Templates: time 0.5338/2.176, allocations: 94.49 MB / 0.7589 GB, free: 188 MB / 0.5417 GB