Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.411/2.411, allocations: 249.5 MB / 261.6 MB, free: 2.156 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.599e-05/3.608e-05, allocations: 3.984 kB / 323.5 MB, free: 4.215 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4548/0.4549, allocations: 58.84 MB / 382.3 MB, free: 10.22 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.569/9.024, allocations: 2.773 GB / 3.146 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000478/9.024, allocations: 83.39 kB / 3.146 GB, free: 129.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.083/13.11, allocations: 0.637 GB / 3.783 GB, free: 46.69 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.663e-06/13.11, allocations: 1.031 kB / 3.783 GB, free: 46.69 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001244/13.11, allocations: 40.75 kB / 3.783 GB, free: 46.68 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: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.01061/13.12, allocations: 2.454 MB / 3.786 GB, free: 45.59 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/13.12, allocations: 7.688 kB / 3.786 GB, free: 45.59 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004409/13.12, allocations: 176.1 kB / 3.786 GB, free: 45.55 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01087/13.13, allocations: 0.9494 MB / 3.787 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003069/13.13, allocations: 1.001 MB / 3.788 GB, free: 45.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/13.13, allocations: 102.1 kB / 3.788 GB, free: 45.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/13.13, allocations: 115.5 kB / 3.788 GB, free: 45.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007816/13.14, allocations: 2.242 MB / 3.79 GB, free: 44.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.017e-05/13.14, allocations: 14.7 kB / 3.79 GB, free: 44.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002919/13.14, allocations: 52.31 kB / 3.79 GB, free: 44.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-05/13.14, allocations: 36.34 kB / 3.79 GB, free: 44.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00728/13.15, allocations: 1.958 MB / 3.792 GB, free: 44.69 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01842/13.17, allocations: 10.01 MB / 3.802 GB, free: 38.11 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00629/13.17, allocations: 1.56 MB / 3.803 GB, free: 38.07 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/13.18, allocations: 449.1 kB / 3.804 GB, free: 38.07 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07975/13.25, allocations: 26.1 MB / 3.829 GB, free: 22.26 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/13.25, allocations: 45.62 kB / 3.829 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=88): time 3.567e-06/13.25, allocations: 3.844 kB / 3.829 GB, free: 22.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88): time 0.01013/13.27, allocations: 2.348 MB / 3.832 GB, free: 22.09 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.645e-05/13.27, allocations: 272.7 kB / 3.832 GB, free: 21.77 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001617/13.27, allocations: 0.9107 MB / 3.833 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001296/13.27, allocations: 40.42 kB / 3.833 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005014/13.27, allocations: 0.6148 MB / 3.833 GB, free: 21.31 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/13.27, allocations: 297.1 kB / 3.834 GB, free: 21.12 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.87e-05/13.27, allocations: 21.12 kB / 3.834 GB, free: 21.12 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001004/13.27, allocations: 350.2 kB / 3.834 GB, free: 20.82 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009495/13.27, allocations: 340.1 kB / 3.834 GB, free: 20.82 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/13.27, allocations: 0.7421 MB / 3.835 GB, free: 20.33 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/13.27, allocations: 420.3 kB / 3.835 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/13.27, allocations: 5.938 kB / 3.835 GB, free: 20.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003118/13.27, allocations: 1.191 MB / 3.837 GB, free: 20.17 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002413/13.28, allocations: 4.464 MB / 3.841 GB, free: 31.51 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.472e-05/13.28, allocations: 13.31 kB / 3.841 GB, free: 31.51 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.97e-05/13.28, allocations: 17.16 kB / 3.841 GB, free: 31.51 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002606/13.28, allocations: 362 kB / 3.841 GB, free: 31.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.344e-05/13.28, allocations: 30.12 kB / 3.841 GB, free: 31.5 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/13.28, allocations: 242.2 kB / 3.842 GB, free: 31.42 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/13.28, allocations: 70.16 kB / 3.842 GB, free: 31.42 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/13.28, allocations: 4.594 kB / 3.842 GB, free: 31.42 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00284/13.29, allocations: 1.017 MB / 3.843 GB, free: 31.37 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.957e-05/13.29, allocations: 10.09 kB / 3.843 GB, free: 31.37 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.938e-05/13.29, allocations: 20.34 kB / 3.843 GB, free: 31.37 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/13.29, allocations: 355.7 kB / 3.843 GB, free: 31.34 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.136e-05/13.29, allocations: 25.41 kB / 3.843 GB, free: 31.34 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002432/13.29, allocations: 232 kB / 3.843 GB, free: 31.26 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/13.29, allocations: 67.06 kB / 3.843 GB, free: 31.26 MB / 0.5418 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.0004882/13.29, allocations: 182.5 kB / 3.843 GB, free: 31.12 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003316/13.29, allocations: 142.5 kB / 3.844 GB, free: 31.05 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008857/13.3, allocations: 6.469 MB / 3.85 GB, free: 30.15 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.764e-05/13.3, allocations: 84.3 kB / 3.85 GB, free: 30.15 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/13.3, allocations: 0 / 3.85 GB, free: 30.15 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/13.3, allocations: 9 kB / 3.85 GB, free: 30.15 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005302/13.31, allocations: 3.286 MB / 3.853 GB, free: 29.67 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.98e-05/13.31, allocations: 3.938 kB / 3.853 GB, free: 29.67 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002188/13.31, allocations: 313.4 kB / 3.854 GB, free: 29.65 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.652e-05/13.31, allocations: 3.906 kB / 3.854 GB, free: 29.65 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.629e-05/13.31, allocations: 27.69 kB / 3.854 GB, free: 29.65 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.044e-05/13.31, allocations: 3.406 kB / 3.854 GB, free: 29.65 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/13.31, allocations: 0 / 3.854 GB, free: 29.65 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004591/13.31, allocations: 2.784 MB / 3.856 GB, free: 28.81 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001869/13.31, allocations: 0.9076 MB / 3.857 GB, free: 28.23 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005229/13.32, allocations: 23.62 kB / 3.857 GB, free: 28.21 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002243/13.32, allocations: 144.6 kB / 3.857 GB, free: 28.18 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/13.32, allocations: 109.8 kB / 3.857 GB, free: 28.16 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/13.32, allocations: 47.31 kB / 3.857 GB, free: 28.15 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.003149/13.32, allocations: 1.502 MB / 3.859 GB, free: 27.55 MB / 0.5418 GB Notification: Performance of sort global known variables: time 1.042e-06/13.32, allocations: 0 / 3.859 GB, free: 27.55 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.009271/13.33, allocations: 1.834 MB / 3.861 GB, free: 27.22 MB / 0.5418 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.01534/13.35, allocations: 5.229 MB / 3.866 GB, free: 24.96 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.004872/13.35, allocations: 2.179 MB / 3.868 GB, free: 24.12 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/13.35, allocations: 1.75 kB / 3.868 GB, free: 24.12 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.002251/13.35, allocations: 1.367 MB / 3.869 GB, free: 23.46 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007917/13.36, allocations: 0.7977 MB / 3.87 GB, free: 23.25 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01587/13.38, allocations: 4.895 MB / 3.875 GB, free: 20.98 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001651/13.38, allocations: 1.87 MB / 3.877 GB, free: 19.5 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.006449/13.39, allocations: 2.178 MB / 3.879 GB, free: 18.21 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002595/13.39, allocations: 1.088 MB / 3.88 GB, free: 17.21 MB / 0.5418 GB Notification: Performance of SimCode: time 1.923e-06/13.39, allocations: 4 kB / 3.88 GB, free: 17.21 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8004/14.19, allocations: 95.52 MB / 3.973 GB, free: 44.63 MB / 0.5418 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000251/14.19, allocations: 218.6 kB / 3.973 GB, free: 44.41 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.187/21.38, allocations: 4 kB / 3.973 GB, free: 44.4 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat