Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.699/1.699, allocations: 171.2 MB / 178.8 MB, free: 176 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.62e-05/2.637e-05, allocations: 12 kB / 219.6 MB, free: 7.312 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2511, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1671/0.4182, allocations: 98.98 MB / 357.3 MB, free: 10.78 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4186, allocations: 79.95 kB / 357.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.403/0.8216, allocations: 50.5 MB / 407.9 MB, free: 67.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.8216, allocations: 0 / 407.9 MB, free: 67.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002584/0.8219, allocations: 75.47 kB / 408 MB, free: 67.77 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.008073/0.83, allocations: 2.558 MB / 410.5 MB, free: 65.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.83, allocations: 11.97 kB / 410.5 MB, free: 65.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001556/0.8316, allocations: 348.1 kB / 410.9 MB, free: 64.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004752/0.8364, allocations: 1.733 MB / 412.6 MB, free: 63.05 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.8365, allocations: 84 kB / 412.7 MB, free: 62.96 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005744/0.8371, allocations: 147.9 kB / 412.8 MB, free: 62.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006093/0.8432, allocations: 2.345 MB / 415.2 MB, free: 60.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007222/0.8505, allocations: 2.836 MB / 418 MB, free: 57.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.8506, allocations: 4 kB / 418 MB, free: 57.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003124/0.851, allocations: 0 / 418 MB, free: 57.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001486/0.8511, allocations: 120.9 kB / 418.1 MB, free: 57.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02168/0.8728, allocations: 9.867 MB / 428 MB, free: 47.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.8754, allocations: 1.379 MB / 429.4 MB, free: 45.81 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001456/0.8769, allocations: 0.7167 MB / 430.1 MB, free: 45.09 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003843/0.8773, allocations: 138.4 kB / 430.2 MB, free: 44.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.8773, allocations: 51.75 kB / 430.3 MB, free: 44.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 3.677e-06/0.8773, allocations: 4 kB / 430.3 MB, free: 44.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=135): time 0.01476/0.8921, allocations: 5.138 MB / 435.4 MB, free: 39.69 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/0.8922, allocations: 64.72 kB / 435.5 MB, free: 39.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.8944, allocations: 1.17 MB / 436.7 MB, free: 38.44 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002522/0.8947, allocations: 25.7 kB / 436.7 MB, free: 38.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007324/0.8954, allocations: 1.212 MB / 437.9 MB, free: 37.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004614/0.8959, allocations: 457.3 kB / 438.3 MB, free: 36.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001679/0.8961, allocations: 0 / 438.3 MB, free: 36.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.8962, allocations: 378.8 kB / 438.7 MB, free: 36.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.8978, allocations: 0.7536 MB / 439.5 MB, free: 35.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.8995, allocations: 1.257 MB / 440.7 MB, free: 34.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001955/0.9015, allocations: 0.9937 MB / 441.7 MB, free: 33.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.299e-05/0.9015, allocations: 4 kB / 441.7 MB, free: 33.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004893/0.9064, allocations: 2.226 MB / 443.9 MB, free: 30.87 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.9065, allocations: 12 kB / 444 MB, free: 30.86 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.9065, allocations: 16 kB / 444 MB, free: 30.84 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008913/0.9074, allocations: 247.5 kB / 444.2 MB, free: 30.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002973/0.9104, allocations: 443.3 kB / 444.6 MB, free: 30.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002681/0.9131, allocations: 2.887 MB / 447.5 MB, free: 27.04 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002189/0.9153, allocations: 91.77 kB / 447.6 MB, free: 26.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/0.9155, allocations: 79.98 kB / 447.7 MB, free: 26.87 MB / 314.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 (210): * Single equations (assignments): 206 * 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.0003755/0.9159, allocations: 152.5 kB / 447.8 MB, free: 26.71 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00402/0.92, allocations: 1.845 MB / 449.7 MB, free: 24.85 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003888/0.9204, allocations: 169.8 kB / 449.9 MB, free: 24.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/0.9249, allocations: 2.014 MB / 451.9 MB, free: 22.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.925, allocations: 12 kB / 451.9 MB, free: 22.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.925, allocations: 0 / 451.9 MB, free: 22.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.925, allocations: 11.97 kB / 451.9 MB, free: 22.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.9356, allocations: 4.405 MB / 456.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.688e-06/0.9356, allocations: 0 / 456.3 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/0.9379, allocations: 295.6 kB / 456.6 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008195/0.9387, allocations: 199.6 kB / 456.8 MB, free: 17.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001176/0.9389, allocations: 7.984 kB / 456.8 MB, free: 17.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002524/0.9414, allocations: 2.86 MB / 459.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.9414, allocations: 3.938 kB / 459.7 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006049/0.9475, allocations: 3.307 MB / 463 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/0.9487, allocations: 418.8 kB / 463.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003852/0.9491, allocations: 4.062 kB / 463.4 MB, free: 10.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.9506, allocations: 87.8 kB / 463.5 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.9508, allocations: 85.16 kB / 463.5 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.951, allocations: 35.98 kB / 463.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001613/0.9526, allocations: 0.8713 MB / 464.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.9526, allocations: 4 kB / 464.5 MB, free: 9.617 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002152/0.9548, allocations: 447.9 kB / 464.9 MB, free: 9.18 MB / 314.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 (131): * Single equations (assignments): 127 * 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.006803/0.9616, allocations: 4.736 MB / 469.6 MB, free: 4.371 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004566/0.9662, allocations: 2.311 MB / 471.9 MB, free: 2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.9662, allocations: 6.625 kB / 471.9 MB, free: 1.996 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002495/0.9687, allocations: 1.336 MB / 473.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/0.9717, allocations: 358.9 kB / 473.6 MB, free: 252 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.9846, allocations: 4.408 MB / 478 MB, free: 11.74 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002726/0.9874, allocations: 2.019 MB / 480.1 MB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002467/0.9899, allocations: 0.9835 MB / 481 MB, free: 8.707 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.9899, allocations: 0 / 481 MB, free: 8.707 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.981/4.971, allocations: 89.35 MB / 0.557 GB, free: 54.12 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat