Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.98/1.98, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.235e-05/4.264e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1159, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.879/7.995, allocations: 2.497 GB / 2.812 GB, free: 66.66 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/7.995, allocations: 78.14 kB / 2.812 GB, free: 66.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.704/11.7, allocations: 0.6184 GB / 3.43 GB, free: 35.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.344e-06/11.7, allocations: 1.562 kB / 3.43 GB, free: 35.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00017/11.7, allocations: 42.09 kB / 3.43 GB, free: 35.35 MB / 458.7 MB 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.01179/11.71, allocations: 2.366 MB / 3.432 GB, free: 34.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.274e-05/11.71, allocations: 13.66 kB / 3.432 GB, free: 34.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006567/11.71, allocations: 176.9 kB / 3.433 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0114/11.72, allocations: 0.9033 MB / 3.434 GB, free: 34.17 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003734/11.73, allocations: 1.053 MB / 3.435 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/11.73, allocations: 101.7 kB / 3.435 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004143/11.73, allocations: 114.5 kB / 3.435 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008499/11.74, allocations: 2.252 MB / 3.437 GB, free: 33.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.286e-05/11.74, allocations: 10.59 kB / 3.437 GB, free: 33.39 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003184/11.74, allocations: 53.88 kB / 3.437 GB, free: 33.39 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.806e-05/11.74, allocations: 38.14 kB / 3.437 GB, free: 33.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008309/11.75, allocations: 1.975 MB / 3.439 GB, free: 33.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/11.76, allocations: 9.768 MB / 3.449 GB, free: 26.82 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006025/11.77, allocations: 1.498 MB / 3.45 GB, free: 26.78 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001097/11.77, allocations: 405.6 kB / 3.45 GB, free: 26.77 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06766/11.84, allocations: 18.93 MB / 3.469 GB, free: 17.36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.264e-05/11.84, allocations: 45.19 kB / 3.469 GB, free: 17.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 5.02e-06/11.84, allocations: 0 / 3.469 GB, free: 17.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.01033/11.85, allocations: 2.258 MB / 3.471 GB, free: 17.19 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/11.85, allocations: 272 kB / 3.471 GB, free: 16.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001484/11.85, allocations: 0.7389 MB / 3.472 GB, free: 16.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002612/11.85, allocations: 43.95 kB / 3.472 GB, free: 16.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004914/11.85, allocations: 0.6806 MB / 3.473 GB, free: 16.26 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004425/11.85, allocations: 308.5 kB / 3.473 GB, free: 16.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/11.85, allocations: 24.62 kB / 3.473 GB, free: 16.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/11.85, allocations: 356.7 kB / 3.473 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009222/11.85, allocations: 333.2 kB / 3.474 GB, free: 15.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/11.85, allocations: 0.8886 MB / 3.475 GB, free: 15.04 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/11.86, allocations: 463 kB / 3.475 GB, free: 15 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.676e-05/11.86, allocations: 7.438 kB / 3.475 GB, free: 15 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.00381/11.86, allocations: 1.245 MB / 3.476 GB, free: 14.93 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003421/11.86, allocations: 6.89 MB / 3.483 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.312e-05/11.86, allocations: 18.56 kB / 3.483 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.944e-05/11.86, allocations: 30.56 kB / 3.483 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/11.87, allocations: 395 kB / 3.483 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.301e-05/11.87, allocations: 36.73 kB / 3.484 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002627/11.87, allocations: 233.7 kB / 3.484 GB, free: 23.62 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003513/11.87, allocations: 82.8 kB / 3.484 GB, free: 23.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/11.87, allocations: 3.844 kB / 3.484 GB, free: 23.62 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003196/11.87, allocations: 1.16 MB / 3.485 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.361e-05/11.87, allocations: 22.47 kB / 3.485 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.794e-05/11.87, allocations: 28.12 kB / 3.485 GB, free: 23.58 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/11.87, allocations: 389.5 kB / 3.485 GB, free: 23.55 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.314e-05/11.87, allocations: 35.81 kB / 3.485 GB, free: 23.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/11.88, allocations: 203.5 kB / 3.486 GB, free: 23.49 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000247/11.88, allocations: 81.77 kB / 3.486 GB, free: 23.49 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * 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 (165): * Single equations (assignments): 165 * 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.000502/11.88, allocations: 210.1 kB / 3.486 GB, free: 23.34 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004143/11.88, allocations: 116.7 kB / 3.486 GB, free: 23.28 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009463/11.89, allocations: 5.823 MB / 3.492 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001167/11.89, allocations: 82.16 kB / 3.492 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/11.89, allocations: 3.938 kB / 3.492 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.765e-05/11.89, allocations: 6.234 kB / 3.492 GB, free: 22.65 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005569/11.89, allocations: 2.795 MB / 3.494 GB, free: 22.26 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.444e-05/11.89, allocations: 11.45 kB / 3.494 GB, free: 22.25 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/11.9, allocations: 286.7 kB / 3.495 GB, free: 22.24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-05/11.9, allocations: 6.688 kB / 3.495 GB, free: 22.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/11.9, allocations: 28.64 kB / 3.495 GB, free: 22.24 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.025e-05/11.9, allocations: 3.188 kB / 3.495 GB, free: 22.24 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/11.9, allocations: 0 / 3.495 GB, free: 22.24 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004692/11.9, allocations: 2.674 MB / 3.497 GB, free: 21.82 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/11.9, allocations: 0.5378 MB / 3.498 GB, free: 21.51 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003791/11.9, allocations: 17.84 kB / 3.498 GB, free: 21.51 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001877/11.9, allocations: 143.8 kB / 3.498 GB, free: 21.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002683/11.9, allocations: 86.88 kB / 3.498 GB, free: 21.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.9e-05/11.9, allocations: 40.97 kB / 3.498 GB, free: 21.48 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001307/11.91, allocations: 0.6534 MB / 3.499 GB, free: 21.36 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.31e-07/11.91, allocations: 0 / 3.499 GB, free: 21.36 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008906/11.91, allocations: 1.71 MB / 3.501 GB, free: 21.13 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 56 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse38.phase,$cse38.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.01662/11.93, allocations: 5.088 MB / 3.505 GB, free: 19.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005209/11.94, allocations: 2.248 MB / 3.508 GB, free: 19.65 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/11.94, allocations: 3.75 kB / 3.508 GB, free: 19.65 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002315/11.94, allocations: 1.356 MB / 3.509 GB, free: 19.62 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0056/11.94, allocations: 0.5772 MB / 3.51 GB, free: 19.58 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7916/12.74, allocations: 123.9 MB / 3.631 GB, free: 42.33 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001324/12.74, allocations: 1.657 MB / 3.632 GB, free: 41.56 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/12.74, allocations: 0.8796 MB / 3.633 GB, free: 41.55 MB / 474.7 MB Notification: Performance of SimCode: time 1.704e-06/12.74, allocations: 2.875 kB / 3.633 GB, free: 41.55 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.898/16.64, allocations: 54.32 MB / 3.686 GB, free: 28.2 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat