Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.035/2.035, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.526e-05/3.533e-05, allocations: 6.031 kB / 292.8 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 50.41 MB / 343.2 MB, free: 5.805 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5769/0.6825, allocations: 164.1 MB / 0.4954 GB, free: 10.97 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003879/0.6829, allocations: 101.5 kB / 0.4955 GB, free: 10.92 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.39/3.073, allocations: 386.2 MB / 0.8726 GB, free: 42.86 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.515e-06/3.073, allocations: 0 / 0.8726 GB, free: 42.86 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001964/3.075, allocations: 293.9 kB / 0.8729 GB, free: 42.83 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.06099/3.136, allocations: 11.02 MB / 0.8837 GB, free: 39.36 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/3.136, allocations: 10.36 kB / 0.8837 GB, free: 39.36 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009683/3.146, allocations: 1.74 MB / 0.8854 GB, free: 39.23 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03894/3.185, allocations: 4.482 MB / 0.8897 GB, free: 38.55 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03746/3.222, allocations: 9.533 MB / 0.8991 GB, free: 37.36 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001462/3.224, allocations: 0.9016 MB / 0.8999 GB, free: 37.33 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006592/3.23, allocations: 1.182 MB / 0.9011 GB, free: 37.32 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06444/3.295, allocations: 18.42 MB / 0.9191 GB, free: 35.84 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009637/3.296, allocations: 20.5 kB / 0.9191 GB, free: 35.83 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005505/3.301, allocations: 0.5071 MB / 0.9196 GB, free: 35.83 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00135/3.303, allocations: 0.8265 MB / 0.9204 GB, free: 35.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05232/3.355, allocations: 15.34 MB / 0.9354 GB, free: 35.75 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1725/3.528, allocations: 61.01 MB / 0.995 GB, free: 7.992 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04391/3.572, allocations: 32.94 MB / 1.027 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01072/3.582, allocations: 3.682 MB / 1.031 GB, free: 6.098 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03171/3.614, allocations: 8.889 MB / 1.039 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.343e-05/3.614, allocations: 81.41 kB / 1.039 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=362): time 6.873e-06/3.614, allocations: 0 / 1.039 GB, free: 15.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=404): time 0.05013/3.665, allocations: 14 MB / 1.053 GB, free: 2.789 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/3.665, allocations: 96.83 kB / 1.053 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4143/4.079, allocations: 4.498 MB / 1.058 GB, free: 87.21 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008979/4.08, allocations: 93.61 kB / 1.058 GB, free: 87.18 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005722/4.086, allocations: 5.628 MB / 1.063 GB, free: 85.79 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00219/4.088, allocations: 1.408 MB / 1.065 GB, free: 84.92 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009065/4.089, allocations: 141.2 kB / 1.065 GB, free: 84.92 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005751/4.089, allocations: 0.5821 MB / 1.065 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008507/4.098, allocations: 2.847 MB / 1.068 GB, free: 84.59 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0115/4.11, allocations: 5.898 MB / 1.074 GB, free: 80.76 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0109/4.121, allocations: 4.232 MB / 1.078 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002643/4.121, allocations: 31.16 kB / 1.078 GB, free: 80.69 MB / 0.5105 GB Notification: Performance of matching and sorting (n=896) (initialization): time 0.0301/4.151, allocations: 9.577 MB / 1.087 GB, free: 80.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/4.151, allocations: 49.25 kB / 1.087 GB, free: 80.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001841/4.151, allocations: 106.8 kB / 1.088 GB, free: 80.21 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004443/4.156, allocations: 0.9436 MB / 1.088 GB, free: 80.17 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01196/4.168, allocations: 1.636 MB / 1.09 GB, free: 80.17 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01713/4.185, allocations: 9.389 MB / 1.099 GB, free: 76.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/4.195, allocations: 424.5 kB / 1.1 GB, free: 76.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001927/4.197, allocations: 366.9 kB / 1.1 GB, free: 76.15 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 480 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (846): * Single equations (assignments): 840 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002996/4.2, allocations: 0.5719 MB / 1.101 GB, free: 75.98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00208/4.202, allocations: 0.536 MB / 1.101 GB, free: 75.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02055/4.223, allocations: 6.474 MB / 1.107 GB, free: 75.39 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.123e-05/4.223, allocations: 44.77 kB / 1.107 GB, free: 75.39 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.312e-05/4.223, allocations: 10.53 kB / 1.107 GB, free: 75.39 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001135/4.223, allocations: 19.97 kB / 1.107 GB, free: 75.39 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05129/4.274, allocations: 15.9 MB / 1.123 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-05/4.275, allocations: 9.75 kB / 1.123 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007389/4.282, allocations: 0.7662 MB / 1.124 GB, free: 74.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00402/4.286, allocations: 0.7716 MB / 1.124 GB, free: 74.49 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001022/4.287, allocations: 87.77 kB / 1.125 GB, free: 74.49 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01579/4.303, allocations: 8.543 MB / 1.133 GB, free: 70.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/4.303, allocations: 9.719 kB / 1.133 GB, free: 70.52 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02579/4.329, allocations: 9.926 MB / 1.143 GB, free: 69.09 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004589/4.333, allocations: 1.086 MB / 1.144 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002537/4.336, allocations: 72.31 kB / 1.144 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006636/4.343, allocations: 238.5 kB / 1.144 GB, free: 68.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/4.344, allocations: 272.3 kB / 1.144 GB, free: 68.69 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008765/4.345, allocations: 119 kB / 1.144 GB, free: 68.69 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009497/4.355, allocations: 3.326 MB / 1.148 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.42e-07/4.355, allocations: 0 / 1.148 GB, free: 68.11 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01269/4.367, allocations: 1.986 MB / 1.15 GB, free: 67.91 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,62.5%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02779/4.395, allocations: 11.98 MB / 1.161 GB, free: 61.75 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01939/4.415, allocations: 7.385 MB / 1.168 GB, free: 58.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/4.415, allocations: 6.844 kB / 1.168 GB, free: 58.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009267/4.424, allocations: 3.446 MB / 1.172 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01141/4.435, allocations: 1.261 MB / 1.173 GB, free: 56.89 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07025/4.506, allocations: 20.38 MB / 1.193 GB, free: 42.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01812/4.524, allocations: 7.623 MB / 1.2 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01295/4.537, allocations: 2.214 MB / 1.203 GB, free: 35 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01072/4.548, allocations: 4.474 MB / 1.207 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of SimCode: time 1.954e-06/4.548, allocations: 0 / 1.207 GB, free: 30.83 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8005/5.348, allocations: 157 MB / 1.36 GB, free: 46.51 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/5.348, allocations: 241.3 kB / 1.36 GB, free: 46.19 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.051/14.4, allocations: 2.812 kB / 1.36 GB, free: 46.19 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat