Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.847/1.847, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.173e-05, allocations: 3.984 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09011, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4586/0.5487, allocations: 124.5 MB / 424.4 MB, free: 4.109 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.549, allocations: 84.05 kB / 424.5 MB, free: 4.098 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7778/1.327, allocations: 123.6 MB / 0.5353 GB, free: 65.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.844e-06/1.327, allocations: 0 / 0.5353 GB, free: 65.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006433/1.328, allocations: 134.9 kB / 0.5354 GB, free: 65.02 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: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02092/1.349, allocations: 5.083 MB / 0.5404 GB, free: 63.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/1.349, allocations: 11.84 kB / 0.5404 GB, free: 63.29 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002956/1.352, allocations: 0.7256 MB / 0.5411 GB, free: 63.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007733/1.359, allocations: 1.006 MB / 0.5421 GB, free: 62.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01636/1.376, allocations: 4.558 MB / 0.5465 GB, free: 62.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005077/1.376, allocations: 395.7 kB / 0.5469 GB, free: 62.15 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002196/1.379, allocations: 0.5251 MB / 0.5474 GB, free: 62.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02238/1.401, allocations: 6.795 MB / 0.554 GB, free: 61.45 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002713/1.401, allocations: 10.66 kB / 0.5541 GB, free: 61.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001642/1.403, allocations: 226 kB / 0.5543 GB, free: 61.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002965/1.403, allocations: 256.5 kB / 0.5545 GB, free: 61.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01755/1.421, allocations: 5.384 MB / 0.5598 GB, free: 61.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05738/1.478, allocations: 22.43 MB / 0.5817 GB, free: 54.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/1.49, allocations: 8.244 MB / 0.5897 GB, free: 47.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005297/1.495, allocations: 2.093 MB / 0.5918 GB, free: 46.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/1.515, allocations: 6.271 MB / 0.5979 GB, free: 43.84 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.012e-05/1.515, allocations: 59.97 kB / 0.598 GB, free: 43.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 5.691e-06/1.515, allocations: 4 kB / 0.598 GB, free: 43.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.03505/1.55, allocations: 10.01 MB / 0.6077 GB, free: 39.88 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/1.55, allocations: 77.78 kB / 0.6078 GB, free: 39.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006712/1.557, allocations: 2.704 MB / 0.6104 GB, free: 38.77 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005807/1.557, allocations: 66.8 kB / 0.6105 GB, free: 38.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/1.559, allocations: 2.307 MB / 0.6128 GB, free: 36.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001187/1.56, allocations: 0.868 MB / 0.6136 GB, free: 36.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/1.561, allocations: 62.91 kB / 0.6137 GB, free: 36.13 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.00022/1.561, allocations: 443.8 kB / 0.6141 GB, free: 35.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003307/1.564, allocations: 1.31 MB / 0.6154 GB, free: 35.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00421/1.569, allocations: 2.283 MB / 0.6176 GB, free: 33.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004422/1.573, allocations: 1.731 MB / 0.6193 GB, free: 32.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.564e-05/1.573, allocations: 6.625 kB / 0.6193 GB, free: 32.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01246/1.586, allocations: 4.527 MB / 0.6237 GB, free: 31.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.621e-05/1.586, allocations: 17.91 kB / 0.6237 GB, free: 31.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.088e-05/1.586, allocations: 31.66 kB / 0.6238 GB, free: 31.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/1.589, allocations: 0.7274 MB / 0.6245 GB, free: 30.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005517/1.594, allocations: 0.7432 MB / 0.6252 GB, free: 30.94 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/1.608, allocations: 9.75 MB / 0.6347 GB, free: 22.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004734/1.613, allocations: 192.1 kB / 0.6349 GB, free: 22.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007728/1.614, allocations: 147.7 kB / 0.635 GB, free: 22.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (375): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007746/1.615, allocations: 301.3 kB / 0.6353 GB, free: 21.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.616, allocations: 351.7 kB / 0.6357 GB, free: 21.46 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/1.627, allocations: 4.194 MB / 0.6398 GB, free: 17.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/1.628, allocations: 24 kB / 0.6398 GB, free: 17.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.361e-05/1.628, allocations: 12 kB / 0.6398 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.477e-05/1.628, allocations: 10.78 kB / 0.6398 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02582/1.654, allocations: 9.133 MB / 0.6487 GB, free: 10.22 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-05/1.654, allocations: 7.938 kB / 0.6487 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003582/1.657, allocations: 406.3 kB / 0.6491 GB, free: 9.883 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004313/1.662, allocations: 0.9666 MB / 0.6501 GB, free: 9.09 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005743/1.662, allocations: 63.22 kB / 0.6501 GB, free: 9.035 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02401/1.686, allocations: 15.92 MB / 0.6657 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.036e-05/1.686, allocations: 7.938 kB / 0.6657 GB, free: 9.328 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0177/1.704, allocations: 6.322 MB / 0.6719 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003037/1.707, allocations: 0.717 MB / 0.6726 GB, free: 2.68 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001304/1.708, allocations: 63.89 kB / 0.6726 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004051/1.713, allocations: 153.5 kB / 0.6728 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009307/1.713, allocations: 192.6 kB / 0.6729 GB, free: 2.387 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003107/1.714, allocations: 67.61 kB / 0.673 GB, free: 2.324 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006144/1.72, allocations: 2.045 MB / 0.675 GB, free: 484 kB / 426.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.72, allocations: 4 kB / 0.675 GB, free: 480 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0115/1.732, allocations: 1.379 MB / 0.6764 GB, free: 0 / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (194): * Single equations (assignments): 187 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3227/2.054, allocations: 8.291 MB / 0.6845 GB, free: 69.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01155/2.066, allocations: 4.119 MB / 0.6885 GB, free: 69.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/2.066, allocations: 1.375 kB / 0.6885 GB, free: 69.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007655/2.074, allocations: 2.764 MB / 0.6912 GB, free: 68.39 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007208/2.081, allocations: 0.8698 MB / 0.692 GB, free: 68.37 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02894/2.11, allocations: 9.52 MB / 0.7013 GB, free: 66.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005913/2.116, allocations: 3.433 MB / 0.7047 GB, free: 65.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004813/2.121, allocations: 2.097 MB / 0.7067 GB, free: 65.58 MB / 426.7 MB Notification: Performance of SimCode: time 1.282e-06/2.121, allocations: 0 / 0.7067 GB, free: 65.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.99/7.11, allocations: 251.2 MB / 0.952 GB, free: 29.9 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat