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 2.069/2.069, allocations: 209.4 MB / 216.9 MB, free: 6.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.13e-05, allocations: 6.109 kB / 267.6 MB, free: 5.336 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.111, allocations: 48.7 MB / 316.3 MB, free: 4.547 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.886/7.997, allocations: 2.497 GB / 2.806 GB, free: 96.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003046/7.997, allocations: 85.95 kB / 2.806 GB, free: 96.69 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.558/11.56, allocations: 0.6127 GB / 3.419 GB, free: 35.61 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.066e-06/11.56, allocations: 0 / 3.419 GB, free: 35.61 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002381/11.56, allocations: 40.47 kB / 3.419 GB, free: 35.61 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.01326/11.57, allocations: 2.373 MB / 3.421 GB, free: 34.66 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/11.57, allocations: 9.719 kB / 3.421 GB, free: 34.66 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01206/11.58, allocations: 0.9001 MB / 3.422 GB, free: 34.58 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003889/11.58, allocations: 1.059 MB / 3.423 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001673/11.59, allocations: 56.12 kB / 3.423 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003256/11.59, allocations: 65.53 kB / 3.423 GB, free: 34.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003761/11.59, allocations: 1.211 MB / 3.424 GB, free: 34.24 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004253/11.59, allocations: 1.417 MB / 3.426 GB, free: 33.81 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.08e-05/11.59, allocations: 7.453 kB / 3.426 GB, free: 33.81 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002861/11.59, allocations: 12.92 kB / 3.426 GB, free: 33.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.528e-05/11.59, allocations: 31.5 kB / 3.426 GB, free: 33.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.395/12.99, allocations: 265.5 MB / 3.685 GB, free: 46.87 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/12.99, allocations: 0.5271 MB / 3.685 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005802/12.99, allocations: 251.3 kB / 3.686 GB, free: 46.83 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06556/13.06, allocations: 20.21 MB / 3.705 GB, free: 34.92 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.287e-05/13.06, allocations: 37.69 kB / 3.705 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=23): time 3.426e-06/13.06, allocations: 4 kB / 3.705 GB, free: 34.88 MB / 0.5105 GB Notification: Performance of matching and sorting (n=23): time 0.00758/13.06, allocations: 1.36 MB / 3.707 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/13.06, allocations: 263.8 kB / 3.707 GB, free: 34.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00189/13.07, allocations: 0.9995 MB / 3.708 GB, free: 34.32 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.159e-05/13.07, allocations: 29.7 kB / 3.708 GB, free: 34.29 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005857/13.07, allocations: 0.8656 MB / 3.709 GB, free: 33.84 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/13.07, allocations: 95.08 kB / 3.709 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.194e-05/13.07, allocations: 2.625 kB / 3.709 GB, free: 33.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001079/13.07, allocations: 357.1 kB / 3.709 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007045/13.07, allocations: 315.2 kB / 3.71 GB, free: 33.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/13.07, allocations: 0.8547 MB / 3.71 GB, free: 32.78 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004424/13.07, allocations: 0.7384 MB / 3.711 GB, free: 32.75 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.792e-05/13.07, allocations: 7.375 kB / 3.711 GB, free: 32.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.006403/13.08, allocations: 1.434 MB / 3.713 GB, free: 32.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001518/13.08, allocations: 6.879 MB / 3.719 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.222e-05/13.08, allocations: 17.5 kB / 3.719 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.771e-05/13.08, allocations: 32.88 kB / 3.719 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/13.08, allocations: 393.3 kB / 3.72 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.063e-05/13.08, allocations: 34.91 kB / 3.72 GB, free: 25.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003672/13.09, allocations: 362.3 kB / 3.72 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002819/13.09, allocations: 84.58 kB / 3.72 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/13.09, allocations: 2.438 kB / 3.72 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005304/13.09, allocations: 1.227 MB / 3.721 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/13.09, allocations: 20.47 kB / 3.721 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.128e-05/13.09, allocations: 33.52 kB / 3.721 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002335/13.1, allocations: 390.5 kB / 3.722 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.938e-05/13.1, allocations: 36.02 kB / 3.722 GB, free: 25.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/13.1, allocations: 230.2 kB / 3.722 GB, free: 25.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/13.1, allocations: 83.2 kB / 3.722 GB, free: 25.28 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.000406/13.1, allocations: 155 kB / 3.722 GB, free: 25.16 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003707/13.1, allocations: 0.5889 MB / 3.723 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/13.1, allocations: 121 kB / 3.723 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00263/13.11, allocations: 1.007 MB / 3.724 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/13.11, allocations: 8.734 kB / 3.724 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/13.11, allocations: 0 / 3.724 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/13.11, allocations: 3.188 kB / 3.724 GB, free: 24.78 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/13.11, allocations: 0.9349 MB / 3.725 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/13.11, allocations: 0 / 3.725 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004861/13.11, allocations: 68.73 kB / 3.725 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/13.11, allocations: 0 / 3.725 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/13.11, allocations: 8.375 kB / 3.725 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/13.11, allocations: 3.953 kB / 3.725 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/13.11, allocations: 1.875 kB / 3.725 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001675/13.11, allocations: 450 kB / 3.725 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009189/13.11, allocations: 416.9 kB / 3.726 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004366/13.11, allocations: 5.172 kB / 3.726 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/13.11, allocations: 86.91 kB / 3.726 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.204e-05/13.11, allocations: 16.64 kB / 3.726 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/13.11, allocations: 13.69 kB / 3.726 GB, free: 24.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002162/13.12, allocations: 1.056 MB / 3.727 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.72e-07/13.12, allocations: 0 / 3.727 GB, free: 24.09 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009569/13.13, allocations: 1.696 MB / 3.729 GB, free: 23.97 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 24 * 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 Backend phase and start with SimCode phase: time 0.01608/13.14, allocations: 3.002 MB / 3.732 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004226/13.15, allocations: 1.195 MB / 3.733 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/13.15, allocations: 0 / 3.733 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003054/13.15, allocations: 84.86 kB / 3.733 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003811/13.15, allocations: 374.5 kB / 3.733 GB, free: 23.04 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009747/13.16, allocations: 2.052 MB / 3.735 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008063/13.16, allocations: 1.237 MB / 3.736 GB, free: 21.64 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001302/13.16, allocations: 0.5988 MB / 3.737 GB, free: 21.63 MB / 0.5105 GB Notification: Performance of SimCode: time 1.272e-06/13.16, allocations: 0 / 3.737 GB, free: 21.63 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.046/17.21, allocations: 48.41 MB / 3.784 GB, free: 95.48 MB / 0.5105 GB 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