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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadModel(ModelicaTest): time 2.53/2.53, allocations: 234.9 MB / 250.1 MB, free: 10.92 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.822e-05/3.774e-05, allocations: 4 kB / 308 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3827, allocations: 54.88 MB / 362.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.1352/0.518, allocations: 75.56 MB / 438.4 MB, free: 156 kB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.06878/0.5868, allocations: 30.49 MB / 468.9 MB, free: 1.598 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004023/0.5909, allocations: 99.25 kB / 469 MB, free: 1.5 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004588/0.5956, allocations: 1.011 MB / 470 MB, free: 496 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02338/0.619, allocations: 5.502 MB / 475.5 MB, free: 10.96 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02589/0.6449, allocations: 6.222 MB / 481.7 MB, free: 4.727 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.008919/0.6539, allocations: 3.038 MB / 484.8 MB, free: 1.68 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00271/0.6566, allocations: 0.9957 MB / 485.8 MB, free: 0.6836 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3865/1.043, allocations: 1.749 MB / 487.5 MB, free: 9.598 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0504/1.094, allocations: 20.95 MB / 0.4966 GB, free: 9.297 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0266/1.12, allocations: 9.554 MB / 0.5059 GB, free: 6.746 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005161/1.126, allocations: 0.5781 MB / 0.5064 GB, free: 6.168 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002081/1.128, allocations: 0.7401 MB / 0.5072 GB, free: 5.879 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001679/1.129, allocations: 272 kB / 0.5074 GB, free: 5.613 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0171/1.147, allocations: 6.336 MB / 0.5136 GB, free: 2.559 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/1.147, allocations: 4 kB / 0.5136 GB, free: 2.555 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.348e-06/1.147, allocations: 0 / 0.5136 GB, free: 2.555 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001331/1.147, allocations: 1.859 kB / 0.5136 GB, free: 2.555 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: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01306/1.16, allocations: 3.348 MB / 0.5169 GB, free: 15.81 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/1.16, allocations: 8.031 kB / 0.5169 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00889/1.169, allocations: 0.8358 MB / 0.5177 GB, free: 15.21 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005187/1.174, allocations: 1.58 MB / 0.5193 GB, free: 14.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/1.174, allocations: 182.2 kB / 0.5194 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006683/1.175, allocations: 195 kB / 0.5196 GB, free: 14.08 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/1.188, allocations: 3.498 MB / 0.523 GB, free: 12.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.72e-05/1.188, allocations: 7.469 kB / 0.523 GB, free: 12.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003859/1.189, allocations: 82.41 kB / 0.5231 GB, free: 12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004339/1.189, allocations: 186.7 kB / 0.5233 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0139/1.203, allocations: 3.282 MB / 0.5265 GB, free: 9.488 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.03472/1.238, allocations: 14.98 MB / 0.5411 GB, free: 11.66 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009862/1.248, allocations: 2.295 MB / 0.5434 GB, free: 10.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06766/1.315, allocations: 19.03 MB / 0.562 GB, free: 5.117 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007435/1.323, allocations: 1.621 MB / 0.5635 GB, free: 3.855 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 5.851e-06/1.323, allocations: 0 / 0.5635 GB, free: 3.855 MB / 458.7 MB Notification: Performance of matching and sorting (n=171): time 0.0366/1.36, allocations: 8.147 MB / 0.5715 GB, free: 13.74 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002295/1.36, allocations: 230.2 kB / 0.5717 GB, free: 13.47 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003506/1.363, allocations: 1.393 MB / 0.5731 GB, free: 12.42 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005087/1.364, allocations: 60.83 kB / 0.5731 GB, free: 12.38 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/1.365, allocations: 0.944 MB / 0.5741 GB, free: 11.73 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001161/1.366, allocations: 0.5809 MB / 0.5746 GB, free: 11.23 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002584/1.367, allocations: 53.09 kB / 0.5747 GB, free: 11.22 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002501/1.367, allocations: 390.4 kB / 0.5751 GB, free: 10.86 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004071/1.371, allocations: 1.146 MB / 0.5762 GB, free: 10.08 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004919/1.376, allocations: 1.662 MB / 0.5778 GB, free: 8.613 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00481/1.381, allocations: 1.385 MB / 0.5791 GB, free: 7.723 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.306e-05/1.381, allocations: 8 kB / 0.5792 GB, free: 7.715 MB / 474.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01362/1.394, allocations: 3.841 MB / 0.5829 GB, free: 5.129 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002745/1.397, allocations: 5.787 MB / 0.5886 GB, free: 15.01 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.887e-05/1.397, allocations: 12 kB / 0.5886 GB, free: 15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0261/1.424, allocations: 2.958 MB / 0.5915 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002462/1.426, allocations: 317.8 kB / 0.5918 GB, free: 12.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/1.437, allocations: 3.492 MB / 0.5952 GB, free: 9.57 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004135/1.441, allocations: 265.7 kB / 0.5954 GB, free: 9.344 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006837/1.442, allocations: 101.3 kB / 0.5955 GB, free: 9.262 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/1.442, allocations: 4 kB / 0.5955 GB, free: 9.258 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01279/1.455, allocations: 3.563 MB / 0.599 GB, free: 6.879 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.354e-05/1.455, allocations: 19.98 kB / 0.599 GB, free: 6.859 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01183/1.467, allocations: 1.688 MB / 0.6007 GB, free: 5.434 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/1.47, allocations: 368.9 kB / 0.601 GB, free: 5.113 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00789/1.478, allocations: 2.763 MB / 0.6037 GB, free: 3.027 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003231/1.481, allocations: 254.2 kB / 0.604 GB, free: 2.812 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005343/1.482, allocations: 102.4 kB / 0.6041 GB, free: 2.73 MB / 490.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.002303/1.484, allocations: 0.6523 MB / 0.6047 GB, free: 2.289 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007092/1.485, allocations: 201.5 kB / 0.6049 GB, free: 2.09 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01904/1.504, allocations: 7.722 MB / 0.6124 GB, free: 12.84 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001311/1.504, allocations: 86.55 kB / 0.6125 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/1.504, allocations: 4 kB / 0.6125 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01527/1.519, allocations: 6.633 MB / 0.619 GB, free: 8.219 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02628/1.546, allocations: 10.87 MB / 0.6296 GB, free: 1.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.809e-05/1.546, allocations: 3.953 kB / 0.6296 GB, free: 1.066 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003513/1.549, allocations: 394.3 kB / 0.63 GB, free: 0.6953 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/1.551, allocations: 357.6 kB / 0.6303 GB, free: 344 kB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005212/1.552, allocations: 63.91 kB / 0.6304 GB, free: 280 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002478/1.554, allocations: 2.576 MB / 0.6329 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/1.554, allocations: 4.031 kB / 0.6329 GB, free: 13.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01882/1.573, allocations: 7.16 MB / 0.6399 GB, free: 6.316 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00244/1.576, allocations: 0.7338 MB / 0.6406 GB, free: 5.559 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000956/1.577, allocations: 51.98 kB / 0.6407 GB, free: 5.508 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003253/1.58, allocations: 187.7 kB / 0.6409 GB, free: 5.324 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000681/1.581, allocations: 149.7 kB / 0.641 GB, free: 5.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002898/1.581, allocations: 79.47 kB / 0.6411 GB, free: 5.105 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003071/1.584, allocations: 1.163 MB / 0.6422 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.172e-06/1.584, allocations: 0 / 0.6422 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01141/1.596, allocations: 2.526 MB / 0.6447 GB, free: 1.395 MB / 0.5105 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.01211/1.608, allocations: 2.106 MB / 0.6467 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01831/1.626, allocations: 5.407 MB / 0.652 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.626, allocations: 4.125 kB / 0.652 GB, free: 10.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00697/1.633, allocations: 2.449 MB / 0.6544 GB, free: 7.668 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008121/1.641, allocations: 0.8658 MB / 0.6553 GB, free: 6.809 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02337/1.665, allocations: 9.212 MB / 0.6642 GB, free: 13.66 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004013/1.669, allocations: 2.265 MB / 0.6665 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/1.67, allocations: 183.4 kB / 0.6666 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of SimCode: time 1.823e-06/1.67, allocations: 0 / 0.6666 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of Templates: time 0.5092/2.18, allocations: 94.47 MB / 0.7589 GB, free: 168.1 MB / 0.5417 GB