Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.093/2.093, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.178e-05/2.182e-05, allocations: 0 / 249.8 MB, free: 14.8 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3017, allocations: 44.5 MB / 294.3 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5046/0.8063, allocations: 142.1 MB / 436.4 MB, free: 66.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003315/0.8067, allocations: 94.12 kB / 436.5 MB, free: 66.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.019/1.826, allocations: 229.8 MB / 0.6506 GB, free: 51.1 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.504e-06/1.826, allocations: 4 kB / 0.6506 GB, free: 51.1 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007236/1.826, allocations: 163.5 kB / 0.6508 GB, free: 51.09 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03768/1.864, allocations: 6.78 MB / 0.6574 GB, free: 47.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/1.864, allocations: 11.41 kB / 0.6574 GB, free: 47.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03112/1.895, allocations: 3.658 MB / 0.661 GB, free: 44.28 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02049/1.916, allocations: 5.924 MB / 0.6668 GB, free: 38.36 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006138/1.917, allocations: 232 kB / 0.667 GB, free: 38.14 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003168/1.92, allocations: 415.9 kB / 0.6674 GB, free: 37.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02634/1.946, allocations: 9.159 MB / 0.6763 GB, free: 28.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03313/1.979, allocations: 10.19 MB / 0.6863 GB, free: 18.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004442/1.98, allocations: 15.81 kB / 0.6863 GB, free: 18.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00262/1.982, allocations: 7.938 kB / 0.6863 GB, free: 18.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006962/1.983, allocations: 494.5 kB / 0.6868 GB, free: 17.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4244/2.408, allocations: 37.69 MB / 0.7236 GB, free: 57.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03528/2.443, allocations: 18.17 MB / 0.7413 GB, free: 44.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01527/2.458, allocations: 4.204 MB / 0.7454 GB, free: 44.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05962/2.518, allocations: 14 MB / 0.7591 GB, free: 43.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.993e-05/2.518, allocations: 69.41 kB / 0.7592 GB, free: 43.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=399): time 1.882e-05/2.518, allocations: 3.188 kB / 0.7592 GB, free: 43.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=415): time 0.0781/2.596, allocations: 16.21 MB / 0.775 GB, free: 42.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/2.596, allocations: 89 kB / 0.7751 GB, free: 42.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006408/2.603, allocations: 2.441 MB / 0.7775 GB, free: 41.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009363/2.604, allocations: 30.05 kB / 0.7775 GB, free: 41.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002646/2.606, allocations: 3.17 MB / 0.7806 GB, free: 40.14 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002972/2.609, allocations: 1.348 MB / 0.7819 GB, free: 39.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001728/2.611, allocations: 0 / 0.7819 GB, free: 39.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001093/2.612, allocations: 0.5239 MB / 0.7824 GB, free: 38.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01129/2.624, allocations: 2.883 MB / 0.7852 GB, free: 38.13 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01391/2.638, allocations: 4.851 MB / 0.79 GB, free: 34.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0209/2.659, allocations: 4.482 MB / 0.7943 GB, free: 32.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/2.659, allocations: 20.38 kB / 0.7944 GB, free: 32.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.04463/2.704, allocations: 9.648 MB / 0.8038 GB, free: 29.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/2.704, allocations: 37.34 kB / 0.8038 GB, free: 29.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001798/2.704, allocations: 64.16 kB / 0.8039 GB, free: 29.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01275/2.717, allocations: 2.454 MB / 0.8063 GB, free: 28.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01248/2.729, allocations: 1.076 MB / 0.8073 GB, free: 28.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/2.745, allocations: 5.555 MB / 0.8128 GB, free: 25.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01039/2.756, allocations: 257.5 kB / 0.813 GB, free: 25.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002192/2.758, allocations: 261.9 kB / 0.8133 GB, free: 25.42 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.004052/2.762, allocations: 326.1 kB / 0.8136 GB, free: 25.25 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0373/2.799, allocations: 7.719 MB / 0.8211 GB, free: 22.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002712/2.802, allocations: 382.2 kB / 0.8215 GB, free: 21.96 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03098/2.833, allocations: 8.409 MB / 0.8297 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001402/2.833, allocations: 100.9 kB / 0.8298 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/2.833, allocations: 3.953 kB / 0.8298 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001014/2.833, allocations: 19.78 kB / 0.8298 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05406/2.888, allocations: 19.57 MB / 0.8489 GB, free: 15.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.181e-05/2.888, allocations: 7.953 kB / 0.8489 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005225/2.893, allocations: 0.5593 MB / 0.8495 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008541/2.901, allocations: 2.41 MB / 0.8518 GB, free: 13.25 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009746/2.902, allocations: 50.83 kB / 0.8519 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/2.916, allocations: 7.224 MB / 0.8589 GB, free: 6.492 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00268/2.919, allocations: 1.804 MB / 0.8607 GB, free: 4.641 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04829/2.967, allocations: 13.83 MB / 0.8742 GB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004518/2.972, allocations: 1.069 MB / 0.8752 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001823/2.974, allocations: 11.47 kB / 0.8752 GB, free: 9.973 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007439/2.981, allocations: 175.5 kB / 0.8754 GB, free: 9.871 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002661/2.984, allocations: 319.7 kB / 0.8757 GB, free: 9.668 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001355/2.985, allocations: 120.4 kB / 0.8758 GB, free: 9.562 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006812/2.992, allocations: 1.746 MB / 0.8775 GB, free: 8.008 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.72e-07/2.992, allocations: 0 / 0.8775 GB, free: 8.008 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009302/3.002, allocations: 1.197 MB / 0.8787 GB, free: 6.82 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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: 0 * Non-linear torn systems: 3 {3 3,6 9,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.3874/3.389, allocations: 15.98 MB / 0.8943 GB, free: 87.22 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01945/3.409, allocations: 7.227 MB / 0.9014 GB, free: 86.94 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/3.409, allocations: 3.594 kB / 0.9014 GB, free: 86.94 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0107/3.419, allocations: 3.624 MB / 0.9049 GB, free: 86.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007277/3.427, allocations: 0.7048 MB / 0.9056 GB, free: 86.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04576/3.472, allocations: 13.94 MB / 0.9192 GB, free: 84.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009438/3.482, allocations: 4.666 MB / 0.9238 GB, free: 83.4 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.007499/3.49, allocations: 1.15 MB / 0.9249 GB, free: 83.36 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006486/3.496, allocations: 2.547 MB / 0.9274 GB, free: 83.36 MB / 442.7 MB Notification: Performance of SimCode: time 1.933e-06/3.496, allocations: 0 / 0.9274 GB, free: 83.36 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2694/3.766, allocations: 118.5 MB / 1.043 GB, free: 9.938 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.308/4.074, allocations: 205.2 kB / 1.043 GB, free: 106.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.771/10.84, allocations: 0 / 1.043 GB, free: 106.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat