Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 205.8 MB / 218.9 MB, free: 9.258 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.735e-05, allocations: 0 / 269.4 MB, free: 6.297 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 47.57 MB / 317 MB, free: 6.641 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5681/0.6726, allocations: 115.6 MB / 432.6 MB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003181/0.673, allocations: 84.89 kB / 432.7 MB, free: 4.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.327/1, allocations: 76.94 MB / 0.4977 GB, free: 14.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.485e-06/1, allocations: 4 kB / 0.4977 GB, free: 14.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000414/1, allocations: 87.88 kB / 0.4978 GB, free: 13.98 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: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01383/1.014, allocations: 3.199 MB / 0.5009 GB, free: 10.71 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.301e-05/1.014, allocations: 8.031 kB / 0.5009 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00176/1.016, allocations: 438.9 kB / 0.5013 GB, free: 10.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00459/1.021, allocations: 0.6006 MB / 0.5019 GB, free: 9.656 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01225/1.033, allocations: 3.14 MB / 0.505 GB, free: 6.461 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003678/1.033, allocations: 238.2 kB / 0.5052 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00133/1.035, allocations: 315.9 kB / 0.5055 GB, free: 5.918 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01269/1.048, allocations: 4.019 MB / 0.5094 GB, free: 1.738 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001099/1.048, allocations: 3.906 kB / 0.5094 GB, free: 1.734 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004975/1.048, allocations: 132 kB / 0.5096 GB, free: 1.605 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002115/1.048, allocations: 142.1 kB / 0.5097 GB, free: 1.465 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3107/1.359, allocations: 3.214 MB / 0.5128 GB, free: 90.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04109/1.4, allocations: 13.81 MB / 0.5263 GB, free: 87.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008914/1.409, allocations: 5.82 MB / 0.532 GB, free: 83.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003932/1.413, allocations: 1.33 MB / 0.5333 GB, free: 83.19 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/1.424, allocations: 3.187 MB / 0.5364 GB, free: 82.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/1.424, allocations: 50.38 kB / 0.5365 GB, free: 82.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=137): time 4.338e-06/1.424, allocations: 0 / 0.5365 GB, free: 82.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.01259/1.436, allocations: 4.528 MB / 0.5409 GB, free: 81.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/1.436, allocations: 97.97 kB / 0.541 GB, free: 81.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004255/1.441, allocations: 1.676 MB / 0.5426 GB, free: 81.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003627/1.441, allocations: 51.73 kB / 0.5427 GB, free: 81.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/1.443, allocations: 1.459 MB / 0.5441 GB, free: 80.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007299/1.443, allocations: 485.6 kB / 0.5446 GB, free: 80.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/1.444, allocations: 39.22 kB / 0.5446 GB, free: 80.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/1.444, allocations: 369.6 kB / 0.545 GB, free: 80.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00187/1.446, allocations: 0.7159 MB / 0.5457 GB, free: 80.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002362/1.448, allocations: 1.23 MB / 0.5469 GB, free: 79.46 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/1.45, allocations: 0.9042 MB / 0.5477 GB, free: 79.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.539e-05/1.451, allocations: 9.906 kB / 0.5478 GB, free: 79.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007304/1.458, allocations: 2.636 MB / 0.5503 GB, free: 79.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00151/1.459, allocations: 6.602 MB / 0.5568 GB, free: 72.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-05/1.459, allocations: 14.31 kB / 0.5568 GB, free: 72.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002109/1.462, allocations: 0.5099 MB / 0.5573 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/1.465, allocations: 376 kB / 0.5576 GB, free: 72.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/1.475, allocations: 7.24 MB / 0.5647 GB, free: 66.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/1.478, allocations: 99.02 kB / 0.5648 GB, free: 66.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004655/1.478, allocations: 72.91 kB / 0.5649 GB, free: 66.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.478, allocations: 6.688 kB / 0.5649 GB, free: 66.81 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006513/1.485, allocations: 2.424 MB / 0.5673 GB, free: 65.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.152e-05/1.485, allocations: 14.94 kB / 0.5673 GB, free: 65.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001923/1.487, allocations: 0.5156 MB / 0.5678 GB, free: 65.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002753/1.49, allocations: 360.7 kB / 0.5681 GB, free: 65.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/1.5, allocations: 7.25 MB / 0.5752 GB, free: 60.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002687/1.503, allocations: 86.69 kB / 0.5753 GB, free: 60.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004533/1.503, allocations: 75.31 kB / 0.5753 GB, free: 60.21 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * 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: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005932/1.504, allocations: 222.8 kB / 0.5756 GB, free: 60.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006766/1.505, allocations: 208.1 kB / 0.5758 GB, free: 59.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006564/1.511, allocations: 2.43 MB / 0.5781 GB, free: 58.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/1.511, allocations: 14.25 kB / 0.5781 GB, free: 58.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/1.511, allocations: 3.781 kB / 0.5782 GB, free: 58.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.891e-05/1.512, allocations: 3.891 kB / 0.5782 GB, free: 58.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0147/1.526, allocations: 5.298 MB / 0.5833 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.136e-05/1.526, allocations: 7.188 kB / 0.5833 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001689/1.528, allocations: 185.1 kB / 0.5835 GB, free: 56.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002686/1.531, allocations: 0.6449 MB / 0.5841 GB, free: 56.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003103/1.531, allocations: 31.34 kB / 0.5842 GB, free: 56.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01578/1.547, allocations: 11.28 MB / 0.5952 GB, free: 47.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/1.547, allocations: 1.594 kB / 0.5952 GB, free: 47.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008497/1.555, allocations: 3.648 MB / 0.5988 GB, free: 45.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001688/1.557, allocations: 471.3 kB / 0.5992 GB, free: 44.99 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007811/1.558, allocations: 31.84 kB / 0.5992 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002478/1.561, allocations: 79.08 kB / 0.5993 GB, free: 44.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006122/1.561, allocations: 124.2 kB / 0.5994 GB, free: 44.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001804/1.561, allocations: 34.22 kB / 0.5995 GB, free: 44.92 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00331/1.565, allocations: 1.282 MB / 0.6007 GB, free: 44.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.565, allocations: 0 / 0.6007 GB, free: 44.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006943/1.572, allocations: 1.113 MB / 0.6018 GB, free: 44.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.009622/1.581, allocations: 5.128 MB / 0.6068 GB, free: 41.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009702/1.591, allocations: 4.022 MB / 0.6107 GB, free: 39.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.591, allocations: 0 / 0.6107 GB, free: 39.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00411/1.595, allocations: 1.71 MB / 0.6124 GB, free: 38.08 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004898/1.6, allocations: 0.593 MB / 0.613 GB, free: 37.92 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0185/1.619, allocations: 5.54 MB / 0.6184 GB, free: 34.97 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003738/1.623, allocations: 2.379 MB / 0.6207 GB, free: 33.11 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005057/1.628, allocations: 0.7966 MB / 0.6215 GB, free: 32.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002388/1.63, allocations: 1.123 MB / 0.6226 GB, free: 31.57 MB / 426.7 MB Notification: Performance of SimCode: time 1.453e-06/1.63, allocations: 4 kB / 0.6226 GB, free: 31.56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.461/2.091, allocations: 66.48 MB / 0.6875 GB, free: 91.9 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/2.091, allocations: 207.2 kB / 0.6877 GB, free: 91.67 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.687/7.778, allocations: 1 kB / 0.6877 GB, free: 91.67 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat