Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.62/2.62, allocations: 270 MB / 282.6 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.387e-05/5.402e-05, allocations: 11.94 kB / 347.1 MB, free: 3.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4791/0.4792, allocations: 61.87 MB / 408.9 MB, free: 10.75 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.675/9.155, allocations: 2.778 GB / 3.177 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/9.155, allocations: 77.83 kB / 3.177 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.579/12.73, allocations: 0.6442 GB / 3.821 GB, free: 46.96 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.093e-06/12.73, allocations: 0 / 3.821 GB, free: 46.96 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001845/12.73, allocations: 45.23 kB / 3.821 GB, free: 46.95 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01495/12.75, allocations: 2.451 MB / 3.824 GB, free: 45.82 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/12.75, allocations: 7.125 kB / 3.824 GB, free: 45.82 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00067/12.75, allocations: 179.9 kB / 3.824 GB, free: 45.77 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01688/12.77, allocations: 0.9589 MB / 3.825 GB, free: 45.69 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004218/12.77, allocations: 0.9912 MB / 3.826 GB, free: 45.34 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002312/12.77, allocations: 108 kB / 3.826 GB, free: 45.33 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/12.77, allocations: 112.1 kB / 3.826 GB, free: 45.33 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0115/12.78, allocations: 2.255 MB / 3.828 GB, free: 44.87 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.916e-05/12.78, allocations: 3.938 kB / 3.828 GB, free: 44.87 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003789/12.78, allocations: 62.81 kB / 3.828 GB, free: 44.86 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.222e-05/12.78, allocations: 29.69 kB / 3.828 GB, free: 44.86 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01102/12.79, allocations: 1.959 MB / 3.83 GB, free: 44.83 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02351/12.82, allocations: 10.01 MB / 3.84 GB, free: 38.19 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006527/12.82, allocations: 1.562 MB / 3.842 GB, free: 38.16 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/12.83, allocations: 456.4 kB / 3.842 GB, free: 38.15 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0815/12.91, allocations: 26.08 MB / 3.868 GB, free: 21.7 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/12.91, allocations: 45.34 kB / 3.868 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 3.557e-06/12.91, allocations: 0 / 3.868 GB, free: 21.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=88): time 0.0111/12.92, allocations: 2.354 MB / 3.87 GB, free: 21.03 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/12.92, allocations: 279.6 kB / 3.87 GB, free: 20.7 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001893/12.92, allocations: 0.9063 MB / 3.871 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002982/12.92, allocations: 43.83 kB / 3.871 GB, free: 20.28 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/12.92, allocations: 0.5919 MB / 3.872 GB, free: 19.76 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003898/12.92, allocations: 290.7 kB / 3.872 GB, free: 19.54 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001027/12.92, allocations: 27.5 kB / 3.872 GB, free: 19.52 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001064/12.92, allocations: 349.2 kB / 3.872 GB, free: 19.19 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001004/12.92, allocations: 344.7 kB / 3.873 GB, free: 19.05 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/12.92, allocations: 0.7358 MB / 3.873 GB, free: 18.41 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001123/12.93, allocations: 424.4 kB / 3.874 GB, free: 18.23 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.124e-05/12.93, allocations: 7.031 kB / 3.874 GB, free: 18.23 MB / 0.5417 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003177/12.93, allocations: 1.105 MB / 3.875 GB, free: 17.81 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001919/12.93, allocations: 4.446 MB / 3.879 GB, free: 29.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.125e-05/12.93, allocations: 13.53 kB / 3.879 GB, free: 29.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.881e-05/12.93, allocations: 21.25 kB / 3.879 GB, free: 29.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/12.93, allocations: 355.7 kB / 3.88 GB, free: 29.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.302e-05/12.93, allocations: 29.91 kB / 3.88 GB, free: 29 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/12.94, allocations: 241.1 kB / 3.88 GB, free: 28.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002675/12.94, allocations: 76.36 kB / 3.88 GB, free: 28.89 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/12.94, allocations: 7.562 kB / 3.88 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002873/12.94, allocations: 1.018 MB / 3.881 GB, free: 28.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/12.94, allocations: 11.47 kB / 3.881 GB, free: 28.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.953e-05/12.94, allocations: 22.59 kB / 3.881 GB, free: 28.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/12.94, allocations: 351.6 kB / 3.881 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.205e-05/12.94, allocations: 24.34 kB / 3.881 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/12.94, allocations: 202.5 kB / 3.881 GB, free: 28.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002134/12.94, allocations: 64.95 kB / 3.882 GB, free: 28.37 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000474/12.95, allocations: 191.4 kB / 3.882 GB, free: 28.2 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004604/12.95, allocations: 139.3 kB / 3.882 GB, free: 28.13 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009356/12.95, allocations: 6.472 MB / 3.888 GB, free: 25.05 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.509e-05/12.96, allocations: 83.47 kB / 3.888 GB, free: 25.03 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/12.96, allocations: 0 / 3.888 GB, free: 25.03 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.757e-05/12.96, allocations: 7.594 kB / 3.888 GB, free: 25.03 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005282/12.96, allocations: 3.284 MB / 3.891 GB, free: 23.47 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/12.96, allocations: 0 / 3.891 GB, free: 23.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/12.96, allocations: 317.3 kB / 3.892 GB, free: 23.43 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.986e-05/12.96, allocations: 3.719 kB / 3.892 GB, free: 23.43 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/12.96, allocations: 26.06 kB / 3.892 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.01e-05/12.96, allocations: 3.031 kB / 3.892 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/12.96, allocations: 0 / 3.892 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004731/12.97, allocations: 2.787 MB / 3.895 GB, free: 22.11 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/12.97, allocations: 0.9035 MB / 3.895 GB, free: 21.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006239/12.97, allocations: 23.95 kB / 3.895 GB, free: 21.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002493/12.97, allocations: 148.9 kB / 3.896 GB, free: 21.36 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003636/12.97, allocations: 104.7 kB / 3.896 GB, free: 21.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001285/12.97, allocations: 42.09 kB / 3.896 GB, free: 21.27 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.003116/12.98, allocations: 1.51 MB / 3.897 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.52e-07/12.98, allocations: 0 / 3.897 GB, free: 19.86 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009317/12.99, allocations: 1.83 MB / 3.899 GB, free: 18.06 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse41.phase,$cse41.region,$cse44.phase,$cse44.region,$cse45.phase,$cse45.region,$cse47.phase,$cse47.region,$cse48.phase,$cse48.region,$cse51.phase,$cse51.region,$cse55.phase,$cse55.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01639/13, allocations: 5.239 MB / 3.904 GB, free: 13.52 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.005762/13.01, allocations: 2.138 MB / 3.906 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.14e-05/13.01, allocations: 0.5 kB / 3.906 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002807/13.01, allocations: 1.366 MB / 3.908 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007995/13.02, allocations: 0.7926 MB / 3.908 GB, free: 9.637 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/13.04, allocations: 4.93 MB / 3.913 GB, free: 5.168 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002008/13.04, allocations: 1.863 MB / 3.915 GB, free: 3.684 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002262/13.04, allocations: 1.116 MB / 3.916 GB, free: 2.664 MB / 0.5573 GB Notification: Performance of SimCode: time 2.104e-06/13.04, allocations: 0 / 3.916 GB, free: 2.664 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.521/17.56, allocations: 62.56 MB / 3.977 GB, free: 61.09 MB / 0.573 GB