Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.031/2.031, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.9e-05/3.908e-05, allocations: 4 kB / 269.5 MB, free: 6.301 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 47.57 MB / 317 MB, free: 6.645 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4924/0.5971, allocations: 113.3 MB / 430.3 MB, free: 7.047 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003183/0.5974, allocations: 83.08 kB / 430.4 MB, free: 7.004 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.042/1.639, allocations: 159.4 MB / 0.5759 GB, free: 78.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.639, allocations: 0 / 0.5759 GB, free: 78.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000739/1.64, allocations: 167.4 kB / 0.5761 GB, free: 78.88 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02936/1.669, allocations: 6.432 MB / 0.5824 GB, free: 76.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/1.669, allocations: 11.28 kB / 0.5824 GB, free: 76.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00454/1.674, allocations: 0.9531 MB / 0.5833 GB, free: 76.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01314/1.687, allocations: 1.519 MB / 0.5848 GB, free: 75.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02246/1.71, allocations: 5.738 MB / 0.5904 GB, free: 72.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000734/1.71, allocations: 0.5153 MB / 0.5909 GB, free: 72.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003336/1.714, allocations: 0.6817 MB / 0.5916 GB, free: 72.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03358/1.747, allocations: 8.968 MB / 0.6003 GB, free: 68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004622/1.748, allocations: 7.781 kB / 0.6003 GB, free: 68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002863/1.751, allocations: 295.5 kB / 0.6006 GB, free: 67.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004368/1.751, allocations: 322.9 kB / 0.6009 GB, free: 67.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03063/1.782, allocations: 7.251 MB / 0.608 GB, free: 62.1 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07943/1.861, allocations: 28.87 MB / 0.6362 GB, free: 34.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02225/1.884, allocations: 16.36 MB / 0.6522 GB, free: 16.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007408/1.891, allocations: 2.863 MB / 0.655 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02513/1.916, allocations: 7.723 MB / 0.6625 GB, free: 5.977 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/1.917, allocations: 64.56 kB / 0.6626 GB, free: 5.906 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 5.901e-06/1.917, allocations: 0 / 0.6626 GB, free: 5.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=260): time 0.3536/2.27, allocations: 7.742 MB / 0.6701 GB, free: 71.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/2.27, allocations: 78.73 kB / 0.6702 GB, free: 71.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01048/2.281, allocations: 2.92 MB / 0.673 GB, free: 71.33 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006878/2.282, allocations: 70.48 kB / 0.6731 GB, free: 71.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003762/2.285, allocations: 3.04 MB / 0.6761 GB, free: 70.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001532/2.287, allocations: 0.901 MB / 0.677 GB, free: 70.39 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004979/2.287, allocations: 71.59 kB / 0.677 GB, free: 70.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003697/2.288, allocations: 439.1 kB / 0.6775 GB, free: 70.08 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004341/2.292, allocations: 1.293 MB / 0.6787 GB, free: 70.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00689/2.299, allocations: 2.302 MB / 0.681 GB, free: 68.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00576/2.305, allocations: 1.751 MB / 0.6827 GB, free: 68.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.581e-05/2.305, allocations: 8.812 kB / 0.6827 GB, free: 68.83 MB / 426.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01479/2.32, allocations: 4.417 MB / 0.687 GB, free: 68.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.698e-05/2.32, allocations: 20.81 kB / 0.687 GB, free: 68.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.437e-05/2.32, allocations: 31.12 kB / 0.687 GB, free: 68.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001654/2.322, allocations: 392.9 kB / 0.6874 GB, free: 68.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006435/2.328, allocations: 0.7921 MB / 0.6882 GB, free: 68.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008806/2.337, allocations: 7.32 MB / 0.6953 GB, free: 63.12 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005247/2.342, allocations: 168.8 kB / 0.6955 GB, free: 63.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009284/2.343, allocations: 145.4 kB / 0.6956 GB, free: 63.12 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (406): * Single equations (assignments): 400 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00155/2.345, allocations: 321.8 kB / 0.6959 GB, free: 62.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001244/2.346, allocations: 360.2 kB / 0.6963 GB, free: 62.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0131/2.359, allocations: 4.046 MB / 0.7002 GB, free: 62.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.063e-05/2.36, allocations: 24.12 kB / 0.7003 GB, free: 62.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.081e-05/2.36, allocations: 14.59 kB / 0.7003 GB, free: 62.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.974e-05/2.36, allocations: 12.66 kB / 0.7003 GB, free: 62.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02983/2.39, allocations: 9.652 MB / 0.7097 GB, free: 61.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.41e-05/2.39, allocations: 6.844 kB / 0.7097 GB, free: 61.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003991/2.394, allocations: 404 kB / 0.7101 GB, free: 61.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00387/2.398, allocations: 0.8503 MB / 0.7109 GB, free: 61.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006707/2.398, allocations: 69.2 kB / 0.711 GB, free: 61.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0234/2.422, allocations: 15.98 MB / 0.7266 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/2.422, allocations: 4.969 kB / 0.7266 GB, free: 48.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/2.438, allocations: 6.113 MB / 0.7326 GB, free: 45.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003076/2.441, allocations: 0.7373 MB / 0.7333 GB, free: 44.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001666/2.443, allocations: 64.59 kB / 0.7334 GB, free: 44.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004378/2.447, allocations: 147.2 kB / 0.7335 GB, free: 44.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001025/2.448, allocations: 207.2 kB / 0.7337 GB, free: 44.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005015/2.449, allocations: 76.56 kB / 0.7338 GB, free: 44.64 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00628/2.455, allocations: 2.208 MB / 0.7359 GB, free: 43.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.455, allocations: 0 / 0.7359 GB, free: 43.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007566/2.463, allocations: 1.195 MB / 0.7371 GB, free: 43.65 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01752/2.48, allocations: 7.973 MB / 0.7449 GB, free: 39.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009236/2.489, allocations: 3.821 MB / 0.7486 GB, free: 37.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/2.489, allocations: 3.781 kB / 0.7486 GB, free: 37.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006722/2.496, allocations: 2.681 MB / 0.7512 GB, free: 35.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00779/2.504, allocations: 0.9272 MB / 0.7521 GB, free: 35.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03803/2.542, allocations: 11.69 MB / 0.7636 GB, free: 30.56 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008475/2.551, allocations: 4.348 MB / 0.7678 GB, free: 28.95 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.005517/2.556, allocations: 0.826 MB / 0.7686 GB, free: 28.38 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005874/2.562, allocations: 2.523 MB / 0.7711 GB, free: 26.04 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/2.562, allocations: 0 / 0.7711 GB, free: 26.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6077/3.17, allocations: 99.75 MB / 0.8685 GB, free: 92.11 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002629/3.17, allocations: 202.2 kB / 0.8687 GB, free: 91.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.146/9.316, allocations: 0 / 0.8687 GB, free: 91.89 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat