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.652/1.652, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.471e-05/2.483e-05, allocations: 8 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2516, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1702/0.4219, allocations: 98.65 MB / 357 MB, free: 11.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.4222, allocations: 83.95 kB / 357.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7215/1.144, allocations: 149 MB / 0.4942 GB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.144, allocations: 0 / 0.4942 GB, free: 1.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006854/1.145, allocations: 171.8 kB / 0.4944 GB, free: 1.012 MB / 346.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.2788/1.423, allocations: 6.176 MB / 0.5004 GB, free: 27.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/1.423, allocations: 11.88 kB / 0.5004 GB, free: 27.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007232/1.431, allocations: 1.055 MB / 0.5014 GB, free: 27.19 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01386/1.445, allocations: 4.695 MB / 0.506 GB, free: 26.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003442/1.445, allocations: 216.3 kB / 0.5062 GB, free: 26.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00204/1.447, allocations: 405.2 kB / 0.5066 GB, free: 26.61 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01773/1.465, allocations: 6.083 MB / 0.5125 GB, free: 26.58 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02251/1.487, allocations: 7.454 MB / 0.5198 GB, free: 25.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002156/1.488, allocations: 12.69 kB / 0.5198 GB, free: 25.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009004/1.488, allocations: 6.438 kB / 0.5198 GB, free: 25.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003173/1.489, allocations: 290.5 kB / 0.5201 GB, free: 25.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06024/1.549, allocations: 25.23 MB / 0.5448 GB, free: 20.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00784/1.557, allocations: 5.161 MB / 0.5498 GB, free: 18.58 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004969/1.562, allocations: 2.195 MB / 0.5519 GB, free: 18.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002565/1.562, allocations: 40.45 kB / 0.552 GB, free: 18.54 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.308e-05/1.562, allocations: 61.89 kB / 0.552 GB, free: 18.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=256): time 5.931e-06/1.562, allocations: 0 / 0.552 GB, free: 18.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=302): time 0.0271/1.589, allocations: 9.246 MB / 0.5611 GB, free: 15.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.096e-05/1.59, allocations: 89.09 kB / 0.5612 GB, free: 14.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004833/1.594, allocations: 2.253 MB / 0.5634 GB, free: 14.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005571/1.595, allocations: 28.2 kB / 0.5634 GB, free: 13.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001818/1.597, allocations: 2.716 MB / 0.566 GB, free: 11.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/1.598, allocations: 0.9914 MB / 0.567 GB, free: 11.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/1.598, allocations: 0 / 0.567 GB, free: 11.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002235/1.599, allocations: 446.8 kB / 0.5674 GB, free: 10.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003024/1.602, allocations: 1.378 MB / 0.5688 GB, free: 10.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003693/1.605, allocations: 2.325 MB / 0.571 GB, free: 8.309 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004048/1.609, allocations: 1.848 MB / 0.5729 GB, free: 7.535 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-05/1.609, allocations: 10.78 kB / 0.5729 GB, free: 7.535 MB / 346.7 MB Notification: Performance of matching and sorting (n=453) (initialization): time 0.01188/1.621, allocations: 4.662 MB / 0.5774 GB, free: 5.746 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/1.621, allocations: 18.31 kB / 0.5774 GB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.267e-05/1.622, allocations: 30.3 kB / 0.5775 GB, free: 5.746 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003743/1.625, allocations: 0.9102 MB / 0.5784 GB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005385/1.631, allocations: 0.7264 MB / 0.5791 GB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02137/1.652, allocations: 14.18 MB / 0.5929 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/1.656, allocations: 81.88 kB / 0.593 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008123/1.657, allocations: 146.3 kB / 0.5931 GB, free: 10.39 MB / 362.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 (383): * Single equations (assignments): 375 * 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,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008591/1.658, allocations: 201.1 kB / 0.5933 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01176/1.67, allocations: 4.109 MB / 0.5973 GB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001415/1.671, allocations: 331.9 kB / 0.5976 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01255/1.684, allocations: 4.352 MB / 0.6019 GB, free: 6.043 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.29e-05/1.684, allocations: 32 kB / 0.6019 GB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.304e-05/1.684, allocations: 12 kB / 0.6019 GB, free: 6 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.159e-05/1.684, allocations: 14.3 kB / 0.602 GB, free: 6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03597/1.72, allocations: 11.2 MB / 0.6129 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.454e-05/1.72, allocations: 8 kB / 0.6129 GB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00372/1.724, allocations: 446.4 kB / 0.6133 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004753/1.729, allocations: 1.07 MB / 0.6144 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004906/1.729, allocations: 33.7 kB / 0.6144 GB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03002/1.759, allocations: 17.55 MB / 0.6315 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.657e-05/1.759, allocations: 11.94 kB / 0.6315 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.776, allocations: 7.181 MB / 0.6386 GB, free: 4.262 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002857/1.779, allocations: 0.7303 MB / 0.6393 GB, free: 3.582 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/1.78, allocations: 30.89 kB / 0.6393 GB, free: 3.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003405/1.784, allocations: 96.94 kB / 0.6394 GB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008234/1.784, allocations: 234 kB / 0.6396 GB, free: 3.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003152/1.785, allocations: 87.75 kB / 0.6397 GB, free: 3.258 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004224/1.789, allocations: 1.675 MB / 0.6413 GB, free: 1.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.82e-07/1.789, allocations: 2.812 kB / 0.6413 GB, free: 1.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0069/1.796, allocations: 1.056 MB / 0.6424 GB, free: 0.6992 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 (221): * Single equations (assignments): 214 * 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.307/2.103, allocations: 9.937 MB / 0.6521 GB, free: 64.42 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01065/2.114, allocations: 4.692 MB / 0.6567 GB, free: 63.51 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/2.114, allocations: 2.375 kB / 0.6567 GB, free: 63.51 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007607/2.121, allocations: 3.09 MB / 0.6597 GB, free: 62.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005907/2.127, allocations: 0.6703 MB / 0.6603 GB, free: 62.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03267/2.16, allocations: 11.38 MB / 0.6714 GB, free: 60.29 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007164/2.167, allocations: 4.221 MB / 0.6756 GB, free: 59.44 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005429/2.173, allocations: 2.446 MB / 0.678 GB, free: 59.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.634e-06/2.173, allocations: 0 / 0.678 GB, free: 59.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.061/7.234, allocations: 342 MB / 1.012 GB, free: 55.11 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