Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.018/2.018, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.14e-05/3.146e-05, allocations: 4 kB / 292.2 MB, free: 8.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1048, allocations: 50.41 MB / 342.7 MB, free: 5.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5013/0.6062, allocations: 114.6 MB / 457.3 MB, free: 12.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003834/0.6066, allocations: 85.64 kB / 457.4 MB, free: 11.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2621/0.8687, allocations: 60.17 MB / 0.5054 GB, free: 3.402 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.8688, allocations: 0 / 0.5054 GB, free: 3.402 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003769/0.8692, allocations: 87.88 kB / 0.5055 GB, free: 3.316 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.01105/0.8802, allocations: 2.994 MB / 0.5084 GB, free: 264 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.8803, allocations: 12.03 kB / 0.5084 GB, free: 252 kB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001346/0.8817, allocations: 425.8 kB / 0.5088 GB, free: 15.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00177/0.8834, allocations: 411.5 kB / 0.5092 GB, free: 15.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007604/0.8911, allocations: 2.224 MB / 0.5114 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/0.8914, allocations: 225.9 kB / 0.5116 GB, free: 12.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008058/0.8922, allocations: 291.9 kB / 0.5119 GB, free: 12.63 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01024/0.9024, allocations: 3.696 MB / 0.5155 GB, free: 8.785 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.9026, allocations: 12.28 kB / 0.5155 GB, free: 8.773 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004768/0.9031, allocations: 128 kB / 0.5156 GB, free: 8.648 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002394/0.9033, allocations: 145.7 kB / 0.5158 GB, free: 8.504 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009116/0.9125, allocations: 2.967 MB / 0.5187 GB, free: 5.531 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3259/1.238, allocations: 12.19 MB / 0.5306 GB, free: 99.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004373/1.243, allocations: 2.061 MB / 0.5326 GB, free: 99.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002454/1.245, allocations: 0.9934 MB / 0.5336 GB, free: 99.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004898/1.246, allocations: 228.2 kB / 0.5338 GB, free: 99.15 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/1.246, allocations: 47.39 kB / 0.5338 GB, free: 99.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 3.687e-06/1.246, allocations: 2.562 kB / 0.5338 GB, free: 99.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.0244/1.27, allocations: 6.659 MB / 0.5403 GB, free: 98.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/1.27, allocations: 70 kB / 0.5404 GB, free: 98.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004349/1.275, allocations: 1.748 MB / 0.5421 GB, free: 98.01 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004524/1.275, allocations: 49.89 kB / 0.5422 GB, free: 97.98 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/1.277, allocations: 1.447 MB / 0.5436 GB, free: 97.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008013/1.277, allocations: 0.5584 MB / 0.5441 GB, free: 97.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/1.278, allocations: 38.94 kB / 0.5442 GB, free: 97.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/1.278, allocations: 387.2 kB / 0.5445 GB, free: 96.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/1.28, allocations: 0.9053 MB / 0.5454 GB, free: 96.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002457/1.283, allocations: 1.449 MB / 0.5468 GB, free: 96.28 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002555/1.285, allocations: 1.163 MB / 0.548 GB, free: 96.26 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/1.285, allocations: 3.438 kB / 0.548 GB, free: 96.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.007983/1.293, allocations: 3.102 MB / 0.551 GB, free: 96.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.756e-05/1.293, allocations: 15.12 kB / 0.551 GB, free: 96.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.098e-05/1.293, allocations: 21.7 kB / 0.551 GB, free: 96.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002144/1.295, allocations: 0.545 MB / 0.5516 GB, free: 96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003412/1.299, allocations: 476.8 kB / 0.552 GB, free: 96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.309, allocations: 6.284 MB / 0.5582 GB, free: 93.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003076/1.312, allocations: 139.6 kB / 0.5583 GB, free: 93.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003242/1.312, allocations: 86.5 kB / 0.5584 GB, free: 93.36 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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.0005113/1.313, allocations: 226.1 kB / 0.5586 GB, free: 93.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006408/1.314, allocations: 214.5 kB / 0.5588 GB, free: 93.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006955/1.321, allocations: 2.789 MB / 0.5615 GB, free: 92.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.321, allocations: 19.69 kB / 0.5615 GB, free: 92.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/1.321, allocations: 10.69 kB / 0.5615 GB, free: 92.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.73e-05/1.321, allocations: 18.72 kB / 0.5616 GB, free: 92.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01558/1.336, allocations: 5.989 MB / 0.5674 GB, free: 90.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.396e-05/1.336, allocations: 3.656 kB / 0.5674 GB, free: 90.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002371/1.339, allocations: 292.3 kB / 0.5677 GB, free: 90.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00251/1.341, allocations: 0.5862 MB / 0.5683 GB, free: 89.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/1.341, allocations: 43.02 kB / 0.5683 GB, free: 89.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01172/1.353, allocations: 7.962 MB / 0.5761 GB, free: 84.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/1.353, allocations: 13.2 kB / 0.5761 GB, free: 84.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009374/1.363, allocations: 4.279 MB / 0.5803 GB, free: 82.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001713/1.364, allocations: 0.5026 MB / 0.5808 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006297/1.365, allocations: 43.89 kB / 0.5808 GB, free: 82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/1.367, allocations: 106.5 kB / 0.5809 GB, free: 81.98 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/1.368, allocations: 117.8 kB / 0.581 GB, free: 81.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001603/1.368, allocations: 48.52 kB / 0.5811 GB, free: 81.95 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002859/1.371, allocations: 1.329 MB / 0.5824 GB, free: 81.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.92e-07/1.371, allocations: 3.438 kB / 0.5824 GB, free: 81.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003493/1.374, allocations: 0.6363 MB / 0.583 GB, free: 81.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.01035/1.385, allocations: 5.93 MB / 0.5888 GB, free: 78.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006173/1.391, allocations: 2.647 MB / 0.5914 GB, free: 76.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.391, allocations: 2.062 kB / 0.5914 GB, free: 76.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003387/1.394, allocations: 1.589 MB / 0.5929 GB, free: 76.21 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003867/1.398, allocations: 0.504 MB / 0.5934 GB, free: 76.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/1.413, allocations: 5.594 MB / 0.5989 GB, free: 73.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/1.415, allocations: 2.33 MB / 0.6011 GB, free: 72.79 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002768/1.418, allocations: 0.5219 MB / 0.6017 GB, free: 72.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002531/1.421, allocations: 1.189 MB / 0.6028 GB, free: 71.78 MB / 442.7 MB Notification: Performance of SimCode: time 1.282e-06/1.421, allocations: 0 / 0.6028 GB, free: 71.78 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1342/1.555, allocations: 57.58 MB / 0.6591 GB, free: 24.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/1.555, allocations: 207.5 kB / 0.6592 GB, free: 24.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.389/5.944, allocations: 0 / 0.6592 GB, free: 24.57 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat