Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.553/2.553, allocations: 234.9 MB / 250.1 MB, free: 9.812 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.44e-05/3.428e-05, allocations: 4 kB / 308 MB, free: 15.79 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3466/0.3467, allocations: 54.86 MB / 362.8 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.06439/0.4111, allocations: 38.91 MB / 401.8 MB, free: 4.781 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04603/0.4572, allocations: 21.05 MB / 422.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.4591, allocations: 47.69 kB / 422.9 MB, free: 15.64 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002918/0.4621, allocations: 469.8 kB / 423.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02404/0.4862, allocations: 4.202 MB / 427.5 MB, free: 10.96 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02098/0.5073, allocations: 3.606 MB / 431.1 MB, free: 7.348 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0048/0.5121, allocations: 1.238 MB / 432.4 MB, free: 6.105 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.5133, allocations: 403.1 kB / 432.8 MB, free: 5.711 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03227/0.5457, allocations: 9.018 MB / 441.8 MB, free: 12.69 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05052/0.5962, allocations: 14.33 MB / 456.1 MB, free: 14.35 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03182/0.6281, allocations: 7.796 MB / 463.9 MB, free: 6.547 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004879/0.6331, allocations: 480 kB / 464.4 MB, free: 6.078 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.6342, allocations: 259.2 kB / 464.6 MB, free: 5.824 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007911/0.635, allocations: 115.9 kB / 464.7 MB, free: 5.711 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01521/0.6503, allocations: 3.933 MB / 468.7 MB, free: 1.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.6503, allocations: 0 / 468.7 MB, free: 1.77 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.6503, allocations: 0 / 468.7 MB, free: 1.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.339e-05/0.6504, allocations: 0 / 468.7 MB, free: 1.77 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01055/0.661, allocations: 1.834 MB / 470.5 MB, free: 15.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.931e-05/0.6611, allocations: 8.031 kB / 470.5 MB, free: 15.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006228/0.6673, allocations: 374.4 kB / 470.9 MB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002948/0.6703, allocations: 0.6992 MB / 471.6 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.6706, allocations: 69.94 kB / 471.6 MB, free: 14.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003835/0.671, allocations: 79.98 kB / 471.7 MB, free: 14.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007565/0.6786, allocations: 1.455 MB / 473.2 MB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.998e-05/0.6787, allocations: 0 / 473.2 MB, free: 13.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002118/0.6789, allocations: 35.98 kB / 473.2 MB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002132/0.6791, allocations: 57.97 kB / 473.3 MB, free: 13 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008161/0.6873, allocations: 1.35 MB / 474.6 MB, free: 11.65 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.01984/0.7072, allocations: 6.534 MB / 481.2 MB, free: 4.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007107/0.7144, allocations: 1.024 MB / 482.2 MB, free: 3.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4979/1.212, allocations: 32.46 MB / 0.5026 GB, free: 68.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/1.212, allocations: 39.41 kB / 0.5026 GB, free: 68.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.156e-06/1.212, allocations: 4 kB / 0.5026 GB, free: 68.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.01325/1.226, allocations: 3.312 MB / 0.5059 GB, free: 67.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/1.226, allocations: 166.8 kB / 0.506 GB, free: 67.22 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/1.227, allocations: 0.6299 MB / 0.5066 GB, free: 66.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001439/1.227, allocations: 40.77 kB / 0.5067 GB, free: 66.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002775/1.227, allocations: 436.2 kB / 0.5071 GB, free: 66.4 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002273/1.228, allocations: 212.9 kB / 0.5073 GB, free: 66.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.407e-05/1.228, allocations: 16.94 kB / 0.5073 GB, free: 66.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/1.228, allocations: 339.4 kB / 0.5076 GB, free: 65.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/1.229, allocations: 416.7 kB / 0.508 GB, free: 65.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/1.231, allocations: 0.617 MB / 0.5086 GB, free: 65.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/1.232, allocations: 484.5 kB / 0.5091 GB, free: 64.73 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/1.232, allocations: 1.312 kB / 0.5091 GB, free: 64.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004103/1.237, allocations: 1.315 MB / 0.5104 GB, free: 63.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004949/1.237, allocations: 2.438 MB / 0.5128 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.646e-05/1.237, allocations: 8 kB / 0.5128 GB, free: 61.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005124/1.242, allocations: 0.6717 MB / 0.5134 GB, free: 60.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/1.243, allocations: 161.2 kB / 0.5136 GB, free: 60.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002473/1.246, allocations: 1.308 MB / 0.5148 GB, free: 59.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/1.247, allocations: 103 kB / 0.5149 GB, free: 59.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/1.248, allocations: 39.05 kB / 0.515 GB, free: 59.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/1.248, allocations: 4 kB / 0.515 GB, free: 59.3 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004331/1.252, allocations: 1.232 MB / 0.5162 GB, free: 58.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/1.252, allocations: 8 kB / 0.5162 GB, free: 58.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002768/1.255, allocations: 422.9 kB / 0.5166 GB, free: 58.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/1.256, allocations: 168 kB / 0.5168 GB, free: 57.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/1.258, allocations: 1.109 MB / 0.5178 GB, free: 57.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/1.259, allocations: 104 kB / 0.5179 GB, free: 56.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/1.259, allocations: 41.92 kB / 0.518 GB, free: 56.89 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 9 (pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0006751/1.26, allocations: 283.6 kB / 0.5183 GB, free: 56.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/1.26, allocations: 83.06 kB / 0.5183 GB, free: 56.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006198/1.267, allocations: 3.34 MB / 0.5216 GB, free: 54.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.75e-05/1.267, allocations: 40.53 kB / 0.5216 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/1.267, allocations: 0 / 0.5216 GB, free: 54.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004808/1.272, allocations: 2.787 MB / 0.5244 GB, free: 52.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008471/1.28, allocations: 4.563 MB / 0.5288 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/1.28, allocations: 0 / 0.5288 GB, free: 49.26 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/1.281, allocations: 174.8 kB / 0.529 GB, free: 49.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005198/1.282, allocations: 92.17 kB / 0.5291 GB, free: 49.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.432e-05/1.282, allocations: 27.23 kB / 0.5291 GB, free: 49.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004739/1.283, allocations: 0.6386 MB / 0.5297 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/1.283, allocations: 3.75 kB / 0.5297 GB, free: 48.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005849/1.288, allocations: 2.932 MB / 0.5326 GB, free: 45.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008931/1.289, allocations: 450.2 kB / 0.533 GB, free: 44.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/1.29, allocations: 19.95 kB / 0.533 GB, free: 44.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/1.291, allocations: 83.91 kB / 0.5331 GB, free: 44.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/1.291, allocations: 68.39 kB / 0.5332 GB, free: 44.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.037e-05/1.291, allocations: 24 kB / 0.5332 GB, free: 44.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00146/1.293, allocations: 0.7863 MB / 0.534 GB, free: 44.01 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.483e-06/1.293, allocations: 0 / 0.534 GB, free: 44.01 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005418/1.298, allocations: 1.591 MB / 0.5355 GB, free: 42.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 21 ($cse5.phase,$cse5.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse21.phase,$cse21.region,source.medium.phase,pipe.statesFM[2].phase,sink.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00828/1.307, allocations: 1.563 MB / 0.537 GB, free: 41.29 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006244/1.313, allocations: 1.851 MB / 0.5389 GB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/1.313, allocations: 4.703 kB / 0.5389 GB, free: 39.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002293/1.315, allocations: 0.8997 MB / 0.5397 GB, free: 38.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004252/1.319, allocations: 477.2 kB / 0.5402 GB, free: 38.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00689/1.326, allocations: 3.756 MB / 0.5439 GB, free: 34.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008874/1.327, allocations: 1.337 MB / 0.5452 GB, free: 32.99 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000523/1.328, allocations: 83.42 kB / 0.5452 GB, free: 32.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/1.328, allocations: 0 / 0.5452 GB, free: 32.91 MB / 410.7 MB Notification: Performance of Templates: time 0.0887/1.417, allocations: 44.3 MB / 0.5885 GB, free: 4.695 MB / 426.7 MB