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.729/1.729, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.441e-05/3.461e-05, allocations: 11.98 kB / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2583, allocations: 38.77 MB / 263.8 MB, free: 9.777 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.4307, allocations: 99.32 MB / 363.2 MB, free: 6.297 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002721/0.431, allocations: 83.95 kB / 363.2 MB, free: 6.215 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.004/1.435, allocations: 150.9 MB / 0.5021 GB, free: 43.41 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.435, allocations: 0 / 0.5021 GB, free: 43.41 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006245/1.436, allocations: 165.7 kB / 0.5022 GB, free: 43.39 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.02698/1.463, allocations: 6.194 MB / 0.5083 GB, free: 41.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/1.463, allocations: 11.5 kB / 0.5083 GB, free: 41.56 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003478/1.467, allocations: 0.8992 MB / 0.5091 GB, free: 41.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007305/1.474, allocations: 1.05 MB / 0.5102 GB, free: 41.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01455/1.489, allocations: 4.696 MB / 0.5148 GB, free: 40.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005874/1.489, allocations: 497 kB / 0.5152 GB, free: 40.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002619/1.492, allocations: 0.6466 MB / 0.5159 GB, free: 40.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02691/1.519, allocations: 8.428 MB / 0.5241 GB, free: 39.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002962/1.519, allocations: 14.97 kB / 0.5241 GB, free: 39.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001899/1.521, allocations: 276 kB / 0.5244 GB, free: 39.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003285/1.521, allocations: 287.6 kB / 0.5246 GB, free: 39.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0207/1.542, allocations: 6.473 MB / 0.531 GB, free: 39.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06288/1.605, allocations: 26.53 MB / 0.5569 GB, free: 31.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008063/1.613, allocations: 5.257 MB / 0.562 GB, free: 28.24 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005067/1.618, allocations: 2.264 MB / 0.5642 GB, free: 27.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000224/1.618, allocations: 39.75 kB / 0.5643 GB, free: 27.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.669e-05/1.619, allocations: 61.69 kB / 0.5643 GB, free: 27.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=254): time 5.541e-06/1.619, allocations: 4 kB / 0.5643 GB, free: 27.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=300): time 0.02718/1.646, allocations: 9.797 MB / 0.5739 GB, free: 22.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/1.646, allocations: 84.78 kB / 0.574 GB, free: 22.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005787/1.652, allocations: 2.807 MB / 0.5767 GB, free: 21.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000545/1.652, allocations: 80.64 kB / 0.5768 GB, free: 21.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001768/1.654, allocations: 2.679 MB / 0.5794 GB, free: 19.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001118/1.655, allocations: 1.018 MB / 0.5804 GB, free: 18.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/1.655, allocations: 71.91 kB / 0.5805 GB, free: 18.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002083/1.656, allocations: 448.6 kB / 0.5809 GB, free: 18.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003371/1.659, allocations: 1.441 MB / 0.5823 GB, free: 17.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003826/1.663, allocations: 2.414 MB / 0.5847 GB, free: 15.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004481/1.667, allocations: 1.919 MB / 0.5865 GB, free: 14.9 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-05/1.667, allocations: 10.19 kB / 0.5865 GB, free: 14.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=451) (initialization): time 0.0126/1.68, allocations: 5.024 MB / 0.5915 GB, free: 12.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/1.68, allocations: 15.75 kB / 0.5915 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.965e-05/1.68, allocations: 29.94 kB / 0.5915 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00391/1.684, allocations: 0.9425 MB / 0.5924 GB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006582/1.691, allocations: 0.7307 MB / 0.5931 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02507/1.716, allocations: 14.73 MB / 0.6075 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00439/1.72, allocations: 148.6 kB / 0.6077 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004662/1.721, allocations: 143.1 kB / 0.6078 GB, free: 13.43 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.0008534/1.722, allocations: 325.3 kB / 0.6081 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009412/1.723, allocations: 367.5 kB / 0.6085 GB, free: 12.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01293/1.735, allocations: 4.648 MB / 0.613 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-05/1.736, allocations: 31.61 kB / 0.613 GB, free: 8.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.56e-05/1.736, allocations: 16 kB / 0.613 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.075e-05/1.736, allocations: 14.86 kB / 0.6131 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03412/1.77, allocations: 12.18 MB / 0.6249 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-05/1.77, allocations: 8.938 kB / 0.625 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003543/1.773, allocations: 436.9 kB / 0.6254 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004783/1.778, allocations: 1.087 MB / 0.6264 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000342/1.779, allocations: 73.95 kB / 0.6265 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.319/2.098, allocations: 18.2 MB / 0.6443 GB, free: 61.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.498e-05/2.098, allocations: 13 kB / 0.6443 GB, free: 61.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0226/2.12, allocations: 7.521 MB / 0.6516 GB, free: 60.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003834/2.124, allocations: 0.7848 MB / 0.6524 GB, free: 60 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00159/2.126, allocations: 65.33 kB / 0.6525 GB, free: 60 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005141/2.131, allocations: 147.1 kB / 0.6526 GB, free: 60 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001248/2.132, allocations: 241.5 kB / 0.6528 GB, free: 60 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004157/2.133, allocations: 90.56 kB / 0.6529 GB, free: 60 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005999/2.139, allocations: 2.143 MB / 0.655 GB, free: 59.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.603e-06/2.139, allocations: 0 / 0.655 GB, free: 59.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006691/2.145, allocations: 1.204 MB / 0.6562 GB, free: 59.83 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.01824/2.164, allocations: 10.37 MB / 0.6663 GB, free: 55.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01213/2.176, allocations: 4.934 MB / 0.6711 GB, free: 54.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/2.176, allocations: 7.875 kB / 0.6711 GB, free: 54.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008237/2.184, allocations: 3.219 MB / 0.6743 GB, free: 53.85 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007483/2.192, allocations: 0.9337 MB / 0.6752 GB, free: 53.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03583/2.228, allocations: 11.7 MB / 0.6866 GB, free: 51.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007626/2.235, allocations: 4.223 MB / 0.6908 GB, free: 50.54 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005589/2.241, allocations: 2.47 MB / 0.6932 GB, free: 50.53 MB / 394.7 MB Notification: Performance of SimCode: time 1.653e-06/2.241, allocations: 0 / 0.6932 GB, free: 50.53 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.688/7.929, allocations: 347.1 MB / 1.032 GB, free: 47 MB / 426.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