Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.333e-05/3.353e-05, allocations: 8 kB / 255.5 MB, free: 2.602 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09409/0.09415, allocations: 44.5 MB / 300 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4616/0.5558, allocations: 124.5 MB / 424.4 MB, free: 3.816 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.5561, allocations: 85.08 kB / 424.5 MB, free: 3.773 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8064/1.362, allocations: 123.6 MB / 0.5353 GB, free: 65.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.054e-06/1.363, allocations: 0 / 0.5353 GB, free: 65.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005976/1.363, allocations: 139.2 kB / 0.5354 GB, free: 65.47 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.02867/1.392, allocations: 5.079 MB / 0.5404 GB, free: 63.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.231e-05/1.392, allocations: 11.53 kB / 0.5404 GB, free: 63.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004008/1.396, allocations: 0.7297 MB / 0.5411 GB, free: 63.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01175/1.408, allocations: 0.9998 MB / 0.5421 GB, free: 63.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02461/1.432, allocations: 4.554 MB / 0.5465 GB, free: 62.61 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007553/1.433, allocations: 404.4 kB / 0.5469 GB, free: 62.6 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003158/1.436, allocations: 0.5233 MB / 0.5474 GB, free: 62.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02925/1.466, allocations: 6.797 MB / 0.5541 GB, free: 61.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003119/1.466, allocations: 12.78 kB / 0.5541 GB, free: 61.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00181/1.468, allocations: 221.5 kB / 0.5543 GB, free: 61.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003176/1.468, allocations: 245.8 kB / 0.5545 GB, free: 61.88 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01797/1.486, allocations: 5.392 MB / 0.5598 GB, free: 61.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05806/1.544, allocations: 22.43 MB / 0.5817 GB, free: 54.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/1.556, allocations: 8.246 MB / 0.5897 GB, free: 48.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005166/1.561, allocations: 2.095 MB / 0.5918 GB, free: 47.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0181/1.579, allocations: 6.281 MB / 0.5979 GB, free: 44.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.792e-05/1.579, allocations: 59.69 kB / 0.598 GB, free: 44.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=224): time 4.919e-06/1.579, allocations: 0 / 0.598 GB, free: 44.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=251): time 0.03479/1.614, allocations: 10 MB / 0.6078 GB, free: 40.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/1.614, allocations: 79.62 kB / 0.6078 GB, free: 40.08 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006664/1.621, allocations: 2.712 MB / 0.6105 GB, free: 39.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005766/1.622, allocations: 69.52 kB / 0.6105 GB, free: 38.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002067/1.624, allocations: 2.474 MB / 0.613 GB, free: 37.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001175/1.625, allocations: 0.8636 MB / 0.6138 GB, free: 36.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003314/1.625, allocations: 62.47 kB / 0.6139 GB, free: 36.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002125/1.626, allocations: 443.1 kB / 0.6143 GB, free: 36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003316/1.629, allocations: 1.307 MB / 0.6156 GB, free: 35.49 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004076/1.633, allocations: 2.276 MB / 0.6178 GB, free: 33.76 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/1.637, allocations: 1.73 MB / 0.6195 GB, free: 33.07 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.361e-05/1.637, allocations: 7.438 kB / 0.6195 GB, free: 33.07 MB / 410.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.01303/1.65, allocations: 4.743 MB / 0.6241 GB, free: 31.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.046e-05/1.651, allocations: 22.78 kB / 0.6241 GB, free: 31.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-05/1.651, allocations: 31.31 kB / 0.6242 GB, free: 31.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002981/1.654, allocations: 0.7246 MB / 0.6249 GB, free: 31.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005612/1.659, allocations: 0.7464 MB / 0.6256 GB, free: 31.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/1.673, allocations: 9.752 MB / 0.6351 GB, free: 21.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004563/1.678, allocations: 189.3 kB / 0.6353 GB, free: 21.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004457/1.678, allocations: 147.2 kB / 0.6354 GB, free: 21.57 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.0007208/1.679, allocations: 300 kB / 0.6357 GB, free: 21.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007985/1.68, allocations: 347.7 kB / 0.6361 GB, free: 20.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.69, allocations: 4.203 MB / 0.6402 GB, free: 17.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.568e-05/1.691, allocations: 24 kB / 0.6402 GB, free: 17.25 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.812e-05/1.691, allocations: 12 kB / 0.6402 GB, free: 17.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.824e-05/1.691, allocations: 14.02 kB / 0.6402 GB, free: 17.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02525/1.716, allocations: 9.137 MB / 0.6491 GB, free: 9.707 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.704e-05/1.716, allocations: 0 / 0.6491 GB, free: 9.707 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003635/1.72, allocations: 410.3 kB / 0.6495 GB, free: 9.371 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004303/1.724, allocations: 0.9615 MB / 0.6505 GB, free: 8.578 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000552/1.725, allocations: 62.8 kB / 0.6505 GB, free: 8.523 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02412/1.749, allocations: 15.93 MB / 0.6661 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/1.749, allocations: 4 kB / 0.6661 GB, free: 8.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/1.765, allocations: 6.322 MB / 0.6723 GB, free: 2.836 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003024/1.768, allocations: 0.7155 MB / 0.673 GB, free: 2.176 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001251/1.77, allocations: 59.56 kB / 0.673 GB, free: 2.121 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003721/1.773, allocations: 154.1 kB / 0.6732 GB, free: 2.008 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007633/1.774, allocations: 191.3 kB / 0.6733 GB, free: 1.887 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002857/1.774, allocations: 78.73 kB / 0.6734 GB, free: 1.816 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005707/1.78, allocations: 2.052 MB / 0.6754 GB, free: 0 / 426.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.78, allocations: 336 / 0.6754 GB, free: 0 / 426.7 MB Notification: Performance of remove unused functions: time 0.3033/2.083, allocations: 1.103 MB / 0.6765 GB, free: 72.98 MB / 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.01812/2.102, allocations: 8.287 MB / 0.6846 GB, free: 70.47 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01087/2.113, allocations: 4.123 MB / 0.6886 GB, free: 69.75 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.888e-06/2.113, allocations: 1.797 kB / 0.6886 GB, free: 69.75 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007103/2.12, allocations: 2.76 MB / 0.6913 GB, free: 68.92 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007109/2.127, allocations: 0.8705 MB / 0.6922 GB, free: 68.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.028/2.155, allocations: 9.583 MB / 0.7015 GB, free: 66.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005679/2.161, allocations: 3.506 MB / 0.7049 GB, free: 66.06 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004964/2.166, allocations: 0.7975 MB / 0.7057 GB, free: 65.97 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004452/2.17, allocations: 2.079 MB / 0.7078 GB, free: 65.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.834e-06/2.17, allocations: 0 / 0.7078 GB, free: 65.96 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2014/2.372, allocations: 92.63 MB / 0.7982 GB, free: 24.92 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/2.372, allocations: 196 kB / 0.7984 GB, free: 24.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.343/8.715, allocations: 0 / 0.7984 GB, free: 24.7 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat