Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.658/1.658, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.593e-05/2.603e-05, allocations: 8 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2507/0.2508, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.4156, allocations: 98 MB / 356.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000305/0.416, allocations: 87.94 kB / 356.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3962/0.8122, allocations: 48.62 MB / 405 MB, free: 70.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.8123, allocations: 0 / 405 MB, free: 70.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000226/0.8125, allocations: 63.94 kB / 405.1 MB, free: 70.68 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: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.00768/0.8202, allocations: 2.329 MB / 407.4 MB, free: 68.3 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.8203, allocations: 8.031 kB / 407.4 MB, free: 68.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001668/0.822, allocations: 316.6 kB / 407.7 MB, free: 67.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004432/0.8264, allocations: 1.587 MB / 409.3 MB, free: 66.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.665e-05/0.8266, allocations: 76.28 kB / 409.4 MB, free: 66.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005559/0.8271, allocations: 139.8 kB / 409.5 MB, free: 66.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00553/0.8327, allocations: 2.075 MB / 411.6 MB, free: 64.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006252/0.839, allocations: 2.496 MB / 414.1 MB, free: 61.43 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-05/0.8391, allocations: 7.906 kB / 414.1 MB, free: 61.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002665/0.8394, allocations: 0 / 414.1 MB, free: 61.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.8395, allocations: 104.3 kB / 414.2 MB, free: 61.32 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01925/0.8588, allocations: 8.635 MB / 422.9 MB, free: 52.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002727/0.8615, allocations: 1.647 MB / 424.5 MB, free: 50.74 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001547/0.8631, allocations: 0.7816 MB / 425.3 MB, free: 49.96 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003737/0.8635, allocations: 138.3 kB / 425.4 MB, free: 49.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.8636, allocations: 51.86 kB / 425.5 MB, free: 49.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=108): time 3.626e-06/0.8636, allocations: 0 / 425.5 MB, free: 49.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=131): time 0.0131/0.8767, allocations: 4.875 MB / 430.3 MB, free: 44.83 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.8768, allocations: 64.72 kB / 430.4 MB, free: 44.76 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001921/0.8787, allocations: 1.049 MB / 431.5 MB, free: 43.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001856/0.8789, allocations: 25.7 kB / 431.5 MB, free: 43.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006194/0.8795, allocations: 1.061 MB / 432.5 MB, free: 42.59 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003871/0.8799, allocations: 441.4 kB / 433 MB, free: 42.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.8801, allocations: 0 / 433 MB, free: 42.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.8802, allocations: 374.7 kB / 433.3 MB, free: 41.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.8816, allocations: 0.6911 MB / 434 MB, free: 41.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/0.8831, allocations: 1.099 MB / 435.1 MB, free: 39.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001768/0.8849, allocations: 0.8729 MB / 436 MB, free: 38.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.8849, allocations: 4 kB / 436 MB, free: 38.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=199) (initialization): time 0.005408/0.8904, allocations: 2.33 MB / 438.3 MB, free: 36.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.8904, allocations: 19.58 kB / 438.4 MB, free: 36.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.8905, allocations: 12.28 kB / 438.4 MB, free: 36.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002218/0.8927, allocations: 0.5802 MB / 438.9 MB, free: 35.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/0.8952, allocations: 359.4 kB / 439.3 MB, free: 35.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/0.9055, allocations: 6.393 MB / 445.7 MB, free: 29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.9076, allocations: 91.8 kB / 445.8 MB, free: 28.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001755/0.9078, allocations: 68 kB / 445.8 MB, free: 28.84 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 166 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003514/0.9082, allocations: 144.5 kB / 446 MB, free: 28.7 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004897/0.9131, allocations: 2.039 MB / 448 MB, free: 26.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000388/0.9135, allocations: 166 kB / 448.2 MB, free: 26.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005346/0.9189, allocations: 2.194 MB / 450.4 MB, free: 24.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/0.9189, allocations: 16 kB / 450.4 MB, free: 24.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.9189, allocations: 4 kB / 450.4 MB, free: 24.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.725e-05/0.919, allocations: 7.969 kB / 450.4 MB, free: 24.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/0.9298, allocations: 4.473 MB / 454.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/0.9298, allocations: 8.062 kB / 454.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001736/0.9316, allocations: 215.7 kB / 455.1 MB, free: 19.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002674/0.9343, allocations: 0.6352 MB / 455.7 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.9344, allocations: 19.98 kB / 455.8 MB, free: 18.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/0.9466, allocations: 8.057 MB / 463.8 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/0.9467, allocations: 15.88 kB / 463.8 MB, free: 10.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006991/0.9537, allocations: 3.406 MB / 467.2 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.9548, allocations: 383 kB / 467.6 MB, free: 6.441 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003767/0.9552, allocations: 12 kB / 467.6 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/0.9567, allocations: 75.89 kB / 467.7 MB, free: 6.355 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003578/0.9571, allocations: 109 kB / 467.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.9572, allocations: 43.98 kB / 467.8 MB, free: 6.207 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001424/0.9587, allocations: 0.7769 MB / 468.6 MB, free: 5.43 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9587, allocations: 4 kB / 468.6 MB, free: 5.426 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002321/0.961, allocations: 475.9 kB / 469.1 MB, free: 4.961 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 99 * 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%) 23,(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.007609/0.9686, allocations: 4.929 MB / 474 MB, free: 15.94 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.005769/0.9744, allocations: 2.216 MB / 476.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.9745, allocations: 192 / 476.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00406/0.9786, allocations: 1.439 MB / 477.7 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003025/0.9816, allocations: 338.1 kB / 478 MB, free: 11.88 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.9939, allocations: 4.319 MB / 482.3 MB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002342/0.9963, allocations: 1.89 MB / 484.2 MB, free: 5.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002083/0.9984, allocations: 0.8898 MB / 485.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of SimCode: time 1.332e-06/0.9984, allocations: 0 / 485.1 MB, free: 4.652 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.924/4.922, allocations: 70 MB / 0.5421 GB, free: 70.38 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_Inverter_res.mat does not exist to compare? outputFormat=mat