Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.149e-05/2.174e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3199, allocations: 44.5 MB / 294.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2168/0.5368, allocations: 123.8 MB / 418 MB, free: 5.984 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003527/0.5372, allocations: 87.95 kB / 418.1 MB, free: 5.898 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7318/1.269, allocations: 122 MB / 0.5274 GB, free: 12.01 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.288e-05/1.269, allocations: 0 / 0.5274 GB, free: 12.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0006174/1.27, allocations: 139.8 kB / 0.5275 GB, free: 11.88 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: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.02068/1.29, allocations: 5.079 MB / 0.5325 GB, free: 6.727 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/1.29, allocations: 12.03 kB / 0.5325 GB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007806/1.298, allocations: 0.9999 MB / 0.5335 GB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01718/1.316, allocations: 4.557 MB / 0.5379 GB, free: 1.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003735/1.316, allocations: 172 kB / 0.5381 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002195/1.318, allocations: 319.9 kB / 0.5384 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01894/1.337, allocations: 5.067 MB / 0.5434 GB, free: 11.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02454/1.362, allocations: 6.024 MB / 0.5492 GB, free: 5.285 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003949/1.362, allocations: 15.83 kB / 0.5492 GB, free: 5.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001852/1.364, allocations: 4 kB / 0.5493 GB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004532/1.365, allocations: 246.6 kB / 0.5495 GB, free: 5.023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3567/1.721, allocations: 21.4 MB / 0.5704 GB, free: 40.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/1.733, allocations: 8.141 MB / 0.5783 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005169/1.738, allocations: 2.013 MB / 0.5803 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0205/1.759, allocations: 6.102 MB / 0.5863 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.77e-05/1.759, allocations: 59.41 kB / 0.5863 GB, free: 33.72 MB / 378.7 MB Notification: Performance of pre-optimization done (n=228): time 6.031e-06/1.759, allocations: 0 / 0.5863 GB, free: 33.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=255): time 0.03046/1.789, allocations: 8.638 MB / 0.5948 GB, free: 32.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/1.79, allocations: 79.3 kB / 0.5948 GB, free: 32.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00633/1.796, allocations: 2.187 MB / 0.597 GB, free: 31.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005979/1.797, allocations: 29.3 kB / 0.597 GB, free: 31.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00205/1.799, allocations: 2.343 MB / 0.5993 GB, free: 30.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001262/1.8, allocations: 0.8426 MB / 0.6001 GB, free: 30.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003491/1.8, allocations: 0 / 0.6001 GB, free: 30.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002711/1.801, allocations: 441.2 kB / 0.6005 GB, free: 30.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003307/1.804, allocations: 1.255 MB / 0.6018 GB, free: 30.1 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00419/1.808, allocations: 2.213 MB / 0.6039 GB, free: 28.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005445/1.814, allocations: 1.812 MB / 0.6057 GB, free: 28.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.024e-05/1.814, allocations: 11.2 kB / 0.6057 GB, free: 28.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01389/1.828, allocations: 4.352 MB / 0.6099 GB, free: 28.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.279e-05/1.828, allocations: 22.16 kB / 0.61 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.849e-05/1.828, allocations: 30.38 kB / 0.61 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00299/1.831, allocations: 0.7175 MB / 0.6107 GB, free: 28.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005855/1.837, allocations: 0.752 MB / 0.6114 GB, free: 28.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01413/1.851, allocations: 9.332 MB / 0.6205 GB, free: 21.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004682/1.856, allocations: 128.4 kB / 0.6207 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008742/1.857, allocations: 145.9 kB / 0.6208 GB, free: 21.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (379): * 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: 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 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001116/1.858, allocations: 200.1 kB / 0.621 GB, free: 21.73 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01181/1.87, allocations: 3.826 MB / 0.6247 GB, free: 20.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.871, allocations: 317.1 kB / 0.625 GB, free: 19.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01324/1.884, allocations: 4.106 MB / 0.629 GB, free: 18.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.319e-05/1.884, allocations: 24.44 kB / 0.6291 GB, free: 18.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.649e-05/1.885, allocations: 9.844 kB / 0.6291 GB, free: 18.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-05/1.885, allocations: 11.3 kB / 0.6291 GB, free: 18.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02644/1.911, allocations: 8.415 MB / 0.6373 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.21e-05/1.911, allocations: 5.938 kB / 0.6373 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003747/1.915, allocations: 420.3 kB / 0.6377 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004381/1.919, allocations: 0.9336 MB / 0.6386 GB, free: 14.55 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005956/1.92, allocations: 38.12 kB / 0.6387 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02216/1.942, allocations: 15.33 MB / 0.6536 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/1.942, allocations: 3.969 kB / 0.6536 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/1.959, allocations: 6.244 MB / 0.6597 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002941/1.962, allocations: 0.681 MB / 0.6604 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001492/1.963, allocations: 19.05 kB / 0.6604 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003938/1.967, allocations: 118.5 kB / 0.6605 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/1.968, allocations: 188.1 kB / 0.6607 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003971/1.969, allocations: 71.94 kB / 0.6608 GB, free: 12.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005026/1.974, allocations: 1.614 MB / 0.6623 GB, free: 11.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.974, allocations: 0 / 0.6623 GB, free: 11.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006844/1.981, allocations: 0.9443 MB / 0.6633 GB, free: 10.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 189 * 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 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01985/2, allocations: 8.137 MB / 0.6712 GB, free: 2.934 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01123/2.012, allocations: 3.946 MB / 0.6751 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/2.012, allocations: 0 / 0.6751 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008023/2.02, allocations: 2.677 MB / 0.6777 GB, free: 12.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006735/2.027, allocations: 0.6761 MB / 0.6783 GB, free: 12.24 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03554/2.062, allocations: 9.224 MB / 0.6874 GB, free: 4.145 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008087/2.07, allocations: 3.43 MB / 0.6907 GB, free: 1.555 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007311/2.078, allocations: 2.149 MB / 0.6928 GB, free: 15.83 MB / 426.7 MB Notification: Performance of SimCode: time 2.324e-06/2.078, allocations: 0 / 0.6928 GB, free: 15.83 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.127/7.204, allocations: 247.4 MB / 0.9344 GB, free: 103.6 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat