Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.051/2.051, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.251e-05/3.268e-05, allocations: 0 / 255.5 MB, free: 2.586 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1206, allocations: 44.51 MB / 300 MB, free: 6.016 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.515/0.6356, allocations: 150.1 MB / 450.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003832/0.6361, allocations: 104.7 kB / 450.2 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.811/2.447, allocations: 385.9 MB / 0.8165 GB, free: 28.95 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/2.447, allocations: 0 / 0.8165 GB, free: 28.95 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009723/2.448, allocations: 295.6 kB / 0.8168 GB, free: 28.66 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.05428/2.503, allocations: 11.04 MB / 0.8275 GB, free: 17.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.466e-05/2.503, allocations: 8.031 kB / 0.8276 GB, free: 17.51 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009211/2.512, allocations: 1.778 MB / 0.8293 GB, free: 15.72 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05558/2.568, allocations: 6.336 MB / 0.8355 GB, free: 9.363 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7472/3.315, allocations: 9.441 MB / 0.8447 GB, free: 29.89 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001602/3.316, allocations: 0.9221 MB / 0.8456 GB, free: 29.86 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006735/3.323, allocations: 1.2 MB / 0.8468 GB, free: 29.86 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07522/3.398, allocations: 20.3 MB / 0.8666 GB, free: 28.41 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009064/3.399, allocations: 21.8 kB / 0.8666 GB, free: 28.41 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006229/3.406, allocations: 0.5176 MB / 0.8671 GB, free: 28.41 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001528/3.407, allocations: 0.8374 MB / 0.8679 GB, free: 28.39 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06066/3.468, allocations: 18.38 MB / 0.8859 GB, free: 28.28 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1996/3.668, allocations: 63.96 MB / 0.9483 GB, free: 3.316 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07611/3.744, allocations: 45.75 MB / 0.993 GB, free: 11.62 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02283/3.767, allocations: 7.723 MB / 1.001 GB, free: 6.289 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0851/3.852, allocations: 23.74 MB / 1.024 GB, free: 3.402 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001424/3.852, allocations: 96.52 kB / 1.024 GB, free: 3.297 MB / 490.8 MB Notification: Performance of pre-optimization done (n=759): time 1.251e-05/3.852, allocations: 0 / 1.024 GB, free: 3.297 MB / 490.8 MB Notification: Performance of matching and sorting (n=799): time 0.4924/4.345, allocations: 26.79 MB / 1.05 GB, free: 90.88 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.267e-05/4.345, allocations: 123.8 kB / 1.05 GB, free: 90.81 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01082/4.356, allocations: 3.557 MB / 1.054 GB, free: 90.47 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001976/4.358, allocations: 133.4 kB / 1.054 GB, free: 90.44 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004477/4.362, allocations: 4.916 MB / 1.059 GB, free: 87.87 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004784/4.367, allocations: 2.651 MB / 1.061 GB, free: 86.16 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002112/4.369, allocations: 159.9 kB / 1.061 GB, free: 86.16 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001178/4.37, allocations: 0.6688 MB / 1.062 GB, free: 85.84 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01418/4.385, allocations: 5.016 MB / 1.067 GB, free: 85.81 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01639/4.401, allocations: 7.419 MB / 1.074 GB, free: 83.07 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01645/4.417, allocations: 6.364 MB / 1.08 GB, free: 82.95 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/4.418, allocations: 24.09 kB / 1.08 GB, free: 82.95 MB / 490.8 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.04449/4.462, allocations: 15.46 MB / 1.095 GB, free: 82.33 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.28e-05/4.462, allocations: 36.16 kB / 1.095 GB, free: 82.33 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001542/4.462, allocations: 76.03 kB / 1.096 GB, free: 82.33 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01324/4.476, allocations: 4.104 MB / 1.1 GB, free: 81.98 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01278/4.489, allocations: 1.632 MB / 1.101 GB, free: 81.93 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/4.508, allocations: 12.18 MB / 1.113 GB, free: 74.05 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01068/4.519, allocations: 437.5 kB / 1.113 GB, free: 73.9 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002719/4.522, allocations: 391.7 kB / 1.114 GB, free: 73.83 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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): 790 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004913/4.527, allocations: 0.5724 MB / 1.114 GB, free: 73.45 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003081/4.53, allocations: 0.5868 MB / 1.115 GB, free: 73.14 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04387/4.574, allocations: 14.17 MB / 1.129 GB, free: 67.19 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003318/4.574, allocations: 193.9 kB / 1.129 GB, free: 67.09 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.91e-05/4.574, allocations: 3.953 kB / 1.129 GB, free: 67.09 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001727/4.575, allocations: 36.22 kB / 1.129 GB, free: 67.09 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08648/4.661, allocations: 28.38 MB / 1.157 GB, free: 50.66 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001221/4.661, allocations: 4 kB / 1.157 GB, free: 50.65 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009743/4.671, allocations: 1.028 MB / 1.158 GB, free: 49.86 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0132/4.684, allocations: 3.987 MB / 1.162 GB, free: 46.52 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002185/4.687, allocations: 165.9 kB / 1.162 GB, free: 46.38 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02123/4.708, allocations: 12.03 MB / 1.174 GB, free: 35 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/4.708, allocations: 6.812 kB / 1.174 GB, free: 35 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.467/5.175, allocations: 21.65 MB / 1.195 GB, free: 83.18 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007478/5.182, allocations: 1.736 MB / 1.196 GB, free: 83.09 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002908/5.185, allocations: 117.6 kB / 1.196 GB, free: 83.09 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008186/5.194, allocations: 327.1 kB / 1.197 GB, free: 83.09 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003145/5.197, allocations: 0.5669 MB / 1.197 GB, free: 83.08 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001738/5.199, allocations: 217.8 kB / 1.198 GB, free: 83.08 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.008373/5.207, allocations: 2.647 MB / 1.2 GB, free: 82.88 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.595e-06/5.207, allocations: 0 / 1.2 GB, free: 82.88 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01457/5.222, allocations: 2.146 MB / 1.202 GB, free: 82.88 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (535): * Single equations (assignments): 479 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.06193/5.284, allocations: 23.23 MB / 1.225 GB, free: 80.69 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.03582/5.319, allocations: 12.85 MB / 1.237 GB, free: 79.99 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/5.32, allocations: 0 / 1.237 GB, free: 79.99 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0266/5.346, allocations: 6.665 MB / 1.244 GB, free: 79.41 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01528/5.361, allocations: 1.176 MB / 1.245 GB, free: 79.39 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09871/5.46, allocations: 25.34 MB / 1.27 GB, free: 75.65 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01653/5.477, allocations: 7.969 MB / 1.278 GB, free: 73.08 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.01098/5.488, allocations: 1.959 MB / 1.28 GB, free: 72.88 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01152/5.499, allocations: 4.513 MB / 1.284 GB, free: 69.05 MB / 490.8 MB Notification: Performance of SimCode: time 1.913e-06/5.5, allocations: 0 / 1.284 GB, free: 69.05 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.144/6.643, allocations: 205.4 MB / 1.485 GB, free: 45.87 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002614/6.643, allocations: 246.1 kB / 1.485 GB, free: 45.54 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.906/16.55, allocations: 0 / 1.485 GB, free: 45.54 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat