Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") Notification: Performance of loadModel(ModelicaTest): time 2.46/2.46, allocations: 234.9 MB / 250.1 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.364e-05, allocations: 4 kB / 308 MB, free: 15.7 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3629, allocations: 54.87 MB / 362.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3): time 0.1382/0.5012, allocations: 81.24 MB / 444.1 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.06377/0.565, allocations: 29.06 MB / 473.1 MB, free: 13.22 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003501/0.5686, allocations: 103.2 kB / 473.2 MB, free: 13.12 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004702/0.5733, allocations: 1.104 MB / 474.3 MB, free: 12.01 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02236/0.5957, allocations: 5.448 MB / 479.8 MB, free: 6.547 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02408/0.6199, allocations: 6.203 MB / 486 MB, free: 348 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.3715/0.9913, allocations: 2.917 MB / 488.9 MB, free: 9.375 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002901/0.9943, allocations: 1.007 MB / 489.9 MB, free: 9.367 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006164/1.001, allocations: 1.707 MB / 491.6 MB, free: 9.367 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04254/1.043, allocations: 18.21 MB / 0.4979 GB, free: 9.102 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02608/1.069, allocations: 8.975 MB / 0.5067 GB, free: 7.488 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005106/1.074, allocations: 0.5703 MB / 0.5072 GB, free: 6.918 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001955/1.076, allocations: 0.685 MB / 0.5079 GB, free: 6.652 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001917/1.078, allocations: 256 kB / 0.5081 GB, free: 6.402 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01579/1.094, allocations: 5.916 MB / 0.5139 GB, free: 3.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/1.094, allocations: 0 / 0.5139 GB, free: 3.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.094, allocations: 0 / 0.5139 GB, free: 3.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001455/1.094, allocations: 0 / 0.5139 GB, free: 3.59 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01223/1.107, allocations: 3.198 MB / 0.517 GB, free: 16.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/1.107, allocations: 8.031 kB / 0.517 GB, free: 16.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007645/1.114, allocations: 0.7475 MB / 0.5178 GB, free: 16.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004758/1.119, allocations: 1.492 MB / 0.5192 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/1.12, allocations: 163.8 kB / 0.5194 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007585/1.12, allocations: 190.8 kB / 0.5196 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/1.133, allocations: 3.164 MB / 0.5226 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.58e-05/1.133, allocations: 10.61 kB / 0.5227 GB, free: 13.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003433/1.134, allocations: 81 kB / 0.5227 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004125/1.134, allocations: 172.3 kB / 0.5229 GB, free: 13.06 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/1.146, allocations: 2.926 MB / 0.5258 GB, free: 10.96 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.0275/1.174, allocations: 13.83 MB / 0.5393 GB, free: 14.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008396/1.182, allocations: 2.027 MB / 0.5412 GB, free: 12.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06548/1.248, allocations: 19.05 MB / 0.5598 GB, free: 7.785 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006781/1.255, allocations: 1.56 MB / 0.5614 GB, free: 6.566 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001658/1.256, allocations: 168.8 kB / 0.5615 GB, free: 6.426 MB / 458.7 MB Notification: Performance of pre-optimization done (n=155): time 7.034e-06/1.256, allocations: 0 / 0.5615 GB, free: 6.426 MB / 458.7 MB Notification: Performance of matching and sorting (n=167): time 0.0378/1.294, allocations: 8.247 MB / 0.5696 GB, free: 24 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001528/1.294, allocations: 182.8 kB / 0.5698 GB, free: 15.81 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002706/1.297, allocations: 1.238 MB / 0.571 GB, free: 14.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004935/1.298, allocations: 55.83 kB / 0.571 GB, free: 14.82 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009771/1.299, allocations: 0.8721 MB / 0.5719 GB, free: 14.23 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009761/1.3, allocations: 0.5512 MB / 0.5724 GB, free: 13.76 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/1.3, allocations: 38 kB / 0.5724 GB, free: 13.75 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002166/1.3, allocations: 386.8 kB / 0.5728 GB, free: 13.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003429/1.303, allocations: 1.008 MB / 0.5738 GB, free: 12.71 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004147/1.308, allocations: 1.479 MB / 0.5752 GB, free: 11.45 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004099/1.312, allocations: 1.261 MB / 0.5765 GB, free: 10.63 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-05/1.312, allocations: 4.844 kB / 0.5765 GB, free: 10.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.01132/1.323, allocations: 3.019 MB / 0.5794 GB, free: 8.512 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002329/1.326, allocations: 5.035 MB / 0.5843 GB, free: 3.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.705e-05/1.326, allocations: 16 kB / 0.5844 GB, free: 3.164 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004637/1.33, allocations: 0.5199 MB / 0.5849 GB, free: 2.707 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003921/1.334, allocations: 464.5 kB / 0.5853 GB, free: 2.297 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003275/1.338, allocations: 2.7 MB / 0.5879 GB, free: 15.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/1.342, allocations: 264.2 kB / 0.5882 GB, free: 15.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005806/1.342, allocations: 98.84 kB / 0.5883 GB, free: 15.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/1.342, allocations: 4 kB / 0.5883 GB, free: 15.43 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009295/1.352, allocations: 2.776 MB / 0.591 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.577e-05/1.352, allocations: 16.16 kB / 0.591 GB, free: 13.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009965/1.353, allocations: 195.4 kB / 0.5912 GB, free: 13.37 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003983/1.357, allocations: 489.5 kB / 0.5917 GB, free: 12.94 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/1.359, allocations: 1.88 MB / 0.5935 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003399/1.362, allocations: 262.2 kB / 0.5938 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004732/1.363, allocations: 94.59 kB / 0.5939 GB, free: 10.81 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,pipe3.state_a.phase,pipe2.state_a.phase,pipe1.state_a.phase,pipe3.state_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (224): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.002078/1.365, allocations: 0.6463 MB / 0.5945 GB, free: 10.36 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006887/1.366, allocations: 189.8 kB / 0.5947 GB, free: 10.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01779/1.383, allocations: 7.412 MB / 0.6019 GB, free: 5.145 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001241/1.384, allocations: 78.69 kB / 0.602 GB, free: 5.086 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/1.384, allocations: 3.938 kB / 0.602 GB, free: 5.082 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01457/1.398, allocations: 6.489 MB / 0.6083 GB, free: 0.5938 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02638/1.425, allocations: 11.08 MB / 0.6191 GB, free: 9.125 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.512e-05/1.425, allocations: 4 kB / 0.6191 GB, free: 9.121 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002946/1.428, allocations: 363.6 kB / 0.6195 GB, free: 8.801 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004404/1.432, allocations: 1.169 MB / 0.6206 GB, free: 7.762 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004789/1.433, allocations: 63.03 kB / 0.6207 GB, free: 7.727 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003837/1.436, allocations: 3.185 MB / 0.6238 GB, free: 4.891 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.327e-06/1.437, allocations: 11.88 kB / 0.6238 GB, free: 4.879 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/1.454, allocations: 7.365 MB / 0.631 GB, free: 15.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002129/1.456, allocations: 0.6835 MB / 0.6317 GB, free: 14.49 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007462/1.457, allocations: 55.98 kB / 0.6317 GB, free: 14.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/1.459, allocations: 187.5 kB / 0.6319 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005577/1.46, allocations: 155.7 kB / 0.6321 GB, free: 14.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002389/1.46, allocations: 67.94 kB / 0.6321 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00251/1.463, allocations: 1.058 MB / 0.6332 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.71e-07/1.463, allocations: 0 / 0.6332 GB, free: 12.96 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01043/1.473, allocations: 2.378 MB / 0.6355 GB, free: 10.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 55 ($cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,$cse23.region3boundary,$cse24.region3boundary,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.region3boundary,$cse30.region3boundary,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$cse41.phase,$cse41.region,$whenCondition1,$whenCondition2,source.medium.phase,pipe1.statesFM[2].phase,sink.medium.phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 20 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0113/1.485, allocations: 2.007 MB / 0.6374 GB, free: 8.742 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01581/1.5, allocations: 4.934 MB / 0.6423 GB, free: 3.852 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.207e-05/1.501, allocations: 0 / 0.6423 GB, free: 3.852 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006679/1.507, allocations: 2.495 MB / 0.6447 GB, free: 1.375 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008352/1.516, allocations: 0.9135 MB / 0.6456 GB, free: 472 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01968/1.535, allocations: 8.438 MB / 0.6538 GB, free: 8.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003033/1.538, allocations: 2.15 MB / 0.6559 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/1.54, allocations: 187.4 kB / 0.6561 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of SimCode: time 1.232e-06/1.54, allocations: 0 / 0.6561 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of Templates: time 0.5281/2.068, allocations: 106.8 MB / 0.7604 GB, free: 167.5 MB / 0.5417 GB