Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.13/2.13, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.367e-05/3.372e-05, allocations: 8 kB / 292.3 MB, free: 8.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 50.4 MB / 342.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5106/0.6133, allocations: 115.8 MB / 458.5 MB, free: 10.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005112/0.6138, allocations: 110.3 kB / 458.6 MB, free: 10.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8843/1.498, allocations: 159.9 MB / 0.6041 GB, free: 82.55 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.803e-06/1.498, allocations: 0 / 0.6041 GB, free: 82.55 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006261/1.499, allocations: 166 kB / 0.6042 GB, free: 82.53 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02723/1.526, allocations: 6.459 MB / 0.6105 GB, free: 78.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/1.526, allocations: 7.281 kB / 0.6105 GB, free: 78.51 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003643/1.53, allocations: 0.9576 MB / 0.6115 GB, free: 77.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/1.542, allocations: 1.518 MB / 0.6129 GB, free: 77.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01893/1.561, allocations: 5.746 MB / 0.6186 GB, free: 71.59 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005892/1.562, allocations: 0.5129 MB / 0.6191 GB, free: 71.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002691/1.564, allocations: 0.6851 MB / 0.6197 GB, free: 70.39 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02758/1.592, allocations: 8.953 MB / 0.6285 GB, free: 61.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002769/1.592, allocations: 11.91 kB / 0.6285 GB, free: 61.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001928/1.594, allocations: 290.6 kB / 0.6288 GB, free: 60.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003554/1.595, allocations: 326.2 kB / 0.6291 GB, free: 60.64 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02247/1.617, allocations: 7.241 MB / 0.6361 GB, free: 53.39 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07143/1.689, allocations: 28.84 MB / 0.6643 GB, free: 24.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02098/1.71, allocations: 16.39 MB / 0.6803 GB, free: 5.883 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006896/1.717, allocations: 2.909 MB / 0.6831 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3645/2.081, allocations: 7.761 MB / 0.6907 GB, free: 76.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.526e-05/2.081, allocations: 63.81 kB / 0.6908 GB, free: 76.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=256): time 5.21e-06/2.081, allocations: 0 / 0.6908 GB, free: 76.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=262): time 0.02177/2.103, allocations: 7.807 MB / 0.6984 GB, free: 75.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/2.103, allocations: 78.91 kB / 0.6985 GB, free: 75.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007694/2.111, allocations: 2.915 MB / 0.7013 GB, free: 74.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005771/2.111, allocations: 73.77 kB / 0.7014 GB, free: 74.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002687/2.114, allocations: 3.04 MB / 0.7044 GB, free: 73.43 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/2.115, allocations: 0.9025 MB / 0.7053 GB, free: 72.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/2.116, allocations: 66.06 kB / 0.7053 GB, free: 72.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002142/2.116, allocations: 447.8 kB / 0.7057 GB, free: 72.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003413/2.119, allocations: 1.306 MB / 0.707 GB, free: 72.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0036/2.123, allocations: 2.3 MB / 0.7093 GB, free: 71.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/2.127, allocations: 1.759 MB / 0.711 GB, free: 71.32 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.601e-05/2.127, allocations: 7.75 kB / 0.711 GB, free: 71.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01162/2.139, allocations: 4.417 MB / 0.7153 GB, free: 70.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.58e-05/2.139, allocations: 21.47 kB / 0.7153 GB, free: 70.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-05/2.139, allocations: 32.59 kB / 0.7154 GB, free: 70.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/2.14, allocations: 399.4 kB / 0.7157 GB, free: 70.81 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005904/2.146, allocations: 0.7936 MB / 0.7165 GB, free: 70.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007789/2.154, allocations: 7.311 MB / 0.7237 GB, free: 65.62 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004955/2.159, allocations: 170.1 kB / 0.7238 GB, free: 65.61 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007606/2.16, allocations: 149.1 kB / 0.724 GB, free: 65.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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.0007852/2.161, allocations: 313.3 kB / 0.7243 GB, free: 65.49 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00119/2.162, allocations: 368.9 kB / 0.7246 GB, free: 65.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/2.173, allocations: 4.076 MB / 0.7286 GB, free: 64.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-05/2.173, allocations: 25.44 kB / 0.7286 GB, free: 64.83 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.681e-05/2.173, allocations: 10.84 kB / 0.7286 GB, free: 64.83 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.427e-05/2.173, allocations: 13.39 kB / 0.7286 GB, free: 64.83 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02774/2.201, allocations: 9.686 MB / 0.7381 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/2.201, allocations: 2.906 kB / 0.7381 GB, free: 62.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003704/2.204, allocations: 408.9 kB / 0.7385 GB, free: 62.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003537/2.208, allocations: 0.8545 MB / 0.7393 GB, free: 62.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004101/2.208, allocations: 72.23 kB / 0.7394 GB, free: 62.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02087/2.229, allocations: 16.02 MB / 0.755 GB, free: 49.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.452e-06/2.229, allocations: 7.156 kB / 0.755 GB, free: 49.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/2.243, allocations: 6.085 MB / 0.761 GB, free: 46.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0028/2.246, allocations: 0.7451 MB / 0.7617 GB, free: 46 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001096/2.247, allocations: 56.91 kB / 0.7618 GB, free: 45.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003942/2.251, allocations: 145.4 kB / 0.7619 GB, free: 45.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/2.252, allocations: 200.2 kB / 0.7621 GB, free: 45.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003706/2.252, allocations: 79.64 kB / 0.7622 GB, free: 45.87 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007072/2.259, allocations: 2.208 MB / 0.7643 GB, free: 45 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.032e-06/2.259, allocations: 0 / 0.7643 GB, free: 45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009745/2.269, allocations: 1.19 MB / 0.7655 GB, free: 44.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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.02034/2.29, allocations: 7.877 MB / 0.7732 GB, free: 40.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/2.301, allocations: 3.841 MB / 0.7769 GB, free: 38.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/2.301, allocations: 3.062 kB / 0.7769 GB, free: 38.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008462/2.31, allocations: 2.702 MB / 0.7796 GB, free: 37.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008939/2.319, allocations: 0.9248 MB / 0.7805 GB, free: 36.81 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03623/2.355, allocations: 11.58 MB / 0.7918 GB, free: 27 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006763/2.362, allocations: 4.346 MB / 0.796 GB, free: 23.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005071/2.367, allocations: 0.8239 MB / 0.7968 GB, free: 23.18 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005227/2.372, allocations: 2.526 MB / 0.7993 GB, free: 20.84 MB / 442.7 MB Notification: Performance of SimCode: time 2.785e-06/2.372, allocations: 0 / 0.7993 GB, free: 20.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5879/2.96, allocations: 99.91 MB / 0.8969 GB, free: 89.46 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/2.961, allocations: 244.2 kB / 0.8971 GB, free: 89.13 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.635/9.595, allocations: 0 / 0.8971 GB, free: 89.13 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat