Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.794/1.794, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.103e-05/3.122e-05, allocations: 0 / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.08979, allocations: 44.51 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.5652, allocations: 119.6 MB / 419.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.5655, allocations: 86.64 kB / 419.6 MB, free: 6.254 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7298/1.295, allocations: 115.4 MB / 0.5225 GB, free: 62.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/1.295, allocations: 3.344 kB / 0.5225 GB, free: 62.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005858/1.296, allocations: 134.5 kB / 0.5226 GB, free: 62.18 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.02207/1.318, allocations: 4.852 MB / 0.5273 GB, free: 60.71 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/1.318, allocations: 10.27 kB / 0.5274 GB, free: 60.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003301/1.321, allocations: 0.6984 MB / 0.528 GB, free: 60.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007859/1.329, allocations: 0.9432 MB / 0.529 GB, free: 60.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01745/1.347, allocations: 4.374 MB / 0.5332 GB, free: 59.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005954/1.348, allocations: 383.8 kB / 0.5336 GB, free: 59.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002323/1.35, allocations: 0.5014 MB / 0.5341 GB, free: 59.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02159/1.371, allocations: 6.522 MB / 0.5405 GB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002558/1.372, allocations: 15.25 kB / 0.5405 GB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001415/1.373, allocations: 216.2 kB / 0.5407 GB, free: 58.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002733/1.373, allocations: 230.5 kB / 0.5409 GB, free: 58.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01625/1.39, allocations: 5.21 MB / 0.546 GB, free: 58.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05534/1.445, allocations: 21.03 MB / 0.5665 GB, free: 54.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/1.457, allocations: 8.436 MB / 0.5748 GB, free: 48.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004852/1.462, allocations: 1.99 MB / 0.5767 GB, free: 48.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/1.479, allocations: 5.965 MB / 0.5825 GB, free: 45.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/1.479, allocations: 55.69 kB / 0.5826 GB, free: 45.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 4.829e-06/1.479, allocations: 0 / 0.5826 GB, free: 45.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=229): time 0.0313/1.51, allocations: 9.229 MB / 0.5916 GB, free: 41.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/1.51, allocations: 79.94 kB / 0.5917 GB, free: 41.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005928/1.516, allocations: 2.477 MB / 0.5941 GB, free: 40.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005431/1.517, allocations: 67.33 kB / 0.5942 GB, free: 40.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001704/1.518, allocations: 2.183 MB / 0.5963 GB, free: 39.08 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/1.519, allocations: 0.7904 MB / 0.5971 GB, free: 38.47 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002904/1.52, allocations: 58.88 kB / 0.5971 GB, free: 38.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/1.52, allocations: 425.5 kB / 0.5975 GB, free: 38.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003032/1.523, allocations: 1.237 MB / 0.5987 GB, free: 37.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003846/1.527, allocations: 2.11 MB / 0.6008 GB, free: 36.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003964/1.531, allocations: 1.622 MB / 0.6024 GB, free: 35.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.002e-05/1.531, allocations: 11.52 kB / 0.6024 GB, free: 35.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01156/1.542, allocations: 4.255 MB / 0.6065 GB, free: 33.86 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.926e-05/1.543, allocations: 23.84 kB / 0.6066 GB, free: 33.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.664e-05/1.543, allocations: 27 kB / 0.6066 GB, free: 33.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002863/1.545, allocations: 0.715 MB / 0.6073 GB, free: 33.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005127/1.551, allocations: 0.6845 MB / 0.608 GB, free: 33.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01337/1.564, allocations: 9.384 MB / 0.6171 GB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004408/1.569, allocations: 182.7 kB / 0.6173 GB, free: 26.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007144/1.569, allocations: 131.1 kB / 0.6174 GB, free: 26.58 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 334 * 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%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007066/1.57, allocations: 284.7 kB / 0.6177 GB, free: 26.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009984/1.571, allocations: 321.6 kB / 0.618 GB, free: 26.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.582, allocations: 3.973 MB / 0.6219 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.037e-05/1.582, allocations: 20.97 kB / 0.6219 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.138e-05/1.582, allocations: 10.53 kB / 0.6219 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.658e-05/1.582, allocations: 11.62 kB / 0.6219 GB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02359/1.606, allocations: 8.591 MB / 0.6303 GB, free: 20.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.312e-05/1.606, allocations: 3.906 kB / 0.6303 GB, free: 20.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003304/1.609, allocations: 373.6 kB / 0.6307 GB, free: 20.94 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004242/1.613, allocations: 0.9343 MB / 0.6316 GB, free: 20.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005432/1.614, allocations: 56.64 kB / 0.6316 GB, free: 20.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0209/1.635, allocations: 15.46 MB / 0.6467 GB, free: 5.645 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.604e-06/1.635, allocations: 9.156 kB / 0.6467 GB, free: 5.641 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.649, allocations: 5.866 MB / 0.6525 GB, free: 212 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002842/1.652, allocations: 0.6614 MB / 0.6531 GB, free: 15.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001297/1.653, allocations: 55.7 kB / 0.6532 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003714/1.657, allocations: 144.8 kB / 0.6533 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008839/1.658, allocations: 178.5 kB / 0.6535 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002827/1.658, allocations: 63.7 kB / 0.6535 GB, free: 15.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005509/1.663, allocations: 1.881 MB / 0.6554 GB, free: 13.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.664, allocations: 0 / 0.6554 GB, free: 13.57 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00617/1.67, allocations: 1.011 MB / 0.6564 GB, free: 12.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 168 * 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,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01765/1.687, allocations: 7.556 MB / 0.6637 GB, free: 5.527 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01074/1.698, allocations: 3.918 MB / 0.6676 GB, free: 1.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/1.698, allocations: 4 kB / 0.6676 GB, free: 1.816 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2883/1.987, allocations: 2.641 MB / 0.6701 GB, free: 70.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006635/1.993, allocations: 0.7762 MB / 0.6709 GB, free: 70.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03995/2.033, allocations: 9.089 MB / 0.6798 GB, free: 68.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009057/2.042, allocations: 3.314 MB / 0.683 GB, free: 67.58 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006003/2.048, allocations: 1.979 MB / 0.6849 GB, free: 67.58 MB / 426.7 MB Notification: Performance of SimCode: time 1.873e-06/2.048, allocations: 0 / 0.6849 GB, free: 67.58 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.026/7.074, allocations: 237.2 MB / 0.9165 GB, free: 58.69 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat