Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestPipesAndValves_DynamicPipeClosingValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.765/2.765, allocations: 270 MB / 282.6 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.039e-05/5.058e-05, allocations: 4 kB / 347.1 MB, free: 3.113 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4268/0.4269, allocations: 61.86 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.566/8.993, allocations: 2.829 GB / 3.228 GB, free: 72.46 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/8.994, allocations: 78.27 kB / 3.228 GB, free: 72.42 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.493/11.49, allocations: 471.2 MB / 3.689 GB, free: 17.14 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.767e-06/11.49, allocations: 0 / 3.689 GB, free: 17.14 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001414/11.49, allocations: 26.05 kB / 3.689 GB, free: 17.12 MB / 0.5261 GB 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.01235/11.5, allocations: 2.154 MB / 3.691 GB, free: 14.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/11.5, allocations: 8.031 kB / 3.691 GB, free: 14.92 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004749/11.5, allocations: 122.3 kB / 3.691 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005715/11.51, allocations: 374.4 kB / 3.691 GB, free: 14.43 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004192/11.51, allocations: 0.8813 MB / 3.692 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001565/11.51, allocations: 72.56 kB / 3.692 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/11.51, allocations: 79.03 kB / 3.692 GB, free: 13.38 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006187/11.52, allocations: 1.452 MB / 3.694 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.516e-05/11.52, allocations: 7.938 kB / 3.694 GB, free: 11.83 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002152/11.52, allocations: 28 kB / 3.694 GB, free: 11.8 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001503/11.52, allocations: 53.97 kB / 3.694 GB, free: 11.75 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006203/11.52, allocations: 1.241 MB / 3.695 GB, free: 10.51 MB / 0.5261 GB 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.01616/11.54, allocations: 6.556 MB / 3.701 GB, free: 3.457 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004633/11.54, allocations: 0.9263 MB / 3.702 GB, free: 2.504 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/11.55, allocations: 387.4 kB / 3.703 GB, free: 2.121 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5245/12.07, allocations: 32.1 MB / 3.734 GB, free: 60.41 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.313e-05/12.07, allocations: 46.56 kB / 3.734 GB, free: 60.37 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=57): time 3.908e-06/12.07, allocations: 3.062 kB / 3.734 GB, free: 60.37 MB / 0.5417 GB Notification: Performance of matching and sorting (n=61): time 0.01048/12.08, allocations: 2.805 MB / 3.737 GB, free: 59.85 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/12.08, allocations: 187.9 kB / 3.737 GB, free: 59.63 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/12.08, allocations: 0.635 MB / 3.738 GB, free: 59.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002349/12.08, allocations: 39.2 kB / 3.738 GB, free: 59.47 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002968/12.08, allocations: 431.7 kB / 3.738 GB, free: 59.24 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000261/12.08, allocations: 215.8 kB / 3.738 GB, free: 59.14 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.883e-05/12.08, allocations: 12.12 kB / 3.738 GB, free: 59.14 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.566e-05/12.08, allocations: 340.8 kB / 3.739 GB, free: 58.82 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000886/12.08, allocations: 347.8 kB / 3.739 GB, free: 58.82 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009832/12.08, allocations: 0.5482 MB / 3.739 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009951/12.09, allocations: 416.4 kB / 3.74 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/12.09, allocations: 0 / 3.74 GB, free: 58.59 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00295/12.09, allocations: 1.134 MB / 3.741 GB, free: 58.52 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005396/12.09, allocations: 2.267 MB / 3.743 GB, free: 56.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.752e-05/12.09, allocations: 9.188 kB / 3.743 GB, free: 56.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005301/12.09, allocations: 0.6517 MB / 3.744 GB, free: 56.16 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001209/12.1, allocations: 166 kB / 3.744 GB, free: 56.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002175/12.1, allocations: 1.257 MB / 3.745 GB, free: 55.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/12.1, allocations: 109.1 kB / 3.745 GB, free: 55.63 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001879/12.1, allocations: 38.86 kB / 3.745 GB, free: 55.63 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/12.1, allocations: 6.25 kB / 3.745 GB, free: 55.63 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003195/12.1, allocations: 1.055 MB / 3.746 GB, free: 55.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.244e-05/12.1, allocations: 7.344 kB / 3.746 GB, free: 55.61 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002554/12.11, allocations: 375.2 kB / 3.747 GB, free: 55.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/12.11, allocations: 173.3 kB / 3.747 GB, free: 55.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/12.11, allocations: 1.057 MB / 3.748 GB, free: 55.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/12.11, allocations: 105.7 kB / 3.748 GB, free: 55.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/12.11, allocations: 38 kB / 3.748 GB, free: 55.07 MB / 0.5417 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,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 (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.0003586/12.11, allocations: 149 kB / 3.748 GB, free: 54.96 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003542/12.11, allocations: 84.34 kB / 3.748 GB, free: 54.92 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005442/12.12, allocations: 3.239 MB / 3.751 GB, free: 54.61 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.131e-05/12.12, allocations: 39.58 kB / 3.752 GB, free: 54.61 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/12.12, allocations: 7.5 kB / 3.752 GB, free: 54.61 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003797/12.12, allocations: 2.689 MB / 3.754 GB, free: 54.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008162/12.13, allocations: 4.484 MB / 3.759 GB, free: 53.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-05/12.13, allocations: 3.688 kB / 3.759 GB, free: 53.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/12.13, allocations: 175.6 kB / 3.759 GB, free: 53.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005485/12.13, allocations: 92.19 kB / 3.759 GB, free: 53.67 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/12.13, allocations: 22.17 kB / 3.759 GB, free: 53.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000462/12.13, allocations: 0.6439 MB / 3.759 GB, free: 53.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/12.13, allocations: 0 / 3.759 GB, free: 53.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004654/12.14, allocations: 2.748 MB / 3.762 GB, free: 52.68 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/12.14, allocations: 462.2 kB / 3.763 GB, free: 52.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003204/12.14, allocations: 26.66 kB / 3.763 GB, free: 52.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/12.14, allocations: 86.52 kB / 3.763 GB, free: 52.49 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/12.14, allocations: 61.14 kB / 3.763 GB, free: 52.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-05/12.14, allocations: 25.14 kB / 3.763 GB, free: 52.49 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001616/12.14, allocations: 0.7883 MB / 3.764 GB, free: 52.38 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.192e-06/12.14, allocations: 0 / 3.764 GB, free: 52.38 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00864/12.15, allocations: 1.74 MB / 3.765 GB, free: 52.38 MB / 0.5417 GB 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,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse23.phase,$cse23.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 (76): * Single equations (assignments): 65 * 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.01731/12.17, allocations: 5.313 MB / 3.77 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004063/12.17, allocations: 1.63 MB / 3.772 GB, free: 51.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/12.17, allocations: 3.688 kB / 3.772 GB, free: 51.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001814/12.17, allocations: 0.83 MB / 3.773 GB, free: 51.17 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004543/12.18, allocations: 476.6 kB / 3.773 GB, free: 51.16 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/12.19, allocations: 3.213 MB / 3.776 GB, free: 50.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009001/12.19, allocations: 1.336 MB / 3.778 GB, free: 49.79 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/12.19, allocations: 0.5625 MB / 3.778 GB, free: 49.79 MB / 0.5417 GB Notification: Performance of SimCode: time 1.333e-06/12.19, allocations: 3.906 kB / 3.778 GB, free: 49.79 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.127/16.32, allocations: 52.22 MB / 3.829 GB, free: 46.18 MB / 0.5417 GB