Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.202/2.202, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.535e-05/2.54e-05, allocations: 4 kB / 249.8 MB, free: 14.76 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3825, allocations: 44.49 MB / 294.3 MB, free: 14.39 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2186/0.6011, allocations: 104.3 MB / 398.6 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000466/0.6016, allocations: 87.89 kB / 398.7 MB, free: 9.324 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5867/1.188, allocations: 52.11 MB / 450.8 MB, free: 92.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.188, allocations: 3 kB / 450.8 MB, free: 92.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003539/1.189, allocations: 74.56 kB / 450.9 MB, free: 92.92 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.01036/1.199, allocations: 2.568 MB / 453.5 MB, free: 91.62 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.814e-05/1.199, allocations: 12.12 kB / 453.5 MB, free: 91.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002249/1.201, allocations: 348.9 kB / 453.8 MB, free: 91.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007321/1.209, allocations: 1.906 MB / 455.7 MB, free: 90.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/1.209, allocations: 80.16 kB / 455.8 MB, free: 90.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001101/1.21, allocations: 154.4 kB / 456 MB, free: 90.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00825/1.219, allocations: 2.346 MB / 458.3 MB, free: 89.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/1.229, allocations: 2.811 MB / 461.1 MB, free: 87.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000173/1.23, allocations: 19.83 kB / 461.1 MB, free: 87.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007588/1.23, allocations: 0 / 461.1 MB, free: 87.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001839/1.231, allocations: 116.9 kB / 461.3 MB, free: 87.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02803/1.259, allocations: 9.946 MB / 471.2 MB, free: 77.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/1.262, allocations: 1.387 MB / 472.6 MB, free: 75.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001756/1.264, allocations: 0.7348 MB / 473.3 MB, free: 74.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005051/1.264, allocations: 218.7 kB / 473.5 MB, free: 74.73 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/1.264, allocations: 43.88 kB / 473.6 MB, free: 74.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=106): time 4.478e-06/1.264, allocations: 0 / 473.6 MB, free: 74.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=136): time 0.01857/1.283, allocations: 5.164 MB / 478.7 MB, free: 69.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.712e-05/1.283, allocations: 64.72 kB / 478.8 MB, free: 69.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002832/1.286, allocations: 1.288 MB / 480.1 MB, free: 68.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001766/1.286, allocations: 29.7 kB / 480.1 MB, free: 68.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000997/1.287, allocations: 1.266 MB / 481.4 MB, free: 66.78 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004771/1.287, allocations: 449.3 kB / 481.8 MB, free: 66.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/1.288, allocations: 4 kB / 481.8 MB, free: 66.33 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/1.288, allocations: 373.9 kB / 482.2 MB, free: 65.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/1.29, allocations: 0.7575 MB / 483 MB, free: 65.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/1.292, allocations: 1.261 MB / 484.2 MB, free: 63.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/1.294, allocations: 0.9977 MB / 485.2 MB, free: 62.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/1.294, allocations: 4 kB / 485.2 MB, free: 62.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006201/1.3, allocations: 2.33 MB / 487.5 MB, free: 60.36 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.803e-05/1.3, allocations: 15.98 kB / 487.6 MB, free: 60.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.022e-05/1.3, allocations: 16 kB / 487.6 MB, free: 60.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001091/1.302, allocations: 247.5 kB / 487.8 MB, free: 60.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003614/1.305, allocations: 443.3 kB / 488.3 MB, free: 59.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003241/1.308, allocations: 2.886 MB / 491.1 MB, free: 56.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002796/1.311, allocations: 95.75 kB / 491.2 MB, free: 56.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003313/1.312, allocations: 75.98 kB / 491.3 MB, free: 56.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004548/1.312, allocations: 160.2 kB / 491.5 MB, free: 56.2 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0052/1.317, allocations: 1.857 MB / 493.3 MB, free: 54.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007753/1.318, allocations: 169.8 kB / 493.5 MB, free: 54.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005947/1.324, allocations: 2.018 MB / 495.5 MB, free: 52.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/1.324, allocations: 19.95 kB / 495.5 MB, free: 52.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/1.324, allocations: 0 / 495.5 MB, free: 52.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.398e-05/1.324, allocations: 11.97 kB / 495.5 MB, free: 52.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01272/1.337, allocations: 4.463 MB / 500 MB, free: 47.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/1.337, allocations: 0 / 500 MB, free: 47.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002711/1.34, allocations: 299.5 kB / 0.4886 GB, free: 47.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009985/1.341, allocations: 203.5 kB / 0.4888 GB, free: 47.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/1.341, allocations: 7.984 kB / 0.4888 GB, free: 47.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002953/1.344, allocations: 2.856 MB / 0.4916 GB, free: 43.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/1.344, allocations: 15.88 kB / 0.4916 GB, free: 43.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007298/1.351, allocations: 3.319 MB / 0.4948 GB, free: 40.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/1.353, allocations: 422.8 kB / 0.4952 GB, free: 40.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004886/1.353, allocations: 7.938 kB / 0.4952 GB, free: 40.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001873/1.355, allocations: 83.92 kB / 0.4953 GB, free: 39.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/1.355, allocations: 85.16 kB / 0.4954 GB, free: 39.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.356, allocations: 35.98 kB / 0.4954 GB, free: 39.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002092/1.358, allocations: 0.9655 MB / 0.4964 GB, free: 38.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.358, allocations: 0 / 0.4964 GB, free: 38.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002596/1.36, allocations: 459.9 kB / 0.4968 GB, free: 38.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008478/1.369, allocations: 4.746 MB / 0.5014 GB, free: 33.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00751/1.376, allocations: 2.303 MB / 0.5037 GB, free: 31.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.376, allocations: 0 / 0.5037 GB, free: 31.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004108/1.38, allocations: 1.35 MB / 0.505 GB, free: 29.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004582/1.385, allocations: 371.4 kB / 0.5054 GB, free: 29.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/1.404, allocations: 4.495 MB / 0.5097 GB, free: 24.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003677/1.407, allocations: 2.069 MB / 0.5118 GB, free: 22.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004222/1.412, allocations: 0.5185 MB / 0.5123 GB, free: 22.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003395/1.415, allocations: 0.9991 MB / 0.5133 GB, free: 21.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.653e-06/1.415, allocations: 0 / 0.5133 GB, free: 21.28 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.161/1.576, allocations: 40.28 MB / 0.5526 GB, free: 12.99 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004079/1.577, allocations: 196.7 kB / 0.5528 GB, free: 12.79 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.516/6.093, allocations: 0 / 0.5528 GB, free: 12.79 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat