Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.179e-05/3.198e-05, allocations: 8 kB / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1036, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4933/0.5969, allocations: 126.4 MB / 469.5 MB, free: 332 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/0.5973, allocations: 100.4 kB / 469.6 MB, free: 276 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7254/1.323, allocations: 116.3 MB / 0.5722 GB, free: 96.53 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.323, allocations: 0 / 0.5722 GB, free: 96.53 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005697/1.323, allocations: 137 kB / 0.5723 GB, free: 96.5 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01956/1.343, allocations: 4.907 MB / 0.5771 GB, free: 94.63 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/1.343, allocations: 7.531 kB / 0.5771 GB, free: 94.63 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002909/1.346, allocations: 0.7018 MB / 0.5778 GB, free: 94.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007371/1.353, allocations: 0.9526 MB / 0.5787 GB, free: 94.25 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01571/1.369, allocations: 4.416 MB / 0.583 GB, free: 93.44 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004562/1.37, allocations: 387.1 kB / 0.5834 GB, free: 93.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002053/1.372, allocations: 0.5036 MB / 0.5839 GB, free: 93.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01958/1.391, allocations: 6.488 MB / 0.5902 GB, free: 90.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002278/1.392, allocations: 15.34 kB / 0.5902 GB, free: 90.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001314/1.393, allocations: 215.1 kB / 0.5905 GB, free: 89.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002769/1.393, allocations: 235.9 kB / 0.5907 GB, free: 89.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01617/1.409, allocations: 5.174 MB / 0.5957 GB, free: 87.77 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05444/1.464, allocations: 21.13 MB / 0.6164 GB, free: 73.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/1.476, allocations: 8.457 MB / 0.6246 GB, free: 64.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005165/1.481, allocations: 2.015 MB / 0.6266 GB, free: 62.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01814/1.499, allocations: 5.994 MB / 0.6324 GB, free: 56.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.66e-05/1.499, allocations: 64.55 kB / 0.6325 GB, free: 56.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=208): time 5.671e-06/1.499, allocations: 0 / 0.6325 GB, free: 56.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=232): time 0.03158/1.531, allocations: 9.305 MB / 0.6416 GB, free: 46.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.54e-05/1.531, allocations: 73.41 kB / 0.6417 GB, free: 46.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006045/1.537, allocations: 2.496 MB / 0.6441 GB, free: 44.31 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005641/1.537, allocations: 61.7 kB / 0.6442 GB, free: 44.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/1.539, allocations: 2.359 MB / 0.6465 GB, free: 41.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001124/1.541, allocations: 0.7944 MB / 0.6472 GB, free: 41.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003086/1.541, allocations: 56 kB / 0.6473 GB, free: 41.03 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002054/1.541, allocations: 424.1 kB / 0.6477 GB, free: 40.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003127/1.544, allocations: 1.244 MB / 0.6489 GB, free: 39.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003809/1.548, allocations: 2.107 MB / 0.651 GB, free: 36.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004046/1.552, allocations: 1.634 MB / 0.6526 GB, free: 35.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.146e-05/1.552, allocations: 11.95 kB / 0.6526 GB, free: 35.19 MB / 442.7 MB Notification: Performance of matching and sorting (n=379) (initialization): time 0.01194/1.564, allocations: 4.398 MB / 0.6569 GB, free: 30.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/1.564, allocations: 19.98 kB / 0.6569 GB, free: 30.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.642e-05/1.564, allocations: 32 kB / 0.6569 GB, free: 30.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002852/1.567, allocations: 0.7113 MB / 0.6576 GB, free: 29.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00532/1.573, allocations: 0.6942 MB / 0.6583 GB, free: 29.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/1.586, allocations: 9.384 MB / 0.6675 GB, free: 19.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004444/1.59, allocations: 191.7 kB / 0.6676 GB, free: 19.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007105/1.591, allocations: 128 kB / 0.6678 GB, free: 19 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (343): * Single equations (assignments): 337 * 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,75.0%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000679/1.592, allocations: 290.2 kB / 0.668 GB, free: 18.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000981/1.593, allocations: 316.2 kB / 0.6683 GB, free: 18.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01083/1.604, allocations: 4 MB / 0.6722 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.844e-05/1.604, allocations: 28 kB / 0.6723 GB, free: 14.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.653e-05/1.604, allocations: 8 kB / 0.6723 GB, free: 14.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.49e-05/1.604, allocations: 11.95 kB / 0.6723 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02357/1.627, allocations: 8.642 MB / 0.6807 GB, free: 5.527 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.941e-05/1.627, allocations: 4.062 kB / 0.6807 GB, free: 5.523 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003445/1.631, allocations: 379.5 kB / 0.6811 GB, free: 5.152 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004374/1.635, allocations: 0.9421 MB / 0.682 GB, free: 4.191 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006206/1.636, allocations: 55.98 kB / 0.6821 GB, free: 4.137 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3653/2.001, allocations: 15.47 MB / 0.6972 GB, free: 80.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/2.001, allocations: 7.594 kB / 0.6972 GB, free: 80.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/2.017, allocations: 5.909 MB / 0.703 GB, free: 79.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002671/2.02, allocations: 0.6712 MB / 0.7036 GB, free: 79.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001052/2.021, allocations: 54.55 kB / 0.7037 GB, free: 79.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003353/2.024, allocations: 149.6 kB / 0.7038 GB, free: 79.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007225/2.025, allocations: 177.4 kB / 0.704 GB, free: 79.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002595/2.025, allocations: 71.09 kB / 0.704 GB, free: 79.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005409/2.031, allocations: 1.893 MB / 0.7059 GB, free: 79.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.62e-07/2.031, allocations: 1 kB / 0.7059 GB, free: 79.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006202/2.037, allocations: 1.012 MB / 0.7069 GB, free: 79.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 171 * 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%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01587/2.053, allocations: 7.631 MB / 0.7143 GB, free: 77.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009285/2.062, allocations: 3.857 MB / 0.7181 GB, free: 76.49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/2.062, allocations: 3.469 kB / 0.7181 GB, free: 76.49 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006714/2.069, allocations: 2.599 MB / 0.7206 GB, free: 75.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007073/2.076, allocations: 0.787 MB / 0.7214 GB, free: 75.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02667/2.103, allocations: 9.142 MB / 0.7303 GB, free: 73.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0054/2.108, allocations: 3.409 MB / 0.7337 GB, free: 71.78 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00438/2.113, allocations: 0.7459 MB / 0.7344 GB, free: 71.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004053/2.117, allocations: 1.942 MB / 0.7363 GB, free: 70.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.362e-06/2.117, allocations: 2.812 kB / 0.7363 GB, free: 70.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2545/2.371, allocations: 85.47 MB / 0.8198 GB, free: 14.34 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/2.372, allocations: 215.3 kB / 0.82 GB, free: 14.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.376/8.748, allocations: 0 / 0.82 GB, free: 14.12 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat