Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.506e-05, allocations: 7.984 kB / 255.5 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.09282, allocations: 44.5 MB / 300 MB, free: 6.082 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4378/0.5307, allocations: 104.8 MB / 404.8 MB, free: 11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.531, allocations: 87.44 kB / 404.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2484/0.7794, allocations: 54.92 MB / 459.8 MB, free: 8.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.7795, allocations: 4 kB / 459.8 MB, free: 8.66 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003646/0.7799, allocations: 75.86 kB / 459.8 MB, free: 8.586 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.01053/0.7904, allocations: 2.64 MB / 462.5 MB, free: 5.883 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.7905, allocations: 8.031 kB / 462.5 MB, free: 5.875 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00151/0.792, allocations: 366.6 kB / 462.9 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002187/0.7942, allocations: 356 kB / 463.2 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007138/0.8014, allocations: 1.933 MB / 465.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002984/0.8018, allocations: 193 kB / 465.3 MB, free: 2.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001236/0.803, allocations: 251.9 kB / 465.6 MB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/0.8143, allocations: 3.296 MB / 468.9 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001346/0.8144, allocations: 11.89 kB / 468.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005327/0.815, allocations: 104 kB / 469 MB, free: 15.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002004/0.8152, allocations: 112.8 kB / 469.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009456/0.8247, allocations: 2.672 MB / 471.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03215/0.8569, allocations: 10.9 MB / 482.7 MB, free: 1.168 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005238/0.8622, allocations: 2.39 MB / 485 MB, free: 14.61 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00308/0.8653, allocations: 1.067 MB / 486.1 MB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000525/0.8659, allocations: 138.4 kB / 486.3 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.062e-05/0.866, allocations: 51.81 kB / 486.3 MB, free: 13.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 6.843e-06/0.866, allocations: 3.984 kB / 486.3 MB, free: 13.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.02052/0.8865, allocations: 5.49 MB / 491.8 MB, free: 7.781 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.296e-05/0.8866, allocations: 94.42 kB / 491.9 MB, free: 7.668 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004394/0.891, allocations: 1.568 MB / 493.5 MB, free: 6.105 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003929/0.8915, allocations: 49.7 kB / 493.5 MB, free: 6.051 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001415/0.8929, allocations: 1.214 MB / 494.7 MB, free: 4.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008659/0.8938, allocations: 0.5007 MB / 495.2 MB, free: 4.312 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001784/0.894, allocations: 32 kB / 495.2 MB, free: 4.281 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.8943, allocations: 377.9 kB / 495.6 MB, free: 3.906 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/0.8965, allocations: 0.8239 MB / 496.4 MB, free: 3.082 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/0.8995, allocations: 1.267 MB / 497.7 MB, free: 1.629 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003031/0.9026, allocations: 1.008 MB / 498.7 MB, free: 0.6211 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.069e-05/0.9026, allocations: 4 kB / 498.7 MB, free: 0.6172 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.008342/0.911, allocations: 2.763 MB / 0.4897 GB, free: 13.83 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00232/0.9134, allocations: 5.584 MB / 0.4952 GB, free: 7.766 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.849e-05/0.9135, allocations: 12 kB / 0.4952 GB, free: 7.754 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002854/0.9164, allocations: 0.6746 MB / 0.4959 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002887/0.9193, allocations: 375.4 kB / 0.4962 GB, free: 6.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01523/0.9346, allocations: 8.252 MB / 0.5043 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002698/0.9373, allocations: 111.9 kB / 0.5044 GB, free: 13.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004617/0.9378, allocations: 76.11 kB / 0.5044 GB, free: 13.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.9379, allocations: 4 kB / 0.5045 GB, free: 13.85 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007521/0.9454, allocations: 2.568 MB / 0.507 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.334e-05/0.9455, allocations: 12 kB / 0.507 GB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/0.9482, allocations: 0.6713 MB / 0.5076 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/0.9512, allocations: 367.4 kB / 0.508 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01532/0.9665, allocations: 8.26 MB / 0.516 GB, free: 1.551 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/0.9691, allocations: 107.9 kB / 0.5161 GB, free: 1.445 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003586/0.9695, allocations: 72 kB / 0.5162 GB, free: 1.375 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005602/0.9701, allocations: 220.6 kB / 0.5164 GB, free: 1.152 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006684/0.9708, allocations: 197.6 kB / 0.5166 GB, free: 0.957 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.275/1.246, allocations: 2.559 MB / 0.5191 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.402e-05/1.246, allocations: 14.62 kB / 0.5191 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/1.246, allocations: 2.656 kB / 0.5191 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.555e-05/1.246, allocations: 7.5 kB / 0.5191 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/1.264, allocations: 5.348 MB / 0.5244 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.92e-05/1.264, allocations: 2.938 kB / 0.5244 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002182/1.266, allocations: 233.6 kB / 0.5246 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003084/1.269, allocations: 0.694 MB / 0.5253 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003646/1.269, allocations: 37.2 kB / 0.5253 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01544/1.285, allocations: 9.759 MB / 0.5348 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.285, allocations: 5.438 kB / 0.5348 GB, free: 95.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009031/1.294, allocations: 3.863 MB / 0.5386 GB, free: 95.21 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001744/1.296, allocations: 476.2 kB / 0.5391 GB, free: 95.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006798/1.296, allocations: 29.62 kB / 0.5391 GB, free: 95.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.299, allocations: 100.7 kB / 0.5392 GB, free: 95.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005827/1.3, allocations: 121.5 kB / 0.5393 GB, free: 95.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/1.3, allocations: 45.11 kB / 0.5393 GB, free: 95.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002861/1.303, allocations: 1.203 MB / 0.5405 GB, free: 95 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.71e-07/1.303, allocations: 1.938 kB / 0.5405 GB, free: 95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00595/1.309, allocations: 1.04 MB / 0.5415 GB, free: 95 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.009801/1.318, allocations: 5.313 MB / 0.5467 GB, free: 93.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009972/1.328, allocations: 4.382 MB / 0.551 GB, free: 92.44 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/1.328, allocations: 0 / 0.551 GB, free: 92.44 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003719/1.332, allocations: 1.675 MB / 0.5526 GB, free: 91.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004525/1.337, allocations: 0.5785 MB / 0.5532 GB, free: 91.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01636/1.353, allocations: 5.563 MB / 0.5586 GB, free: 89.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002495/1.356, allocations: 2.157 MB / 0.5607 GB, free: 88.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004595/1.36, allocations: 0.8813 MB / 0.5616 GB, free: 88.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001925/1.362, allocations: 0.9556 MB / 0.5625 GB, free: 88.18 MB / 410.7 MB Notification: Performance of SimCode: time 1.373e-06/1.362, allocations: 0 / 0.5625 GB, free: 88.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1455/1.508, allocations: 64.58 MB / 0.6256 GB, free: 45.86 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/1.508, allocations: 220.5 kB / 0.6258 GB, free: 45.62 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.958/6.466, allocations: 4.062 kB / 0.6258 GB, free: 45.62 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat