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_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") Notification: Performance of loadModel(ModelicaTest): time 2.329/2.329, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.105e-05/3.122e-05, allocations: 4 kB / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3889/0.3889, allocations: 54.86 MB / 362.9 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve): time 0.06074/0.4497, allocations: 38.9 MB / 401.8 MB, free: 6.652 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.042/0.4918, allocations: 21.07 MB / 422.8 MB, free: 1.539 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00151/0.4934, allocations: 35.75 kB / 422.9 MB, free: 1.504 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.4952, allocations: 481.8 kB / 423.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01636/0.5116, allocations: 4.202 MB / 427.6 MB, free: 12.82 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01379/0.5254, allocations: 3.604 MB / 431.2 MB, free: 9.207 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.003568/0.529, allocations: 1.238 MB / 432.4 MB, free: 7.965 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009925/0.53, allocations: 411.1 kB / 432.8 MB, free: 7.562 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02324/0.5533, allocations: 9.01 MB / 441.8 MB, free: 14.55 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03527/0.5886, allocations: 14.31 MB / 456.1 MB, free: 236 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02291/0.6116, allocations: 7.792 MB / 463.9 MB, free: 8.43 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003887/0.6155, allocations: 480 kB / 464.4 MB, free: 7.961 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008304/0.6164, allocations: 263.2 kB / 464.6 MB, free: 7.703 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005141/0.6169, allocations: 116 kB / 464.7 MB, free: 7.59 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01209/0.629, allocations: 3.929 MB / 468.7 MB, free: 3.652 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.6291, allocations: 0 / 468.7 MB, free: 3.652 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6291, allocations: 0 / 468.7 MB, free: 3.652 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.452e-05/0.6291, allocations: 0 / 468.7 MB, free: 3.652 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.007039/0.6362, allocations: 1.833 MB / 470.5 MB, free: 1.766 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.6362, allocations: 12.03 kB / 470.5 MB, free: 1.754 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004046/0.6403, allocations: 370.4 kB / 470.9 MB, free: 1.391 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.6425, allocations: 0.6953 MB / 471.6 MB, free: 0.6562 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.6426, allocations: 77.92 kB / 471.7 MB, free: 0.5781 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002588/0.6429, allocations: 75.98 kB / 471.7 MB, free: 0.5039 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005434/0.6484, allocations: 1.451 MB / 473.2 MB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.816e-05/0.6484, allocations: 0 / 473.2 MB, free: 14.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001556/0.6486, allocations: 35.98 kB / 473.2 MB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/0.6488, allocations: 65.95 kB / 473.3 MB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005692/0.6545, allocations: 1.342 MB / 474.6 MB, free: 13.54 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.01369/0.6682, allocations: 6.542 MB / 481.2 MB, free: 6.449 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004837/0.6731, allocations: 1.022 MB / 482.2 MB, free: 5.402 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4243/1.097, allocations: 32.47 MB / 0.5026 GB, free: 119.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/1.098, allocations: 39.69 kB / 0.5026 GB, free: 119.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=56): time 3.386e-06/1.098, allocations: 0 / 0.5026 GB, free: 119.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=60): time 0.01319/1.111, allocations: 3.317 MB / 0.5059 GB, free: 117.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.478e-05/1.111, allocations: 168.9 kB / 0.506 GB, free: 117.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/1.112, allocations: 0.6309 MB / 0.5066 GB, free: 117 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/1.112, allocations: 42.33 kB / 0.5067 GB, free: 117 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/1.112, allocations: 417.1 kB / 0.5071 GB, free: 116.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/1.113, allocations: 208.8 kB / 0.5073 GB, free: 116.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.435e-05/1.113, allocations: 15.5 kB / 0.5073 GB, free: 116.4 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/1.113, allocations: 389.3 kB / 0.5077 GB, free: 116.1 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/1.114, allocations: 414.5 kB / 0.5081 GB, free: 115.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/1.116, allocations: 0.6244 MB / 0.5087 GB, free: 115.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/1.118, allocations: 483.3 kB / 0.5091 GB, free: 114.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/1.118, allocations: 7.375 kB / 0.5091 GB, free: 114.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004439/1.122, allocations: 1.355 MB / 0.5105 GB, free: 113.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006071/1.123, allocations: 2.446 MB / 0.5129 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/1.123, allocations: 4 kB / 0.5129 GB, free: 110.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005169/1.128, allocations: 0.6763 MB / 0.5135 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/1.129, allocations: 159.8 kB / 0.5137 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002416/1.132, allocations: 1.298 MB / 0.5149 GB, free: 108.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/1.133, allocations: 115.6 kB / 0.515 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001096/1.133, allocations: 44.81 kB / 0.5151 GB, free: 108.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/1.133, allocations: 4.781 kB / 0.5151 GB, free: 108.6 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00424/1.137, allocations: 1.228 MB / 0.5163 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/1.137, allocations: 4 kB / 0.5163 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002939/1.14, allocations: 442 kB / 0.5167 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/1.142, allocations: 171.8 kB / 0.5169 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/1.144, allocations: 1.108 MB / 0.518 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/1.145, allocations: 107.8 kB / 0.5181 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/1.145, allocations: 43.48 kB / 0.5181 GB, free: 105.5 MB / 426.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.0006581/1.146, allocations: 293.5 kB / 0.5184 GB, free: 105.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/1.146, allocations: 82.97 kB / 0.5185 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006136/1.152, allocations: 3.319 MB / 0.5217 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/1.152, allocations: 35.95 kB / 0.5217 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/1.152, allocations: 4 kB / 0.5217 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004724/1.157, allocations: 2.782 MB / 0.5245 GB, free: 98.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00814/1.165, allocations: 4.567 MB / 0.5289 GB, free: 94.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.165, allocations: 3.938 kB / 0.5289 GB, free: 94.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/1.167, allocations: 171.8 kB / 0.5291 GB, free: 94.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005383/1.167, allocations: 96.67 kB / 0.5292 GB, free: 94.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.622e-05/1.167, allocations: 20 kB / 0.5292 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004895/1.168, allocations: 0.646 MB / 0.5298 GB, free: 93.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/1.168, allocations: 4.031 kB / 0.5298 GB, free: 93.33 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005983/1.174, allocations: 2.925 MB / 0.5327 GB, free: 90.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001012/1.175, allocations: 461.9 kB / 0.5331 GB, free: 89.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002863/1.175, allocations: 12 kB / 0.5331 GB, free: 89.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/1.176, allocations: 80 kB / 0.5332 GB, free: 89.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001909/1.177, allocations: 64.56 kB / 0.5333 GB, free: 89.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.981e-05/1.177, allocations: 27.98 kB / 0.5333 GB, free: 89.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001409/1.178, allocations: 0.7902 MB / 0.5341 GB, free: 88.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.178, allocations: 0 / 0.5341 GB, free: 88.93 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005291/1.183, allocations: 1.583 MB / 0.5356 GB, free: 87.48 MB / 426.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.007936/1.191, allocations: 1.572 MB / 0.5372 GB, free: 86.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00547/1.197, allocations: 1.876 MB / 0.539 GB, free: 84.27 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/1.197, allocations: 0 / 0.539 GB, free: 84.27 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002207/1.199, allocations: 0.9109 MB / 0.5399 GB, free: 83.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00415/1.203, allocations: 470.7 kB / 0.5403 GB, free: 82.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006525/1.21, allocations: 3.728 MB / 0.544 GB, free: 79.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008885/1.211, allocations: 1.346 MB / 0.5453 GB, free: 77.76 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002721/1.214, allocations: 0.9682 MB / 0.5462 GB, free: 76.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003259/1.214, allocations: 71.42 kB / 0.5463 GB, free: 76.71 MB / 426.7 MB Notification: Performance of SimCode: time 1.664e-06/1.214, allocations: 0 / 0.5463 GB, free: 76.71 MB / 426.7 MB Notification: Performance of Templates: time 0.09996/1.314, allocations: 48.77 MB / 0.5939 GB, free: 27.98 MB / 426.7 MB