Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 3.158/3.158, allocations: 235.2 MB / 242.3 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.577e-05, allocations: 0 / 299.6 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4343/0.4343, allocations: 54.86 MB / 354.4 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 10.62/11.05, allocations: 2.654 GB / 3.001 GB, free: 96.21 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/11.05, allocations: 73.84 kB / 3.001 GB, free: 96.18 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.962/14.01, allocations: 459.8 MB / 3.45 GB, free: 24.65 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.755e-06/14.01, allocations: 0 / 3.45 GB, free: 24.65 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001174/14.01, allocations: 27.94 kB / 3.45 GB, free: 24.62 MB / 490.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.01173/14.03, allocations: 2.145 MB / 3.452 GB, free: 22.43 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.043e-05/14.03, allocations: 8.031 kB / 3.452 GB, free: 22.43 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004174/14.03, allocations: 94.81 kB / 3.452 GB, free: 22.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005253/14.03, allocations: 374.4 kB / 3.452 GB, free: 21.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003957/14.04, allocations: 0.889 MB / 3.453 GB, free: 21.04 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001283/14.04, allocations: 45.98 kB / 3.453 GB, free: 20.99 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002556/14.04, allocations: 44 kB / 3.453 GB, free: 20.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00299/14.04, allocations: 0.9215 MB / 3.454 GB, free: 20.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003529/14.04, allocations: 1.089 MB / 3.455 GB, free: 18.84 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-05/14.04, allocations: 0 / 3.455 GB, free: 18.84 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002132/14.04, allocations: 8 kB / 3.455 GB, free: 18.84 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001583/14.04, allocations: 57.91 kB / 3.455 GB, free: 18.78 MB / 490.7 MB Warning: The model contains alias variables with conflicting start and/or 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.8791/14.92, allocations: 101.2 MB / 3.554 GB, free: 28.97 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001567/14.92, allocations: 476.8 kB / 3.555 GB, free: 28.95 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007218/14.92, allocations: 271.9 kB / 3.555 GB, free: 28.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07011/14.99, allocations: 16.77 MB / 3.571 GB, free: 34.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.273e-05/14.99, allocations: 37.72 kB / 3.571 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=42): time 3.567e-06/15, allocations: 0 / 3.571 GB, free: 34.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46): time 0.01322/15.01, allocations: 2.275 MB / 3.573 GB, free: 33.59 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.697e-05/15.01, allocations: 132.5 kB / 3.574 GB, free: 33.44 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/15.01, allocations: 0.5529 MB / 3.574 GB, free: 33.32 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.987e-05/15.01, allocations: 33.11 kB / 3.574 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004513/15.01, allocations: 470.7 kB / 3.575 GB, free: 33.08 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/15.01, allocations: 165.2 kB / 3.575 GB, free: 33 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/15.01, allocations: 0 / 3.575 GB, free: 33 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002391/15.01, allocations: 379.2 kB / 3.575 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009227/15.01, allocations: 323.1 kB / 3.575 GB, free: 32.68 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/15.01, allocations: 0.5166 MB / 3.576 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009007/15.02, allocations: 0.9536 MB / 3.577 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/15.02, allocations: 2.516 kB / 3.577 GB, free: 32.43 MB / 0.5261 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.01157/15.03, allocations: 1.67 MB / 3.578 GB, free: 32.33 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009261/15.03, allocations: 2.266 MB / 3.581 GB, free: 29.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/15.03, allocations: 3.125 kB / 3.581 GB, free: 29.95 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003774/15.04, allocations: 478.3 kB / 3.581 GB, free: 29.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/15.04, allocations: 160 kB / 3.581 GB, free: 29.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003533/15.04, allocations: 1.354 MB / 3.583 GB, free: 29.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002372/15.05, allocations: 118.9 kB / 3.583 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001592/15.05, allocations: 45.77 kB / 3.583 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/15.05, allocations: 3.844 kB / 3.583 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01135/15.06, allocations: 1.477 MB / 3.584 GB, free: 29.35 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/15.06, allocations: 10.47 kB / 3.584 GB, free: 29.35 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003306/15.06, allocations: 377 kB / 3.585 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/15.06, allocations: 174 kB / 3.585 GB, free: 29.33 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002147/15.06, allocations: 1.076 MB / 3.586 GB, free: 28.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/15.07, allocations: 106.8 kB / 3.586 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/15.07, allocations: 39.39 kB / 3.586 GB, free: 28.78 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.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 (68): * Single equations (assignments): 67 * 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.0003864/15.07, allocations: 131.8 kB / 3.586 GB, free: 28.67 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002495/15.07, allocations: 70.38 kB / 3.586 GB, free: 28.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00518/15.07, allocations: 1.86 MB / 3.588 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.929e-05/15.07, allocations: 25.89 kB / 3.588 GB, free: 28.47 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/15.07, allocations: 0 / 3.588 GB, free: 28.47 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004086/15.08, allocations: 1.78 MB / 3.59 GB, free: 28.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007592/15.08, allocations: 2.842 MB / 3.592 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.111e-05/15.08, allocations: 2.75 kB / 3.593 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/15.09, allocations: 117.7 kB / 3.593 GB, free: 27.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005225/15.09, allocations: 89.11 kB / 3.593 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.764e-05/15.09, allocations: 16.73 kB / 3.593 GB, free: 27.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008251/15.09, allocations: 0.6663 MB / 3.593 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/15.09, allocations: 0 / 3.593 GB, free: 27.14 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005366/15.09, allocations: 1.977 MB / 3.595 GB, free: 26.8 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008256/15.09, allocations: 266.3 kB / 3.596 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002529/15.09, allocations: 3.844 kB / 3.596 GB, free: 26.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/15.1, allocations: 58.11 kB / 3.596 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/15.1, allocations: 47.59 kB / 3.596 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-05/15.1, allocations: 21.45 kB / 3.596 GB, free: 26.64 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009382/15.1, allocations: 423.8 kB / 3.596 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.81e-07/15.1, allocations: 0 / 3.596 GB, free: 26.55 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009118/15.11, allocations: 1.638 MB / 3.598 GB, free: 26.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 11 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.02101/15.13, allocations: 4.743 MB / 3.602 GB, free: 25.26 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004391/15.13, allocations: 1.413 MB / 3.604 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/15.13, allocations: 0 / 3.604 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001742/15.13, allocations: 0.5831 MB / 3.604 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003896/15.14, allocations: 323 kB / 3.605 GB, free: 25.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/15.15, allocations: 2.456 MB / 3.607 GB, free: 24.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/15.15, allocations: 1.177 MB / 3.608 GB, free: 23.87 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003778/15.15, allocations: 1.081 MB / 3.609 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/15.15, allocations: 387.7 kB / 3.61 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of SimCode: time 1.733e-06/15.15, allocations: 0 / 3.61 GB, free: 23.82 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2227/15.38, allocations: 55.08 MB / 3.663 GB, free: 2.188 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000527/15.38, allocations: 200.5 kB / 3.664 GB, free: 1.965 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.674/22.05, allocations: 0 / 3.664 GB, free: 1.965 MB / 0.5261 GB