Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.062e-05/4.079e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2655, allocations: 38.76 MB / 263.8 MB, free: 9.863 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 16.43/16.7, allocations: 5.484 GB / 5.742 GB, free: 91.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/16.7, allocations: 72.7 kB / 5.742 GB, free: 91.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.546/22.25, allocations: 0.9848 GB / 6.727 GB, free: 33.82 MB / 474.9 MB Notification: Performance of FrontEnd: time 3.166e-06/22.25, allocations: 0 / 6.727 GB, free: 33.82 MB / 474.9 MB Notification: Performance of Transformations before backend: time 4.099e-05/22.25, allocations: 11.72 kB / 6.727 GB, free: 33.81 MB / 474.9 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.03707/22.28, allocations: 1.561 MB / 6.728 GB, free: 32.6 MB / 474.9 MB Notification: Performance of prepare preOptimizeDAE: time 8.394e-05/22.28, allocations: 8.031 kB / 6.728 GB, free: 32.59 MB / 474.9 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001723/22.28, allocations: 87.92 kB / 6.728 GB, free: 32.54 MB / 474.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000984/22.28, allocations: 91.16 kB / 6.728 GB, free: 32.46 MB / 474.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007443/22.29, allocations: 391.4 kB / 6.729 GB, free: 32.18 MB / 474.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.883e-05/22.29, allocations: 36.25 kB / 6.729 GB, free: 32.16 MB / 474.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.455e-05/22.29, allocations: 42.19 kB / 6.729 GB, free: 32.14 MB / 474.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/22.29, allocations: 0.6185 MB / 6.729 GB, free: 31.74 MB / 474.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.809e-05/22.29, allocations: 6.344 kB / 6.729 GB, free: 31.73 MB / 474.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.537e-05/22.29, allocations: 22.19 kB / 6.729 GB, free: 31.73 MB / 474.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/22.29, allocations: 15.28 kB / 6.729 GB, free: 31.71 MB / 474.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/22.29, allocations: 0.5216 MB / 6.73 GB, free: 31.42 MB / 474.9 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01064/22.3, allocations: 6.096 MB / 6.736 GB, free: 26.49 MB / 474.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001381/22.3, allocations: 427.2 kB / 6.736 GB, free: 26.24 MB / 474.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004476/22.3, allocations: 205.2 kB / 6.736 GB, free: 26.12 MB / 474.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004734/22.31, allocations: 2.839 MB / 6.739 GB, free: 23.09 MB / 474.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/22.31, allocations: 37.56 kB / 6.739 GB, free: 23.05 MB / 474.9 MB Notification: Performance of pre-optimization done (n=46): time 3.777e-06/22.31, allocations: 2.531 kB / 6.739 GB, free: 23.05 MB / 474.9 MB Notification: Performance of matching and sorting (n=54): time 0.01356/22.32, allocations: 1.825 MB / 6.741 GB, free: 21.8 MB / 474.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/22.32, allocations: 55.84 kB / 6.741 GB, free: 21.74 MB / 474.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004315/22.32, allocations: 268.3 kB / 6.741 GB, free: 21.53 MB / 474.9 MB Notification: Performance of collectPreVariables (initialization): time 9.887e-05/22.32, allocations: 39.39 kB / 6.741 GB, free: 21.5 MB / 474.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/22.32, allocations: 280.4 kB / 6.742 GB, free: 21.28 MB / 474.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/22.32, allocations: 197.3 kB / 6.742 GB, free: 21.16 MB / 474.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.44e-05/22.32, allocations: 11.34 kB / 6.742 GB, free: 21.16 MB / 474.9 MB Notification: Performance of setup shared object (initialization): time 8.747e-05/22.32, allocations: 343.8 kB / 6.742 GB, free: 20.83 MB / 474.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004646/22.32, allocations: 168.8 kB / 6.742 GB, free: 20.73 MB / 474.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000519/22.32, allocations: 325.5 kB / 6.743 GB, free: 20.45 MB / 474.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005682/22.32, allocations: 227.5 kB / 6.743 GB, free: 20.33 MB / 474.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/22.32, allocations: 0 / 6.743 GB, free: 20.33 MB / 474.9 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.00204/22.32, allocations: 0.6422 MB / 6.743 GB, free: 19.93 MB / 474.9 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/22.33, allocations: 4 kB / 6.743 GB, free: 19.92 MB / 474.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/22.33, allocations: 8 kB / 6.743 GB, free: 19.91 MB / 474.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02419/22.35, allocations: 0.5592 MB / 6.744 GB, free: 19.61 MB / 474.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/22.35, allocations: 142.8 kB / 6.744 GB, free: 19.5 MB / 474.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002162/22.35, allocations: 2.986 MB / 6.747 GB, free: 16.47 MB / 474.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008028/22.35, allocations: 44.88 kB / 6.747 GB, free: 16.45 MB / 474.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.433e-05/22.35, allocations: 31.25 kB / 6.747 GB, free: 16.42 MB / 474.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002185/22.35, allocations: 139.2 kB / 6.747 GB, free: 16.3 MB / 474.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/22.35, allocations: 46.58 kB / 6.747 GB, free: 16.26 MB / 474.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002362/22.36, allocations: 1.051 MB / 6.748 GB, free: 15.66 MB / 474.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.042e-05/22.36, allocations: 13.59 kB / 6.748 GB, free: 15.66 MB / 474.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/22.36, allocations: 0 / 6.748 GB, free: 15.66 MB / 474.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00159/22.36, allocations: 1.079 MB / 6.749 GB, free: 14.87 MB / 474.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003196/22.36, allocations: 1.716 MB / 6.751 GB, free: 13.88 MB / 474.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/22.36, allocations: 0 / 6.751 GB, free: 13.88 MB / 474.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007581/22.36, allocations: 101.9 kB / 6.751 GB, free: 13.81 MB / 474.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006364/22.37, allocations: 379.7 kB / 6.752 GB, free: 13.64 MB / 474.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/22.37, allocations: 22.88 kB / 6.752 GB, free: 13.63 MB / 474.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007159/22.37, allocations: 1.141 MB / 6.753 GB, free: 12.52 MB / 474.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/22.37, allocations: 0 / 6.753 GB, free: 12.52 MB / 474.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00216/22.37, allocations: 1.11 MB / 6.754 GB, free: 11.81 MB / 474.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/22.37, allocations: 142.6 kB / 6.754 GB, free: 11.67 MB / 474.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/22.37, allocations: 11.12 kB / 6.754 GB, free: 11.66 MB / 474.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005768/22.37, allocations: 33.33 kB / 6.754 GB, free: 11.65 MB / 474.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/22.37, allocations: 38.77 kB / 6.754 GB, free: 11.63 MB / 474.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.538e-05/22.37, allocations: 21.16 kB / 6.754 GB, free: 11.62 MB / 474.9 MB Notification: Performance of sorting global known variables: time 0.0003693/22.37, allocations: 248.3 kB / 6.754 GB, free: 11.44 MB / 474.9 MB Notification: Performance of sort global known variables: time 4.91e-07/22.37, allocations: 3.938 kB / 6.754 GB, free: 11.43 MB / 474.9 MB Notification: Performance of remove unused functions: time 0.02059/22.39, allocations: 1.099 MB / 6.755 GB, free: 10.53 MB / 474.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.2655/22.66, allocations: 25.27 MB / 6.78 GB, free: 2.547 MB / 490.9 MB Notification: Performance of simCode: created initialization part: time 0.002322/22.66, allocations: 0.6878 MB / 6.781 GB, free: 2.07 MB / 490.9 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/22.66, allocations: 0 / 6.781 GB, free: 2.07 MB / 490.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/22.66, allocations: 385.4 kB / 6.781 GB, free: 1.859 MB / 490.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002379/22.67, allocations: 246.5 kB / 6.781 GB, free: 1.727 MB / 490.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01951/22.68, allocations: 1.669 MB / 6.783 GB, free: 440 kB / 490.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005901/22.69, allocations: 0.8821 MB / 6.784 GB, free: 15.6 MB / 0.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004161/22.69, allocations: 207.6 kB / 6.784 GB, free: 15.55 MB / 0.495 GB Notification: Performance of SimCode: time 1.042e-06/22.69, allocations: 0 / 6.784 GB, free: 15.55 MB / 0.495 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.935/26.62, allocations: 49.28 MB / 6.832 GB, free: 84.66 MB / 0.5106 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Media.Examples.R134a.R134a2_res.mat does not exist to compare? outputFormat=mat