Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.247/2.247, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.88e-05/2.893e-05, allocations: 3.312 kB / 249.8 MB, free: 5.227 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 44.51 MB / 294.3 MB, free: 10.62 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.576/0.6796, allocations: 142.1 MB / 436.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003987/0.6801, allocations: 99 kB / 436.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.544/2.225, allocations: 229.8 MB / 0.6507 GB, free: 45.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.176e-06/2.225, allocations: 1 kB / 0.6507 GB, free: 45.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008664/2.225, allocations: 157.5 kB / 0.6508 GB, free: 45.54 MB / 410.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.03943/2.265, allocations: 6.785 MB / 0.6574 GB, free: 43.25 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/2.265, allocations: 9.281 kB / 0.6575 GB, free: 43.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03715/2.302, allocations: 3.654 MB / 0.661 GB, free: 42.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02529/2.328, allocations: 5.929 MB / 0.6668 GB, free: 42.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007043/2.328, allocations: 230.8 kB / 0.667 GB, free: 42.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003931/2.332, allocations: 428.1 kB / 0.6674 GB, free: 42.02 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03174/2.364, allocations: 9.153 MB / 0.6764 GB, free: 41.99 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0413/2.405, allocations: 10.19 MB / 0.6863 GB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006408/2.406, allocations: 20.41 kB / 0.6864 GB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003533/2.41, allocations: 6.875 kB / 0.6864 GB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009399/2.411, allocations: 490.3 kB / 0.6868 GB, free: 41.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1111/2.522, allocations: 37.71 MB / 0.7237 GB, free: 30.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02722/2.549, allocations: 18.17 MB / 0.7414 GB, free: 14.92 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01186/2.561, allocations: 4.208 MB / 0.7455 GB, free: 13.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04878/2.61, allocations: 14 MB / 0.7592 GB, free: 6.078 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001055/2.61, allocations: 80.53 kB / 0.7592 GB, free: 6.008 MB / 410.7 MB Notification: Performance of pre-optimization done (n=399): time 1.035e-05/2.61, allocations: 0 / 0.7592 GB, free: 6.008 MB / 410.7 MB Notification: Performance of matching and sorting (n=415): time 0.07483/2.685, allocations: 16.62 MB / 0.7755 GB, free: 14.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.12e-05/2.685, allocations: 90.25 kB / 0.7756 GB, free: 14.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007941/2.693, allocations: 2.436 MB / 0.7779 GB, free: 12.48 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001072/2.694, allocations: 29.7 kB / 0.778 GB, free: 12.45 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004102/2.698, allocations: 3.174 MB / 0.7811 GB, free: 9.605 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002926/2.701, allocations: 1.353 MB / 0.7824 GB, free: 8.359 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007819/2.702, allocations: 0 / 0.7824 GB, free: 8.359 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006836/2.703, allocations: 0.5294 MB / 0.7829 GB, free: 7.895 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009565/2.712, allocations: 2.88 MB / 0.7857 GB, free: 5.316 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01201/2.724, allocations: 4.854 MB / 0.7905 GB, free: 15.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01726/2.742, allocations: 4.477 MB / 0.7948 GB, free: 12.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-05/2.742, allocations: 20 kB / 0.7948 GB, free: 12.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.03747/2.779, allocations: 9.653 MB / 0.8043 GB, free: 4.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.619e-05/2.779, allocations: 32 kB / 0.8043 GB, free: 4.129 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001604/2.78, allocations: 74.14 kB / 0.8044 GB, free: 4.059 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/2.79, allocations: 2.447 MB / 0.8068 GB, free: 2.016 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009792/2.8, allocations: 1.078 MB / 0.8078 GB, free: 1.184 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3805/3.18, allocations: 5.74 MB / 0.8134 GB, free: 69.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008051/3.188, allocations: 245.8 kB / 0.8137 GB, free: 69.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00182/3.19, allocations: 266.8 kB / 0.8139 GB, free: 69.94 MB / 442.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.0027/3.193, allocations: 342.3 kB / 0.8142 GB, free: 69.82 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02733/3.22, allocations: 7.721 MB / 0.8218 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002124/3.223, allocations: 376.2 kB / 0.8221 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03018/3.253, allocations: 8.421 MB / 0.8304 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001607/3.253, allocations: 96.14 kB / 0.8305 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.82e-05/3.253, allocations: 4.312 kB / 0.8305 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001067/3.253, allocations: 21.98 kB / 0.8305 GB, free: 69.45 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05867/3.312, allocations: 19.43 MB / 0.8495 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.111e-05/3.312, allocations: 5.719 kB / 0.8495 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005646/3.318, allocations: 0.5606 MB / 0.85 GB, free: 68.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009099/3.327, allocations: 2.405 MB / 0.8524 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001091/3.328, allocations: 50.92 kB / 0.8524 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01365/3.342, allocations: 7.22 MB / 0.8595 GB, free: 66.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002495/3.344, allocations: 1.808 MB / 0.8612 GB, free: 64.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03492/3.379, allocations: 13.02 MB / 0.8739 GB, free: 61.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004761/3.384, allocations: 1.074 MB / 0.875 GB, free: 61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002416/3.386, allocations: 10.62 kB / 0.875 GB, free: 61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005964/3.392, allocations: 178.2 kB / 0.8752 GB, free: 61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001778/3.394, allocations: 317.6 kB / 0.8755 GB, free: 60.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009244/3.395, allocations: 120.9 kB / 0.8756 GB, free: 60.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005304/3.4, allocations: 1.745 MB / 0.8773 GB, free: 60.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.61e-07/3.401, allocations: 0 / 0.8773 GB, free: 60.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009892/3.41, allocations: 1.205 MB / 0.8785 GB, free: 60.16 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.03944/3.45, allocations: 15.46 MB / 0.8936 GB, free: 51.89 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02164/3.472, allocations: 7.214 MB / 0.9006 GB, free: 49.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/3.472, allocations: 3.969 kB / 0.9006 GB, free: 49.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01224/3.484, allocations: 3.63 MB / 0.9042 GB, free: 47.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007973/3.492, allocations: 0.6951 MB / 0.9048 GB, free: 47.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05077/3.543, allocations: 13.94 MB / 0.9184 GB, free: 41.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01024/3.553, allocations: 4.669 MB / 0.923 GB, free: 37.71 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.008791/3.562, allocations: 1.152 MB / 0.9241 GB, free: 37.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007654/3.57, allocations: 2.541 MB / 0.9266 GB, free: 34.66 MB / 442.7 MB Notification: Performance of SimCode: time 1.834e-06/3.57, allocations: 0 / 0.9266 GB, free: 34.66 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6797/4.249, allocations: 118.5 MB / 1.042 GB, free: 59.75 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003223/4.25, allocations: 205.6 kB / 1.043 GB, free: 59.46 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.685/11.93, allocations: 0 / 1.043 GB, free: 59.46 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.mat does not exist to compare? outputFormat=mat