Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Valves_TestValveCharacteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.412/2.412, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.815e-05/3.822e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.408/0.4081, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.863/8.271, allocations: 2.608 GB / 2.959 GB, free: 113.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/8.272, allocations: 86.62 kB / 2.96 GB, free: 113.7 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.482/11.75, allocations: 0.6322 GB / 3.592 GB, free: 37.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.974e-06/11.75, allocations: 0 / 3.592 GB, free: 37.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001769/11.75, allocations: 40.72 kB / 3.592 GB, free: 37.89 MB / 0.4948 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.01229/11.77, allocations: 2.447 MB / 3.594 GB, free: 36.72 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/11.77, allocations: 10.31 kB / 3.594 GB, free: 36.72 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006595/11.77, allocations: 178.7 kB / 3.594 GB, free: 36.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01189/11.78, allocations: 0.9508 MB / 3.595 GB, free: 36.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003711/11.78, allocations: 1.056 MB / 3.596 GB, free: 36.22 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/11.78, allocations: 108 kB / 3.596 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000442/11.78, allocations: 112.9 kB / 3.597 GB, free: 36.21 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008267/11.79, allocations: 2.234 MB / 3.599 GB, free: 35.77 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.86e-05/11.79, allocations: 7.906 kB / 3.599 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003013/11.79, allocations: 64.06 kB / 3.599 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.158e-05/11.79, allocations: 31.28 kB / 3.599 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007973/11.8, allocations: 1.95 MB / 3.601 GB, free: 35.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01693/11.82, allocations: 9.767 MB / 3.61 GB, free: 29.12 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005964/11.82, allocations: 1.483 MB / 3.612 GB, free: 29.09 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/11.82, allocations: 405.7 kB / 3.612 GB, free: 29.08 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07098/11.89, allocations: 18.97 MB / 3.631 GB, free: 19.39 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.092e-05/11.89, allocations: 44.75 kB / 3.631 GB, free: 19.35 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 5.08e-06/11.89, allocations: 0 / 3.631 GB, free: 19.35 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.01018/11.91, allocations: 2.264 MB / 3.633 GB, free: 19.15 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/11.91, allocations: 280.2 kB / 3.633 GB, free: 18.83 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/11.91, allocations: 0.7308 MB / 3.634 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.000251/11.91, allocations: 42.98 kB / 3.634 GB, free: 18.45 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004911/11.91, allocations: 0.6774 MB / 3.635 GB, free: 17.88 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/11.91, allocations: 303.8 kB / 3.635 GB, free: 17.65 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/11.91, allocations: 26.81 kB / 3.635 GB, free: 17.63 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001156/11.91, allocations: 365.1 kB / 3.635 GB, free: 17.29 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009003/11.91, allocations: 332.6 kB / 3.636 GB, free: 17.17 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/11.91, allocations: 0.8834 MB / 3.636 GB, free: 16.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/11.91, allocations: 458.9 kB / 3.637 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.384e-05/11.91, allocations: 3.531 kB / 3.637 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.003359/11.91, allocations: 1.203 MB / 3.638 GB, free: 15.67 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.003509/11.92, allocations: 6.882 MB / 3.645 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.77e-05/11.92, allocations: 18.38 kB / 3.645 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.474e-05/11.92, allocations: 29.22 kB / 3.645 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/11.92, allocations: 393.3 kB / 3.645 GB, free: 24.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.067e-05/11.92, allocations: 39.02 kB / 3.645 GB, free: 24.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002607/11.92, allocations: 237.6 kB / 3.645 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000268/11.92, allocations: 82.66 kB / 3.646 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/11.92, allocations: 3.562 kB / 3.646 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003087/11.93, allocations: 1.109 MB / 3.647 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.69e-05/11.93, allocations: 19.25 kB / 3.647 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.009e-05/11.93, allocations: 25.53 kB / 3.647 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/11.93, allocations: 392.4 kB / 3.647 GB, free: 23.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-05/11.93, allocations: 40.56 kB / 3.647 GB, free: 23.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/11.93, allocations: 206.1 kB / 3.647 GB, free: 23.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002216/11.93, allocations: 79.12 kB / 3.647 GB, free: 23.58 MB / 0.5105 GB 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.0005437/11.93, allocations: 206.3 kB / 3.648 GB, free: 23.4 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004755/11.93, allocations: 117.5 kB / 3.648 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009607/11.94, allocations: 5.809 MB / 3.653 GB, free: 20.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001147/11.94, allocations: 81.98 kB / 3.653 GB, free: 20.61 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/11.94, allocations: 15.69 kB / 3.653 GB, free: 20.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-05/11.94, allocations: 10.05 kB / 3.653 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005463/11.95, allocations: 2.796 MB / 3.656 GB, free: 19.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.593e-05/11.95, allocations: 0 / 3.656 GB, free: 19.22 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002094/11.95, allocations: 291 kB / 3.656 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.166e-05/11.95, allocations: 2.969 kB / 3.656 GB, free: 19.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/11.95, allocations: 28.5 kB / 3.656 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-05/11.95, allocations: 6.062 kB / 3.656 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/11.95, allocations: 7.922 kB / 3.656 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00439/11.96, allocations: 2.675 MB / 3.659 GB, free: 17.92 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/11.96, allocations: 0.5254 MB / 3.66 GB, free: 17.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002657/11.96, allocations: 19.78 kB / 3.66 GB, free: 17.53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/11.96, allocations: 139.2 kB / 3.66 GB, free: 17.49 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/11.96, allocations: 94.91 kB / 3.66 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.463e-05/11.96, allocations: 37.14 kB / 3.66 GB, free: 17.47 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001274/11.96, allocations: 0.6534 MB / 3.66 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.81e-07/11.96, allocations: 0 / 3.66 GB, free: 17.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008535/11.97, allocations: 1.724 MB / 3.662 GB, free: 16.84 MB / 0.5105 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 ($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.01707/11.99, allocations: 5.104 MB / 3.667 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004971/11.99, allocations: 2.183 MB / 3.669 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.437e-06/11.99, allocations: 4 kB / 3.669 GB, free: 11.44 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002372/11.99, allocations: 1.354 MB / 3.671 GB, free: 10.16 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005706/12, allocations: 0.585 MB / 3.671 GB, free: 9.734 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7873/12.79, allocations: 126.1 MB / 3.794 GB, free: 41.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/12.79, allocations: 1.656 MB / 3.796 GB, free: 40.27 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001553/12.79, allocations: 0.8843 MB / 3.797 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of SimCode: time 1.523e-06/12.79, allocations: 0 / 3.797 GB, free: 40.26 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.901/16.69, allocations: 54.56 MB / 3.85 GB, free: 14.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics_res.mat does not exist to compare? outputFormat=mat