Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.75/1.75, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.136e-05, allocations: 8 kB / 225.1 MB, free: 2.602 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2517, allocations: 38.76 MB / 263.8 MB, free: 9.852 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.195/0.4467, allocations: 95.76 MB / 359.6 MB, free: 9.945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.4471, allocations: 83.95 kB / 359.7 MB, free: 9.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4129/0.86, allocations: 45.49 MB / 405.2 MB, free: 69.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.86, allocations: 0 / 405.2 MB, free: 69.16 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002131/0.8603, allocations: 67.81 kB / 405.2 MB, free: 69.09 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: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.007133/0.8674, allocations: 2.228 MB / 407.5 MB, free: 66.8 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.8675, allocations: 12.03 kB / 407.5 MB, free: 66.79 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008536/0.8683, allocations: 312 kB / 407.8 MB, free: 66.48 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001162/0.8695, allocations: 296.8 kB / 408.1 MB, free: 66.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004186/0.8737, allocations: 1.487 MB / 409.5 MB, free: 64.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001427/0.8739, allocations: 156.2 kB / 409.7 MB, free: 64.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005445/0.8745, allocations: 223.8 kB / 409.9 MB, free: 64.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006496/0.881, allocations: 2.695 MB / 412.6 MB, free: 61.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.643e-05/0.8811, allocations: 4 kB / 412.6 MB, free: 61.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003141/0.8814, allocations: 88 kB / 412.7 MB, free: 61.33 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.8816, allocations: 104.2 kB / 412.8 MB, free: 61.23 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005785/0.8874, allocations: 2.125 MB / 414.9 MB, free: 59.09 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01948/0.9069, allocations: 8.545 MB / 423.5 MB, free: 50.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003198/0.9101, allocations: 1.661 MB / 425.1 MB, free: 48.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/0.9119, allocations: 0.7811 MB / 425.9 MB, free: 47.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003676/0.9123, allocations: 138 kB / 426.1 MB, free: 47.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.9123, allocations: 51.48 kB / 426.1 MB, free: 47.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=102): time 3.477e-06/0.9123, allocations: 0 / 426.1 MB, free: 47.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=123): time 0.0209/0.9332, allocations: 5.902 MB / 432 MB, free: 41.56 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.9333, allocations: 68.34 kB / 432.1 MB, free: 41.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/0.9356, allocations: 1.17 MB / 433.2 MB, free: 40.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002443/0.9358, allocations: 45.7 kB / 433.3 MB, free: 40.25 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006079/0.9365, allocations: 0.9759 MB / 434.3 MB, free: 39.26 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004052/0.9369, allocations: 437.7 kB / 434.7 MB, free: 38.83 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.937, allocations: 28 kB / 434.7 MB, free: 38.8 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.9372, allocations: 370.8 kB / 435.1 MB, free: 38.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/0.9387, allocations: 0.6912 MB / 435.8 MB, free: 37.74 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.9404, allocations: 1.061 MB / 436.8 MB, free: 36.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.9423, allocations: 0.8715 MB / 437.7 MB, free: 35.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/0.9423, allocations: 8 kB / 437.7 MB, free: 35.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.005782/0.9481, allocations: 2.385 MB / 440.1 MB, free: 33.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.1e-05/0.9482, allocations: 12.03 kB / 440.1 MB, free: 33.22 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.392e-05/0.9482, allocations: 15.98 kB / 440.1 MB, free: 33.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002343/0.9506, allocations: 0.5763 MB / 440.7 MB, free: 32.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002357/0.9529, allocations: 331.5 kB / 441 MB, free: 32.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.9633, allocations: 6.312 MB / 447.3 MB, free: 25.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002056/0.9654, allocations: 107.9 kB / 447.4 MB, free: 25.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001654/0.9656, allocations: 60 kB / 447.5 MB, free: 25.55 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 152 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003539/0.966, allocations: 190.1 kB / 447.7 MB, free: 25.36 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003185/0.9663, allocations: 162 kB / 447.8 MB, free: 25.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005718/0.972, allocations: 2.268 MB / 450.1 MB, free: 22.91 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.564e-05/0.9721, allocations: 12 kB / 450.1 MB, free: 22.9 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/0.9721, allocations: 7.953 kB / 450.1 MB, free: 22.89 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.9721, allocations: 7.969 kB / 450.1 MB, free: 22.89 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/0.9835, allocations: 4.637 MB / 454.8 MB, free: 18.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.9835, allocations: 4 kB / 454.8 MB, free: 18.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001683/0.9852, allocations: 208 kB / 455 MB, free: 17.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002752/0.988, allocations: 0.6234 MB / 455.6 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/0.9882, allocations: 35.98 kB / 455.6 MB, free: 17.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01225/1, allocations: 8.053 MB / 463.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1, allocations: 7.938 kB / 463.7 MB, free: 8.809 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007422/1.008, allocations: 3.368 MB / 467.1 MB, free: 5.32 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/1.009, allocations: 387 kB / 467.4 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003512/1.009, allocations: 35.98 kB / 467.5 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001539/1.011, allocations: 88.16 kB / 467.6 MB, free: 4.801 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/1.011, allocations: 104.8 kB / 467.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/1.012, allocations: 39.98 kB / 467.7 MB, free: 4.66 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001757/1.013, allocations: 0.9007 MB / 468.6 MB, free: 3.758 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.51e-07/1.013, allocations: 0 / 468.6 MB, free: 3.758 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002192/1.016, allocations: 0.5039 MB / 469.1 MB, free: 3.254 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 93 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008685/1.024, allocations: 4.733 MB / 473.8 MB, free: 14.42 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006124/1.03, allocations: 2.239 MB / 476.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.03, allocations: 0 / 476.1 MB, free: 12.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004179/1.035, allocations: 1.458 MB / 477.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003003/1.038, allocations: 368.8 kB / 477.9 MB, free: 10.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/1.05, allocations: 4.236 MB / 482.1 MB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002302/1.052, allocations: 1.839 MB / 484 MB, free: 4.078 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001914/1.054, allocations: 0.8117 MB / 484.8 MB, free: 3.266 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/1.054, allocations: 0 / 484.8 MB, free: 3.266 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.75/4.804, allocations: 66.89 MB / 0.5387 GB, free: 69.73 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.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat