Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.733/1.733, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.461e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2717, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.17/0.4417, allocations: 99.98 MB / 358.3 MB, free: 9.875 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/0.4421, allocations: 83.95 kB / 358.4 MB, free: 9.793 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4715/0.9136, allocations: 64.65 MB / 423 MB, free: 53.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.9136, allocations: 0 / 423 MB, free: 53.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0004237/0.9141, allocations: 87.81 kB / 423.1 MB, free: 53.49 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 795 * Number of variables: 795 Notification: Performance of Generate backend data structure: time 0.01261/0.9267, allocations: 3.253 MB / 426.4 MB, free: 50.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/0.9268, allocations: 8.031 kB / 426.4 MB, free: 50.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002496/0.9293, allocations: 447.1 kB / 426.8 MB, free: 49.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00702/0.9363, allocations: 2.327 MB / 429.1 MB, free: 47.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002228/0.9366, allocations: 100 kB / 429.2 MB, free: 47.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001307/0.9379, allocations: 183.9 kB / 429.4 MB, free: 47.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009248/0.9472, allocations: 3.284 MB / 432.7 MB, free: 43.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01069/0.9579, allocations: 3.783 MB / 436.5 MB, free: 39.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001318/0.9581, allocations: 15.92 kB / 436.5 MB, free: 39.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004426/0.9586, allocations: 4 kB / 436.5 MB, free: 39.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.9587, allocations: 126 kB / 436.6 MB, free: 39.74 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03077/0.9895, allocations: 12.95 MB / 449.6 MB, free: 26.49 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/0.994, allocations: 2.81 MB / 452.4 MB, free: 23.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00309/0.9972, allocations: 1.461 MB / 453.9 MB, free: 22.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004634/0.9977, allocations: 151 kB / 454 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.9977, allocations: 52.56 kB / 454.1 MB, free: 21.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=167): time 4.899e-06/0.9977, allocations: 3.984 kB / 454.1 MB, free: 21.83 MB / 314.7 MB Notification: Performance of matching and sorting (n=183): time 0.01698/1.015, allocations: 6.305 MB / 460.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.854e-05/1.015, allocations: 73.41 kB / 460.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003386/1.018, allocations: 1.688 MB / 462.1 MB, free: 13.65 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004527/1.019, allocations: 25.7 kB / 462.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009361/1.02, allocations: 1.37 MB / 463.5 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006285/1.02, allocations: 0.5927 MB / 464.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/1.02, allocations: 0 / 464.1 MB, free: 11.63 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001414/1.021, allocations: 390.7 kB / 464.5 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002108/1.023, allocations: 1.05 MB / 465.5 MB, free: 10.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/1.025, allocations: 1.433 MB / 467 MB, free: 8.598 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002484/1.028, allocations: 1.263 MB / 468.2 MB, free: 7.336 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.125e-05/1.028, allocations: 8 kB / 468.2 MB, free: 7.328 MB / 314.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.007202/1.035, allocations: 3.153 MB / 471.4 MB, free: 4.145 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/1.035, allocations: 12 kB / 471.4 MB, free: 4.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-05/1.035, allocations: 12 kB / 471.4 MB, free: 4.121 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002926/1.038, allocations: 0.7827 MB / 472.2 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003461/1.041, allocations: 459.3 kB / 472.7 MB, free: 2.867 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/1.056, allocations: 10.38 MB / 483 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/1.059, allocations: 91.89 kB / 483.1 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003529/1.059, allocations: 75.98 kB / 483.2 MB, free: 7.742 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 207 * 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: 5 * 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: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005332/1.06, allocations: 161.9 kB / 483.4 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008174/1.068, allocations: 2.922 MB / 486.3 MB, free: 4.621 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009953/1.069, allocations: 229.1 kB / 486.5 MB, free: 4.395 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008546/1.078, allocations: 3.104 MB / 489.6 MB, free: 1.254 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.573e-05/1.078, allocations: 16 kB / 489.6 MB, free: 1.238 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.743e-05/1.078, allocations: 11.98 kB / 489.6 MB, free: 1.227 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-05/1.078, allocations: 7.969 kB / 489.6 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01878/1.097, allocations: 6.344 MB / 496 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.01e-05/1.097, allocations: 4 kB / 496 MB, free: 10.76 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002919/1.1, allocations: 319.8 kB / 496.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004239/1.104, allocations: 0.8967 MB / 497.2 MB, free: 9.527 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003876/1.104, allocations: 15.97 kB / 497.2 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2476/1.352, allocations: 12.93 MB / 0.4982 GB, free: 78.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.308e-06/1.352, allocations: 4.438 kB / 0.4982 GB, free: 78.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/1.362, allocations: 4.77 MB / 0.5028 GB, free: 78.43 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0019/1.364, allocations: 0.5469 MB / 0.5034 GB, free: 78.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008435/1.365, allocations: 10.08 kB / 0.5034 GB, free: 78.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/1.367, allocations: 101.8 kB / 0.5035 GB, free: 78.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005871/1.368, allocations: 159.9 kB / 0.5036 GB, free: 78.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/1.368, allocations: 55.33 kB / 0.5037 GB, free: 78.34 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002596/1.371, allocations: 1.268 MB / 0.5049 GB, free: 78.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.91e-07/1.371, allocations: 0 / 0.5049 GB, free: 78.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00367/1.375, allocations: 0.6478 MB / 0.5056 GB, free: 78.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * 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: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0111/1.386, allocations: 6.015 MB / 0.5114 GB, free: 76.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006878/1.393, allocations: 3.397 MB / 0.5148 GB, free: 75.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/1.393, allocations: 0 / 0.5148 GB, free: 75.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005032/1.398, allocations: 2.382 MB / 0.5171 GB, free: 75.15 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004441/1.402, allocations: 0.5174 MB / 0.5176 GB, free: 75.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01683/1.419, allocations: 6.291 MB / 0.5237 GB, free: 73.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002994/1.422, allocations: 2.537 MB / 0.5262 GB, free: 73.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002781/1.425, allocations: 1.232 MB / 0.5274 GB, free: 72.72 MB / 346.7 MB Notification: Performance of SimCode: time 2.024e-06/1.425, allocations: 0 / 0.5274 GB, free: 72.72 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.416/5.841, allocations: 172.9 MB / 0.6963 GB, free: 56.8 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat