Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.946e-05/2.963e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3027, allocations: 44.5 MB / 294.2 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1858/0.4885, allocations: 103.5 MB / 397.7 MB, free: 10.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003408/0.489, allocations: 87.95 kB / 397.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.47/0.9589, allocations: 50.77 MB / 448.5 MB, free: 93.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.959, allocations: 0 / 448.5 MB, free: 93.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003264/0.9593, allocations: 61.44 kB / 448.6 MB, free: 93.06 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.008185/0.9675, allocations: 2.44 MB / 451 MB, free: 91.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.9676, allocations: 7.719 kB / 451 MB, free: 91.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001979/0.9696, allocations: 334.9 kB / 451.4 MB, free: 91.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006461/0.9761, allocations: 1.77 MB / 453.1 MB, free: 90.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.9763, allocations: 62.03 kB / 453.2 MB, free: 90.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000859/0.9772, allocations: 121.8 kB / 453.3 MB, free: 90.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005935/0.9831, allocations: 1.952 MB / 455.3 MB, free: 89.87 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007771/0.991, allocations: 2.309 MB / 457.6 MB, free: 88.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003052/0.9913, allocations: 11.75 kB / 457.6 MB, free: 88.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009882/0.9923, allocations: 0 / 457.6 MB, free: 88.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002056/0.9926, allocations: 90.47 kB / 457.7 MB, free: 88.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02613/1.019, allocations: 7.942 MB / 465.6 MB, free: 82.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01343/1.032, allocations: 1.531 MB / 467.1 MB, free: 81.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002835/1.035, allocations: 0.861 MB / 468 MB, free: 80.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005823/1.036, allocations: 149.9 kB / 468.1 MB, free: 80.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.036, allocations: 44.53 kB / 468.2 MB, free: 80.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 6.412e-06/1.036, allocations: 4 kB / 468.2 MB, free: 80.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.04457/1.08, allocations: 4.814 MB / 473 MB, free: 75.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/1.081, allocations: 68.67 kB / 473.1 MB, free: 75.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005047/1.086, allocations: 1.641 MB / 474.7 MB, free: 73.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004088/1.086, allocations: 25.7 kB / 474.7 MB, free: 73.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008633/1.087, allocations: 1.024 MB / 475.8 MB, free: 72.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000652/1.088, allocations: 453.2 kB / 476.2 MB, free: 72.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/1.088, allocations: 4 kB / 476.2 MB, free: 72.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001196/1.088, allocations: 358.8 kB / 476.6 MB, free: 71.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/1.09, allocations: 0.6872 MB / 477.2 MB, free: 71.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001757/1.091, allocations: 0.9322 MB / 478.2 MB, free: 70.11 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/1.093, allocations: 0.8222 MB / 479 MB, free: 69.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.13e-05/1.093, allocations: 7.938 kB / 479 MB, free: 69.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.006716/1.1, allocations: 2.455 MB / 481.5 MB, free: 66.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.508e-05/1.1, allocations: 33.7 kB / 481.5 MB, free: 66.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.525e-05/1.1, allocations: 8 kB / 481.5 MB, free: 66.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003495/1.104, allocations: 0.8265 MB / 482.3 MB, free: 65.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002166/1.106, allocations: 267.6 kB / 482.6 MB, free: 65.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01659/1.123, allocations: 8.913 MB / 491.5 MB, free: 56.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002256/1.125, allocations: 71.97 kB / 491.6 MB, free: 56.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002518/1.125, allocations: 51.98 kB / 491.6 MB, free: 56.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003545/1.126, allocations: 132.5 kB / 491.8 MB, free: 56.27 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005685/1.131, allocations: 2.185 MB / 493.9 MB, free: 54.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007902/1.132, allocations: 193.6 kB / 494.1 MB, free: 53.88 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006091/1.138, allocations: 2.344 MB / 496.5 MB, free: 51.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.108e-05/1.138, allocations: 12 kB / 496.5 MB, free: 51.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/1.138, allocations: 8 kB / 496.5 MB, free: 51.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.773e-05/1.138, allocations: 11.92 kB / 496.5 MB, free: 51.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01232/1.151, allocations: 4.606 MB / 0.4894 GB, free: 46.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.531e-05/1.151, allocations: 4 kB / 0.4894 GB, free: 46.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002036/1.153, allocations: 215.7 kB / 0.4896 GB, free: 46.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003104/1.156, allocations: 0.6901 MB / 0.4903 GB, free: 45.9 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/1.156, allocations: 15.98 kB / 0.4903 GB, free: 45.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/1.168, allocations: 8.133 MB / 0.4982 GB, free: 37.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.926e-06/1.168, allocations: 7.969 kB / 0.4982 GB, free: 37.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007678/1.176, allocations: 3.434 MB / 0.5016 GB, free: 33.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/1.178, allocations: 466.6 kB / 0.502 GB, free: 33.42 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004659/1.178, allocations: 4 kB / 0.502 GB, free: 33.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/1.18, allocations: 71.89 kB / 0.5021 GB, free: 33.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004038/1.18, allocations: 117 kB / 0.5022 GB, free: 33.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/1.18, allocations: 39.98 kB / 0.5022 GB, free: 33.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002369/1.183, allocations: 1.258 MB / 0.5035 GB, free: 31.94 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.183, allocations: 0 / 0.5035 GB, free: 31.94 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003025/1.186, allocations: 0.5116 MB / 0.504 GB, free: 31.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009009/1.195, allocations: 4.676 MB / 0.5085 GB, free: 26.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005663/1.201, allocations: 2.351 MB / 0.5108 GB, free: 24.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.201, allocations: 0 / 0.5108 GB, free: 24.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00384/1.205, allocations: 1.623 MB / 0.5124 GB, free: 22.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/1.208, allocations: 329.7 kB / 0.5127 GB, free: 22.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01257/1.22, allocations: 4.844 MB / 0.5175 GB, free: 17.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00193/1.222, allocations: 1.986 MB / 0.5194 GB, free: 15.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001981/1.224, allocations: 0.9562 MB / 0.5203 GB, free: 14.43 MB / 362.7 MB Notification: Performance of SimCode: time 1.553e-06/1.224, allocations: 0 / 0.5203 GB, free: 14.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.556/5.78, allocations: 73.18 MB / 0.5918 GB, free: 110.3 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat does not exist to compare? outputFormat=mat