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.812/1.812, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.735e-05/2.734e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08968/0.08972, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4571/0.5469, allocations: 124.5 MB / 424.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.5472, allocations: 89.02 kB / 424.5 MB, free: 3.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7407/1.288, allocations: 123.6 MB / 0.5353 GB, free: 64.62 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.375e-06/1.288, allocations: 0 / 0.5353 GB, free: 64.62 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005644/1.289, allocations: 140 kB / 0.5354 GB, free: 64.61 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.01953/1.308, allocations: 5.078 MB / 0.5404 GB, free: 62.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.308, allocations: 7.75 kB / 0.5404 GB, free: 62.88 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002311/1.31, allocations: 0.731 MB / 0.5411 GB, free: 62.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006981/1.317, allocations: 1.004 MB / 0.5421 GB, free: 62.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.015/1.332, allocations: 4.559 MB / 0.5465 GB, free: 61.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003764/1.333, allocations: 398.8 kB / 0.5469 GB, free: 61.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001654/1.335, allocations: 0.5304 MB / 0.5474 GB, free: 61.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01774/1.352, allocations: 6.73 MB / 0.554 GB, free: 61.06 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002023/1.353, allocations: 15.44 kB / 0.554 GB, free: 61.06 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000848/1.353, allocations: 226 kB / 0.5542 GB, free: 61.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000284/1.354, allocations: 248.3 kB / 0.5545 GB, free: 61.05 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01556/1.369, allocations: 5.321 MB / 0.5597 GB, free: 61.02 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0512/1.421, allocations: 22.43 MB / 0.5816 GB, free: 54.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/1.431, allocations: 8.21 MB / 0.5896 GB, free: 47.71 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00484/1.436, allocations: 2.098 MB / 0.5916 GB, free: 46.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01547/1.452, allocations: 6.272 MB / 0.5978 GB, free: 43.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/1.452, allocations: 55.53 kB / 0.5978 GB, free: 43.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 4.949e-06/1.452, allocations: 4 kB / 0.5978 GB, free: 43.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.03208/1.484, allocations: 9.997 MB / 0.6076 GB, free: 39.81 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/1.484, allocations: 79.62 kB / 0.6077 GB, free: 39.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005532/1.49, allocations: 2.708 MB / 0.6103 GB, free: 38.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005005/1.49, allocations: 68.45 kB / 0.6104 GB, free: 38.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001529/1.492, allocations: 2.306 MB / 0.6126 GB, free: 36.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009709/1.493, allocations: 0.8613 MB / 0.6135 GB, free: 36.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/1.493, allocations: 65.94 kB / 0.6135 GB, free: 36.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/1.493, allocations: 438.5 kB / 0.614 GB, free: 35.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002953/1.496, allocations: 1.312 MB / 0.6152 GB, free: 35.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003347/1.499, allocations: 2.268 MB / 0.6174 GB, free: 33.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003656/1.503, allocations: 1.73 MB / 0.6191 GB, free: 32.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.002e-05/1.503, allocations: 7.906 kB / 0.6191 GB, free: 32.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.0103/1.513, allocations: 4.439 MB / 0.6235 GB, free: 31.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.409e-05/1.514, allocations: 19.88 kB / 0.6235 GB, free: 31.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.837e-05/1.514, allocations: 35.25 kB / 0.6235 GB, free: 31.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/1.516, allocations: 0.7203 MB / 0.6242 GB, free: 30.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00521/1.522, allocations: 0.7383 MB / 0.625 GB, free: 30.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01334/1.535, allocations: 9.751 MB / 0.6345 GB, free: 22.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004506/1.539, allocations: 199.1 kB / 0.6347 GB, free: 22.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003732/1.54, allocations: 143.5 kB / 0.6348 GB, free: 22.04 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.0006823/1.541, allocations: 309.6 kB / 0.6351 GB, free: 21.78 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007036/1.541, allocations: 347.1 kB / 0.6354 GB, free: 21.44 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/1.551, allocations: 4.193 MB / 0.6395 GB, free: 17.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/1.552, allocations: 24 kB / 0.6395 GB, free: 17.76 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/1.552, allocations: 15.33 kB / 0.6396 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.748e-05/1.552, allocations: 12.7 kB / 0.6396 GB, free: 17.75 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02101/1.573, allocations: 9.124 MB / 0.6485 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.378e-05/1.573, allocations: 4 kB / 0.6485 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003246/1.576, allocations: 412.2 kB / 0.6489 GB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004008/1.58, allocations: 0.9537 MB / 0.6498 GB, free: 9.121 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/1.58, allocations: 67.78 kB / 0.6499 GB, free: 9.062 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02299/1.603, allocations: 15.93 MB / 0.6654 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.271e-05/1.603, allocations: 11.94 kB / 0.6654 GB, free: 9.352 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01521/1.619, allocations: 6.324 MB / 0.6716 GB, free: 3.367 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002552/1.621, allocations: 0.7148 MB / 0.6723 GB, free: 2.711 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007455/1.622, allocations: 60 kB / 0.6724 GB, free: 2.652 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003112/1.625, allocations: 156.6 kB / 0.6725 GB, free: 2.539 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005846/1.626, allocations: 188.3 kB / 0.6727 GB, free: 2.418 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/1.626, allocations: 71.5 kB / 0.6728 GB, free: 2.355 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004891/1.631, allocations: 2.043 MB / 0.6748 GB, free: 0.5039 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.631, allocations: 4 kB / 0.6748 GB, free: 0.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01032/1.641, allocations: 1.364 MB / 0.6761 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.3049/1.946, allocations: 8.3 MB / 0.6842 GB, free: 69.49 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01022/1.956, allocations: 4.019 MB / 0.6881 GB, free: 68.81 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/1.956, allocations: 1.938 kB / 0.6881 GB, free: 68.81 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006719/1.963, allocations: 2.697 MB / 0.6908 GB, free: 68.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00642/1.97, allocations: 0.8679 MB / 0.6916 GB, free: 68.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/1.994, allocations: 9.494 MB / 0.7009 GB, free: 66.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004152/1.999, allocations: 3.44 MB / 0.7042 GB, free: 65.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00407/2.003, allocations: 2.103 MB / 0.7063 GB, free: 65.23 MB / 426.7 MB Notification: Performance of SimCode: time 2.415e-06/2.003, allocations: 2.062 kB / 0.7063 GB, free: 65.23 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.92/6.923, allocations: 250.7 MB / 0.9511 GB, free: 31.68 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