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.988/1.988, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.202e-05/4.207e-05, allocations: 4 kB / 273.2 MB, free: 0.6328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.704/7.818, allocations: 2.497 GB / 2.812 GB, free: 64.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/7.818, allocations: 82.52 kB / 2.812 GB, free: 64.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.58/11.4, allocations: 0.6184 GB / 3.43 GB, free: 34.94 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.224e-06/11.4, allocations: 0 / 3.43 GB, free: 34.94 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002105/11.4, allocations: 40.17 kB / 3.43 GB, free: 34.93 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.01195/11.41, allocations: 2.376 MB / 3.433 GB, free: 33.86 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/11.41, allocations: 10.62 kB / 3.433 GB, free: 33.86 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005826/11.41, allocations: 180.6 kB / 3.433 GB, free: 33.82 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/11.42, allocations: 0.9017 MB / 3.434 GB, free: 33.74 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003563/11.43, allocations: 1.053 MB / 3.435 GB, free: 33.41 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001929/11.43, allocations: 99 kB / 3.435 GB, free: 33.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003577/11.43, allocations: 117.7 kB / 3.435 GB, free: 33.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008097/11.44, allocations: 2.229 MB / 3.437 GB, free: 32.97 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.219e-05/11.44, allocations: 9.625 kB / 3.437 GB, free: 32.97 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002986/11.44, allocations: 58.34 kB / 3.437 GB, free: 32.97 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-05/11.44, allocations: 35.48 kB / 3.437 GB, free: 32.96 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007855/11.44, allocations: 1.951 MB / 3.439 GB, free: 32.96 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01671/11.46, allocations: 9.773 MB / 3.449 GB, free: 26.39 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00592/11.47, allocations: 1.485 MB / 3.45 GB, free: 26.36 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001107/11.47, allocations: 407 kB / 3.45 GB, free: 26.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07383/11.54, allocations: 18.94 MB / 3.469 GB, free: 16.85 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.679e-05/11.54, allocations: 49.38 kB / 3.469 GB, free: 16.81 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 5.791e-06/11.54, allocations: 0 / 3.469 GB, free: 16.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.01394/11.56, allocations: 2.255 MB / 3.471 GB, free: 16.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/11.56, allocations: 274.2 kB / 3.471 GB, free: 16.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/11.56, allocations: 0.7293 MB / 3.472 GB, free: 16.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002748/11.56, allocations: 44.11 kB / 3.472 GB, free: 16.17 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000672/11.56, allocations: 0.6777 MB / 3.473 GB, free: 15.77 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004873/11.56, allocations: 312.8 kB / 3.473 GB, free: 15.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/11.56, allocations: 23.59 kB / 3.473 GB, free: 15.57 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/11.56, allocations: 362 kB / 3.473 GB, free: 15.26 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/11.56, allocations: 333.1 kB / 3.474 GB, free: 15.26 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/11.56, allocations: 0.8814 MB / 3.475 GB, free: 14.55 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001381/11.56, allocations: 466 kB / 3.475 GB, free: 14.51 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.951e-05/11.56, allocations: 7.469 kB / 3.475 GB, free: 14.51 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.004079/11.57, allocations: 1.197 MB / 3.476 GB, free: 14.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.006998/11.57, allocations: 6.877 MB / 3.483 GB, free: 23.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.559e-05/11.58, allocations: 18.47 kB / 3.483 GB, free: 23.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.712e-05/11.58, allocations: 28.31 kB / 3.483 GB, free: 23.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/11.58, allocations: 389.8 kB / 3.483 GB, free: 23.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.794e-05/11.58, allocations: 37.66 kB / 3.483 GB, free: 23.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002841/11.58, allocations: 238.6 kB / 3.484 GB, free: 23.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000226/11.58, allocations: 85.7 kB / 3.484 GB, free: 23.12 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/11.58, allocations: 3.844 kB / 3.484 GB, free: 23.12 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007594/11.59, allocations: 1.118 MB / 3.485 GB, free: 23.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.803e-05/11.59, allocations: 16 kB / 3.485 GB, free: 23.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.626e-05/11.59, allocations: 27.28 kB / 3.485 GB, free: 23.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003364/11.59, allocations: 385.6 kB / 3.485 GB, free: 23.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-05/11.59, allocations: 40.61 kB / 3.485 GB, free: 23.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002811/11.6, allocations: 203.9 kB / 3.485 GB, free: 23.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004127/11.6, allocations: 81.91 kB / 3.486 GB, free: 23.03 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.0007166/11.6, allocations: 209.9 kB / 3.486 GB, free: 22.91 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005741/11.6, allocations: 116.3 kB / 3.486 GB, free: 22.85 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/11.61, allocations: 5.814 MB / 3.492 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001404/11.61, allocations: 81.94 kB / 3.492 GB, free: 22.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.263e-05/11.61, allocations: 4 kB / 3.492 GB, free: 22.22 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.879e-05/11.61, allocations: 6.938 kB / 3.492 GB, free: 22.22 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0064/11.62, allocations: 2.797 MB / 3.494 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.29e-05/11.62, allocations: 7.453 kB / 3.494 GB, free: 21.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007992/11.63, allocations: 295.2 kB / 3.495 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.441e-05/11.63, allocations: 3.5 kB / 3.495 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/11.63, allocations: 25.44 kB / 3.495 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.235e-05/11.63, allocations: 3.531 kB / 3.495 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/11.63, allocations: 0 / 3.495 GB, free: 21.81 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005844/11.63, allocations: 2.672 MB / 3.497 GB, free: 21.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/11.64, allocations: 0.5367 MB / 3.498 GB, free: 21.08 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004406/11.64, allocations: 26.69 kB / 3.498 GB, free: 21.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002364/11.64, allocations: 129.7 kB / 3.498 GB, free: 21.06 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003537/11.64, allocations: 95.75 kB / 3.498 GB, free: 21.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/11.64, allocations: 35.36 kB / 3.498 GB, free: 21.05 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001766/11.64, allocations: 0.6558 MB / 3.499 GB, free: 20.94 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.11e-07/11.64, allocations: 3.219 kB / 3.499 GB, free: 20.94 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01131/11.65, allocations: 1.712 MB / 3.5 GB, free: 20.71 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.01861/11.67, allocations: 5.1 MB / 3.505 GB, free: 19.38 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005104/11.68, allocations: 2.188 MB / 3.508 GB, free: 19.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.856e-06/11.68, allocations: 1.875 kB / 3.508 GB, free: 19.25 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002182/11.68, allocations: 1.357 MB / 3.509 GB, free: 19.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005376/11.68, allocations: 0.5849 MB / 3.509 GB, free: 19.17 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.739/12.42, allocations: 123.9 MB / 3.63 GB, free: 42.15 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/12.42, allocations: 1.654 MB / 3.632 GB, free: 41.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001604/12.43, allocations: 0.8851 MB / 3.633 GB, free: 41.38 MB / 474.7 MB Notification: Performance of SimCode: time 2.104e-06/12.43, allocations: 0 / 3.633 GB, free: 41.38 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.794/16.22, allocations: 54.4 MB / 3.686 GB, free: 26.83 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