Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.647/1.647, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.368e-05, allocations: 7.984 kB / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2547, allocations: 38.77 MB / 263.9 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2388/0.4935, allocations: 99.33 MB / 363.2 MB, free: 6.273 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004769/0.494, allocations: 87.94 kB / 363.3 MB, free: 6.188 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.056/1.55, allocations: 150.9 MB / 0.5021 GB, free: 43.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.55, allocations: 0 / 0.5021 GB, free: 43.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007602/1.551, allocations: 166.8 kB / 0.5022 GB, free: 43.64 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02506/1.576, allocations: 6.191 MB / 0.5083 GB, free: 41.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/1.576, allocations: 11.12 kB / 0.5083 GB, free: 41.8 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002969/1.579, allocations: 0.8967 MB / 0.5092 GB, free: 41.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006624/1.586, allocations: 1.054 MB / 0.5102 GB, free: 41.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01328/1.599, allocations: 4.698 MB / 0.5148 GB, free: 40.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004648/1.6, allocations: 0.49 MB / 0.5153 GB, free: 40.56 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002158/1.602, allocations: 0.6456 MB / 0.5159 GB, free: 40.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02268/1.625, allocations: 8.34 MB / 0.5241 GB, free: 39.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002256/1.625, allocations: 14.02 kB / 0.5241 GB, free: 39.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001115/1.626, allocations: 275.2 kB / 0.5243 GB, free: 39.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000313/1.626, allocations: 290.7 kB / 0.5246 GB, free: 39.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0187/1.645, allocations: 6.389 MB / 0.5308 GB, free: 39.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05911/1.704, allocations: 26.53 MB / 0.5568 GB, free: 32.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007768/1.712, allocations: 5.232 MB / 0.5619 GB, free: 28.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004845/1.717, allocations: 2.26 MB / 0.5641 GB, free: 27.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/1.717, allocations: 38.55 kB / 0.5641 GB, free: 27.61 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.719e-05/1.717, allocations: 59.19 kB / 0.5642 GB, free: 27.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=254): time 5.33e-06/1.717, allocations: 3.188 kB / 0.5642 GB, free: 27.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02664/1.744, allocations: 9.797 MB / 0.5737 GB, free: 22.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/1.744, allocations: 88 kB / 0.5738 GB, free: 22.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005578/1.75, allocations: 2.809 MB / 0.5766 GB, free: 21.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005188/1.75, allocations: 76.77 kB / 0.5766 GB, free: 21.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/1.752, allocations: 2.668 MB / 0.5792 GB, free: 19.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001064/1.753, allocations: 1.023 MB / 0.5802 GB, free: 18.79 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002794/1.753, allocations: 69.59 kB / 0.5803 GB, free: 18.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002037/1.753, allocations: 453.4 kB / 0.5807 GB, free: 18.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003226/1.757, allocations: 1.44 MB / 0.5821 GB, free: 17.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/1.76, allocations: 2.39 MB / 0.5845 GB, free: 15.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004132/1.765, allocations: 1.924 MB / 0.5864 GB, free: 15.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/1.765, allocations: 7.188 kB / 0.5864 GB, free: 15.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01189/1.776, allocations: 4.939 MB / 0.5912 GB, free: 13.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.393e-05/1.777, allocations: 18.84 kB / 0.5912 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.696e-05/1.777, allocations: 32.11 kB / 0.5912 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/1.78, allocations: 0.9393 MB / 0.5922 GB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005288/1.786, allocations: 0.7339 MB / 0.5929 GB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02526/1.811, allocations: 14.8 MB / 0.6073 GB, free: 14.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004452/1.815, allocations: 154.3 kB / 0.6075 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004179/1.816, allocations: 147.9 kB / 0.6076 GB, free: 14.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 134 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (381): * Single equations (assignments): 373 * 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: 6 * 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: 6 {(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 18,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008109/1.817, allocations: 316.5 kB / 0.6079 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008329/1.818, allocations: 367.5 kB / 0.6083 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01221/1.83, allocations: 4.648 MB / 0.6128 GB, free: 9.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/1.83, allocations: 28 kB / 0.6128 GB, free: 9.293 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.882e-05/1.83, allocations: 16 kB / 0.6128 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.532e-05/1.83, allocations: 15.7 kB / 0.6129 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03094/1.861, allocations: 12.06 MB / 0.6246 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-05/1.861, allocations: 4 kB / 0.6246 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003477/1.864, allocations: 437.9 kB / 0.6251 GB, free: 14.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004597/1.869, allocations: 1.086 MB / 0.6261 GB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002836/1.869, allocations: 74.84 kB / 0.6262 GB, free: 13.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2949/2.164, allocations: 18.2 MB / 0.644 GB, free: 62.43 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/2.164, allocations: 15.83 kB / 0.644 GB, free: 62.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/2.179, allocations: 7.516 MB / 0.6513 GB, free: 60.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002708/2.182, allocations: 0.7861 MB / 0.6521 GB, free: 60.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/2.183, allocations: 69.59 kB / 0.6522 GB, free: 60.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003728/2.187, allocations: 148.5 kB / 0.6523 GB, free: 60.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007917/2.188, allocations: 230.5 kB / 0.6525 GB, free: 60.54 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002709/2.188, allocations: 89.03 kB / 0.6526 GB, free: 60.54 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00495/2.193, allocations: 2.137 MB / 0.6547 GB, free: 60.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.01e-07/2.193, allocations: 2.875 kB / 0.6547 GB, free: 60.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006675/2.2, allocations: 1.205 MB / 0.6559 GB, free: 60.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.port_n.Phi.re,smrM.stator.port_n.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.port_n.Phi.re,smr3.stator.port_n.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.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 (220): * Single equations (assignments): 213 * 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 {(4,93.8%) 18,(1,100.0%) 4,(4,93.8%) 18,(4,93.8%) 32,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01716/2.217, allocations: 10.4 MB / 0.666 GB, free: 56.24 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/2.229, allocations: 4.803 MB / 0.6707 GB, free: 55.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/2.229, allocations: 6.75 kB / 0.6707 GB, free: 55.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008246/2.237, allocations: 3.135 MB / 0.6738 GB, free: 54.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006916/2.244, allocations: 0.9414 MB / 0.6747 GB, free: 54.5 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03302/2.277, allocations: 11.67 MB / 0.6861 GB, free: 52.06 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007109/2.284, allocations: 4.223 MB / 0.6902 GB, free: 51.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005317/2.29, allocations: 2.474 MB / 0.6926 GB, free: 51.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/2.29, allocations: 0 / 0.6926 GB, free: 51.2 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.536/7.825, allocations: 346.5 MB / 1.031 GB, free: 31.21 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat