Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.142e-05/2.151e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2951, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.208/0.5032, allocations: 107.6 MB / 401.8 MB, free: 6.203 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003176/0.5035, allocations: 83.94 kB / 401.9 MB, free: 6.121 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4911/0.9946, allocations: 57.48 MB / 459.4 MB, free: 89.57 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.9947, allocations: 0 / 459.4 MB, free: 89.57 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003757/0.9951, allocations: 88.75 kB / 459.5 MB, free: 89.55 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: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01195/1.007, allocations: 2.869 MB / 462.4 MB, free: 87.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.006e-05/1.007, allocations: 12.02 kB / 462.4 MB, free: 87.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/1.01, allocations: 403.5 kB / 462.8 MB, free: 86.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008683/1.018, allocations: 2.168 MB / 464.9 MB, free: 84.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/1.019, allocations: 88 kB / 465 MB, free: 84.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008193/1.019, allocations: 171.9 kB / 465.2 MB, free: 84.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009607/1.029, allocations: 2.671 MB / 467.9 MB, free: 81.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/1.039, allocations: 3.18 MB / 471 MB, free: 78.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/1.04, allocations: 3.938 kB / 471 MB, free: 78.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004993/1.04, allocations: 7.984 kB / 471 MB, free: 78.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002318/1.04, allocations: 137.5 kB / 471.2 MB, free: 78.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02926/1.07, allocations: 11.09 MB / 482.3 MB, free: 66.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003091/1.073, allocations: 1.917 MB / 484.2 MB, free: 64.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001706/1.074, allocations: 0.9027 MB / 485.1 MB, free: 63.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004382/1.075, allocations: 231.2 kB / 485.3 MB, free: 63.51 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/1.075, allocations: 47.83 kB / 485.4 MB, free: 63.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=133): time 3.747e-06/1.075, allocations: 0 / 485.4 MB, free: 63.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.01438/1.089, allocations: 5.567 MB / 490.9 MB, free: 57.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.219e-05/1.089, allocations: 68.72 kB / 491 MB, free: 57.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00266/1.092, allocations: 1.453 MB / 492.5 MB, free: 56.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/1.092, allocations: 25.7 kB / 492.5 MB, free: 56.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008248/1.093, allocations: 1.337 MB / 493.8 MB, free: 54.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004555/1.094, allocations: 0.5003 MB / 494.3 MB, free: 54.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/1.094, allocations: 4 kB / 494.3 MB, free: 54.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000137/1.094, allocations: 387.1 kB / 494.7 MB, free: 54.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/1.096, allocations: 0.8394 MB / 495.5 MB, free: 53.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/1.097, allocations: 1.354 MB / 496.9 MB, free: 51.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002095/1.1, allocations: 1.076 MB / 498 MB, free: 50.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/1.1, allocations: 11.94 kB / 498 MB, free: 50.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.006083/1.106, allocations: 2.697 MB / 0.4889 GB, free: 47.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/1.106, allocations: 12 kB / 0.489 GB, free: 47.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.476e-05/1.106, allocations: 20 kB / 0.489 GB, free: 47.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/1.108, allocations: 0.5411 MB / 0.4895 GB, free: 47.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002885/1.111, allocations: 439.3 kB / 0.4899 GB, free: 46.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009067/1.12, allocations: 6.017 MB / 0.4958 GB, free: 40.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002592/1.122, allocations: 99.77 kB / 0.4959 GB, free: 40.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001979/1.123, allocations: 84.05 kB / 0.496 GB, free: 40.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 211 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004029/1.123, allocations: 152.2 kB / 0.4961 GB, free: 40.2 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005362/1.128, allocations: 2.339 MB / 0.4984 GB, free: 37.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004006/1.129, allocations: 197.6 kB / 0.4986 GB, free: 37.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005986/1.135, allocations: 2.511 MB / 0.501 GB, free: 35.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/1.135, allocations: 16 kB / 0.5011 GB, free: 35.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/1.135, allocations: 7.953 kB / 0.5011 GB, free: 35.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/1.135, allocations: 11.91 kB / 0.5011 GB, free: 35.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/1.147, allocations: 5.294 MB / 0.5062 GB, free: 29.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/1.147, allocations: 4 kB / 0.5062 GB, free: 29.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/1.149, allocations: 267.5 kB / 0.5065 GB, free: 29.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00234/1.151, allocations: 0.5768 MB / 0.5071 GB, free: 28.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/1.152, allocations: 15.98 kB / 0.5071 GB, free: 28.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/1.163, allocations: 7.676 MB / 0.5146 GB, free: 20.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/1.163, allocations: 7.938 kB / 0.5146 GB, free: 20.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007889/1.17, allocations: 3.973 MB / 0.5185 GB, free: 16.73 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/1.172, allocations: 470.5 kB / 0.5189 GB, free: 16.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000444/1.172, allocations: 8 kB / 0.5189 GB, free: 16.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00179/1.174, allocations: 83.86 kB / 0.519 GB, free: 16.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003421/1.174, allocations: 113 kB / 0.5191 GB, free: 16.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/1.175, allocations: 43.98 kB / 0.5192 GB, free: 16.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002033/1.177, allocations: 1.092 MB / 0.5202 GB, free: 14.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.177, allocations: 0 / 0.5202 GB, free: 14.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002627/1.179, allocations: 0.5273 MB / 0.5207 GB, free: 14.4 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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 {(5,76.0%) 20,(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.008472/1.188, allocations: 5.514 MB / 0.5261 GB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004905/1.193, allocations: 2.492 MB / 0.5285 GB, free: 6.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.193, allocations: 4 kB / 0.5286 GB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003125/1.196, allocations: 1.542 MB / 0.5301 GB, free: 4.703 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003271/1.199, allocations: 411.2 kB / 0.5305 GB, free: 4.301 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/1.212, allocations: 5.282 MB / 0.5356 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003038/1.215, allocations: 2.24 MB / 0.5378 GB, free: 12.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002715/1.218, allocations: 1.136 MB / 0.5389 GB, free: 11.52 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/1.218, allocations: 4 kB / 0.5389 GB, free: 11.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.421/5.639, allocations: 88.15 MB / 0.625 GB, free: 75.24 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat