Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.166/2.166, allocations: 195 MB / 202.9 MB, free: 6.73 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.819e-05/2.826e-05, allocations: 4.125 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09777, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4839/0.5817, allocations: 103.4 MB / 397.8 MB, free: 416 kB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.5821, allocations: 91.53 kB / 397.8 MB, free: 400 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2774/0.8595, allocations: 50.78 MB / 448.6 MB, free: 7.191 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.8595, allocations: 0 / 448.6 MB, free: 7.191 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003202/0.8599, allocations: 55.94 kB / 448.7 MB, free: 7.137 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.009739/0.8696, allocations: 2.441 MB / 451.1 MB, free: 4.625 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.8697, allocations: 8.031 kB / 451.1 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001985/0.8717, allocations: 332.3 kB / 451.5 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007072/0.8788, allocations: 1.759 MB / 453.2 MB, free: 2.477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.879, allocations: 64 kB / 453.3 MB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008281/0.8798, allocations: 132 kB / 453.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006867/0.8867, allocations: 1.941 MB / 455.3 MB, free: 344 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00806/0.8948, allocations: 2.315 MB / 457.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.895, allocations: 4 kB / 457.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003051/0.8953, allocations: 7.938 kB / 457.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001965/0.8955, allocations: 87.89 kB / 457.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02602/0.9216, allocations: 7.93 MB / 465.7 MB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005058/0.9267, allocations: 1.555 MB / 467.2 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002581/0.9293, allocations: 0.8605 MB / 468.1 MB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005364/0.9299, allocations: 146.3 kB / 468.2 MB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.85e-05/0.93, allocations: 51.88 kB / 468.3 MB, free: 2.988 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 4.839e-06/0.93, allocations: 0 / 468.3 MB, free: 2.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=135): time 0.01766/0.9477, allocations: 4.807 MB / 473.1 MB, free: 14.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.9478, allocations: 68.72 kB / 473.2 MB, free: 14.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004513/0.9523, allocations: 1.637 MB / 474.8 MB, free: 12.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003929/0.9527, allocations: 29.7 kB / 474.8 MB, free: 12.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001444/0.9542, allocations: 1.107 MB / 475.9 MB, free: 11.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007777/0.955, allocations: 445.3 kB / 476.4 MB, free: 10.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/0.9552, allocations: 3.938 kB / 476.4 MB, free: 10.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002161/0.9554, allocations: 365.9 kB / 476.7 MB, free: 10.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001938/0.9573, allocations: 0.6833 MB / 477.4 MB, free: 9.746 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002205/0.9596, allocations: 0.9354 MB / 478.4 MB, free: 8.715 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002375/0.962, allocations: 0.8222 MB / 479.2 MB, free: 7.898 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.962, allocations: 4 kB / 479.2 MB, free: 7.895 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.008878/0.9709, allocations: 2.578 MB / 481.8 MB, free: 5.301 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.205e-05/0.971, allocations: 37.66 kB / 481.8 MB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-05/0.9711, allocations: 12.25 kB / 481.8 MB, free: 5.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004276/0.9753, allocations: 0.8301 MB / 482.6 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002544/0.9779, allocations: 275.6 kB / 482.9 MB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02144/0.9994, allocations: 8.886 MB / 491.8 MB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/1.002, allocations: 72.08 kB / 491.9 MB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/1.002, allocations: 63.94 kB / 491.9 MB, free: 10.88 MB / 394.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.0004162/1.003, allocations: 132.5 kB / 492.1 MB, free: 10.74 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007236/1.01, allocations: 2.185 MB / 494.2 MB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007897/1.011, allocations: 189.7 kB / 494.4 MB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00784/1.018, allocations: 2.355 MB / 496.8 MB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.229e-05/1.019, allocations: 12 kB / 496.8 MB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/1.019, allocations: 8 kB / 496.8 MB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.479e-05/1.019, allocations: 3.984 kB / 496.8 MB, free: 5.941 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/1.034, allocations: 4.602 MB / 0.4897 GB, free: 1.262 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.092e-05/1.034, allocations: 7.984 kB / 0.4897 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/1.037, allocations: 211.9 kB / 0.4899 GB, free: 1.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003834/1.04, allocations: 0.6979 MB / 0.4905 GB, free: 344 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000279/1.041, allocations: 19.97 kB / 0.4906 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2996/1.34, allocations: 8.114 MB / 0.4985 GB, free: 95.05 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/1.34, allocations: 7.406 kB / 0.4985 GB, free: 95.05 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009801/1.35, allocations: 3.434 MB / 0.5019 GB, free: 94.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001777/1.352, allocations: 458.3 kB / 0.5023 GB, free: 94.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006104/1.353, allocations: 11.25 kB / 0.5023 GB, free: 94.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002047/1.355, allocations: 72.41 kB / 0.5024 GB, free: 94.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005455/1.355, allocations: 110.9 kB / 0.5025 GB, free: 94.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002004/1.355, allocations: 40.06 kB / 0.5025 GB, free: 94.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003393/1.359, allocations: 1.254 MB / 0.5037 GB, free: 94.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.41e-07/1.359, allocations: 0 / 0.5037 GB, free: 94.49 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003664/1.363, allocations: 0.5214 MB / 0.5042 GB, free: 94.49 MB / 394.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.01117/1.374, allocations: 4.699 MB / 0.5088 GB, free: 93.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006529/1.38, allocations: 2.339 MB / 0.5111 GB, free: 92.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.38, allocations: 0 / 0.5111 GB, free: 92.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004848/1.385, allocations: 1.618 MB / 0.5127 GB, free: 92.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003582/1.389, allocations: 330.4 kB / 0.513 GB, free: 92.27 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/1.403, allocations: 4.797 MB / 0.5177 GB, free: 91.31 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/1.405, allocations: 2.002 MB / 0.5197 GB, free: 90.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002387/1.408, allocations: 379.1 kB / 0.52 GB, free: 90.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002129/1.41, allocations: 0.9492 MB / 0.5209 GB, free: 90.5 MB / 394.7 MB Notification: Performance of SimCode: time 1.152e-06/1.41, allocations: 0 / 0.5209 GB, free: 90.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1333/1.543, allocations: 44 MB / 0.5639 GB, free: 72.03 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002092/1.543, allocations: 221.5 kB / 0.5641 GB, free: 71.74 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.73/6.273, allocations: 0 / 0.5641 GB, free: 71.74 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.mat does not exist to compare? outputFormat=mat