Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.861/1.861, allocations: 171.2 MB / 178.8 MB, free: 180 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.118e-05/2.131e-05, allocations: 4 kB / 219.6 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2549, allocations: 38.77 MB / 258.3 MB, free: 12.06 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1747/0.4297, allocations: 103 MB / 361.3 MB, free: 6.773 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003013/0.43, allocations: 83.95 kB / 361.4 MB, free: 6.691 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.548/0.978, allocations: 81.26 MB / 442.7 MB, free: 34.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.9781, allocations: 0 / 442.7 MB, free: 34.26 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002485/0.9784, allocations: 67.88 kB / 442.7 MB, free: 34.19 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: 655 * Number of variables: 655 Notification: Performance of Generate backend data structure: time 0.008566/0.9869, allocations: 2.601 MB / 445.3 MB, free: 31.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.987, allocations: 12.03 kB / 445.3 MB, free: 31.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00247/0.9895, allocations: 416.7 kB / 445.7 MB, free: 31.11 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005138/0.9947, allocations: 1.752 MB / 447.5 MB, free: 29.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.9948, allocations: 83.98 kB / 447.6 MB, free: 29.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007665/0.9956, allocations: 151.9 kB / 447.7 MB, free: 29.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006518/1.002, allocations: 2.302 MB / 450 MB, free: 26.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00747/1.01, allocations: 2.771 MB / 452.8 MB, free: 23.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001013/1.01, allocations: 7.938 kB / 452.8 MB, free: 23.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003125/1.01, allocations: 4 kB / 452.8 MB, free: 23.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/1.01, allocations: 112.9 kB / 452.9 MB, free: 23.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02358/1.034, allocations: 9.904 MB / 462.8 MB, free: 13.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002952/1.037, allocations: 1.713 MB / 464.5 MB, free: 11.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/1.039, allocations: 0.8318 MB / 465.4 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004054/1.039, allocations: 138.3 kB / 465.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/1.039, allocations: 47.86 kB / 465.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of pre-optimization done (n=118): time 3.486e-06/1.039, allocations: 0 / 465.6 MB, free: 10.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=143): time 0.01559/1.055, allocations: 5.401 MB / 471 MB, free: 5.191 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.455e-05/1.055, allocations: 68.67 kB / 471 MB, free: 5.113 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002547/1.057, allocations: 1.312 MB / 472.3 MB, free: 3.797 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/1.058, allocations: 25.7 kB / 472.4 MB, free: 3.766 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007657/1.058, allocations: 1.193 MB / 473.6 MB, free: 2.559 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004851/1.059, allocations: 476.9 kB / 474 MB, free: 2.086 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/1.059, allocations: 0 / 474 MB, free: 2.086 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/1.059, allocations: 378.8 kB / 474.4 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/1.061, allocations: 0.777 MB / 475.2 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001969/1.063, allocations: 1.248 MB / 476.4 MB, free: 15.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002416/1.065, allocations: 0.9782 MB / 477.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.534e-05/1.065, allocations: 4 kB / 477.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.007075/1.072, allocations: 2.544 MB / 479.9 MB, free: 11.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/1.072, allocations: 12 kB / 480 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.787e-05/1.072, allocations: 16 kB / 480 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002527/1.075, allocations: 0.5794 MB / 480.5 MB, free: 11.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003103/1.078, allocations: 411.4 kB / 480.9 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01182/1.09, allocations: 5.199 MB / 486.1 MB, free: 5.586 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00262/1.093, allocations: 103.8 kB / 486.2 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002753/1.093, allocations: 80.02 kB / 486.3 MB, free: 5.406 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004428/1.093, allocations: 148.5 kB / 486.5 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00693/1.1, allocations: 2.206 MB / 488.7 MB, free: 3.035 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009157/1.101, allocations: 185.8 kB / 488.9 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007192/1.109, allocations: 2.367 MB / 491.2 MB, free: 476 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.509e-05/1.109, allocations: 15.94 kB / 491.2 MB, free: 460 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/1.109, allocations: 8 kB / 491.2 MB, free: 452 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.148e-05/1.109, allocations: 7.969 kB / 491.3 MB, free: 444 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2488/1.357, allocations: 4.911 MB / 496.2 MB, free: 63.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.011e-05/1.358, allocations: 8.312 kB / 496.2 MB, free: 63.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/1.36, allocations: 248.5 kB / 496.4 MB, free: 63.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003477/1.363, allocations: 0.6483 MB / 497.1 MB, free: 63.75 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003125/1.364, allocations: 17.8 kB / 497.1 MB, free: 63.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01505/1.379, allocations: 6.873 MB / 0.4921 GB, free: 61.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.268e-05/1.379, allocations: 6.469 kB / 0.4922 GB, free: 61.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01013/1.389, allocations: 3.764 MB / 0.4958 GB, free: 60.67 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001434/1.39, allocations: 445.8 kB / 0.4963 GB, free: 60.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004713/1.391, allocations: 14.83 kB / 0.4963 GB, free: 60.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/1.393, allocations: 89.67 kB / 0.4964 GB, free: 60.58 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004538/1.393, allocations: 123.2 kB / 0.4965 GB, free: 60.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001491/1.394, allocations: 38.25 kB / 0.4965 GB, free: 60.57 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002173/1.396, allocations: 0.9925 MB / 0.4975 GB, free: 60.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.396, allocations: 3.719 kB / 0.4975 GB, free: 60.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003044/1.399, allocations: 0.5121 MB / 0.498 GB, free: 60.46 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008933/1.408, allocations: 5.445 MB / 0.5033 GB, free: 58.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005497/1.413, allocations: 2.366 MB / 0.5056 GB, free: 58.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.413, allocations: 0 / 0.5056 GB, free: 58.06 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00389/1.417, allocations: 1.515 MB / 0.5071 GB, free: 57.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/1.42, allocations: 307.6 kB / 0.5074 GB, free: 57.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01313/1.433, allocations: 4.668 MB / 0.5119 GB, free: 56.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002185/1.436, allocations: 2.048 MB / 0.5139 GB, free: 55.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00211/1.438, allocations: 0.9801 MB / 0.5149 GB, free: 55.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.353e-06/1.438, allocations: 4.594 kB / 0.5149 GB, free: 55.46 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.487/4.925, allocations: 66.48 MB / 0.5798 GB, free: 9.242 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat