Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMS_Start",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.286/2.286, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.929e-05/2.929e-05, allocations: 2.922 kB / 249.8 MB, free: 5.277 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 44.5 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4742/0.5754, allocations: 105.1 MB / 399.4 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.5758, allocations: 89.56 kB / 399.5 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3085/0.8843, allocations: 64.49 MB / 464 MB, free: 7.633 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.8844, allocations: 4 kB / 464 MB, free: 7.629 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004927/0.8849, allocations: 83.88 kB / 464.1 MB, free: 7.547 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.01468/0.8996, allocations: 3.257 MB / 467.3 MB, free: 4.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.8996, allocations: 8.031 kB / 467.3 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003021/0.9027, allocations: 447.2 kB / 467.8 MB, free: 3.781 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009921/0.9126, allocations: 2.375 MB / 470.1 MB, free: 1.355 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002854/0.913, allocations: 100 kB / 470.2 MB, free: 1.258 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00146/0.9145, allocations: 183.9 kB / 470.4 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01271/0.9272, allocations: 3.304 MB / 473.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01571/0.943, allocations: 3.795 MB / 477.5 MB, free: 9.809 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001798/0.9432, allocations: 4 kB / 477.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009946/0.9442, allocations: 4 kB / 477.5 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000242/0.9445, allocations: 130 kB / 477.6 MB, free: 9.672 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04398/0.9885, allocations: 12.98 MB / 490.6 MB, free: 12.35 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006543/0.9951, allocations: 2.815 MB / 493.4 MB, free: 9.379 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004585/0.9997, allocations: 1.465 MB / 494.9 MB, free: 7.918 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006656/1, allocations: 139.1 kB / 495 MB, free: 7.766 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.963e-05/1, allocations: 57.2 kB / 495.1 MB, free: 7.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=167): time 5.992e-06/1.001, allocations: 0 / 495.1 MB, free: 7.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=183): time 0.02391/1.024, allocations: 6.32 MB / 0.4897 GB, free: 1.309 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.997e-05/1.025, allocations: 73.34 kB / 0.4897 GB, free: 1.227 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2947/1.319, allocations: 1.705 MB / 0.4914 GB, free: 86.99 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004863/1.32, allocations: 28.91 kB / 0.4914 GB, free: 86.96 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/1.321, allocations: 1.468 MB / 0.4929 GB, free: 86.86 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009592/1.322, allocations: 0.585 MB / 0.4934 GB, free: 86.55 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/1.323, allocations: 0 / 0.4934 GB, free: 86.55 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/1.323, allocations: 384 kB / 0.4938 GB, free: 86.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002785/1.326, allocations: 1.044 MB / 0.4948 GB, free: 86.25 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003338/1.329, allocations: 1.444 MB / 0.4962 GB, free: 85.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003395/1.332, allocations: 1.253 MB / 0.4975 GB, free: 85.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.839e-05/1.333, allocations: 3.25 kB / 0.4975 GB, free: 85.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.01052/1.343, allocations: 3.292 MB / 0.5007 GB, free: 85.57 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/1.343, allocations: 9.125 kB / 0.5007 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.173e-05/1.343, allocations: 13.25 kB / 0.5007 GB, free: 85.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003897/1.347, allocations: 0.785 MB / 0.5015 GB, free: 85.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.351, allocations: 460 kB / 0.5019 GB, free: 85.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01533/1.367, allocations: 10.39 MB / 0.512 GB, free: 79.19 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003329/1.37, allocations: 85.48 kB / 0.5121 GB, free: 79.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/1.371, allocations: 78.06 kB / 0.5122 GB, free: 79.19 MB / 394.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.0006109/1.371, allocations: 158.6 kB / 0.5124 GB, free: 79.09 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008265/1.38, allocations: 2.926 MB / 0.5152 GB, free: 78.81 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001132/1.381, allocations: 224.6 kB / 0.5154 GB, free: 78.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008872/1.39, allocations: 3.096 MB / 0.5184 GB, free: 78.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.071e-05/1.39, allocations: 16.53 kB / 0.5185 GB, free: 78.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.132e-05/1.39, allocations: 12.48 kB / 0.5185 GB, free: 78.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-05/1.39, allocations: 11.16 kB / 0.5185 GB, free: 78.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01943/1.409, allocations: 6.371 MB / 0.5247 GB, free: 77.95 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/1.409, allocations: 0 / 0.5247 GB, free: 77.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003041/1.412, allocations: 308.3 kB / 0.525 GB, free: 77.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004333/1.417, allocations: 0.8952 MB / 0.5259 GB, free: 77.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003884/1.417, allocations: 14.75 kB / 0.5259 GB, free: 77.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01694/1.434, allocations: 12.95 MB / 0.5385 GB, free: 68.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/1.434, allocations: 3.5 kB / 0.5385 GB, free: 68.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01179/1.446, allocations: 4.763 MB / 0.5432 GB, free: 66.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002225/1.448, allocations: 0.5437 MB / 0.5437 GB, free: 66.01 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009107/1.449, allocations: 13.23 kB / 0.5437 GB, free: 66.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002771/1.452, allocations: 102.6 kB / 0.5438 GB, free: 66.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007273/1.453, allocations: 164.1 kB / 0.544 GB, free: 65.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002167/1.453, allocations: 55.44 kB / 0.544 GB, free: 65.97 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003085/1.456, allocations: 1.284 MB / 0.5453 GB, free: 65.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.456, allocations: 2.438 kB / 0.5453 GB, free: 65.42 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004332/1.461, allocations: 0.6414 MB / 0.5459 GB, free: 65.41 MB / 394.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.01288/1.473, allocations: 6.003 MB / 0.5518 GB, free: 62.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007584/1.481, allocations: 3.392 MB / 0.5551 GB, free: 60.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/1.481, allocations: 3.781 kB / 0.5551 GB, free: 60.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00546/1.487, allocations: 2.388 MB / 0.5574 GB, free: 59.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005015/1.492, allocations: 0.526 MB / 0.558 GB, free: 59.25 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01927/1.511, allocations: 6.334 MB / 0.5641 GB, free: 56.88 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00419/1.515, allocations: 2.583 MB / 0.5667 GB, free: 55.79 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003484/1.519, allocations: 0.5477 MB / 0.5672 GB, free: 55.74 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003035/1.522, allocations: 1.227 MB / 0.5684 GB, free: 54.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.383e-06/1.522, allocations: 0 / 0.5684 GB, free: 54.73 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1896/1.711, allocations: 57.35 MB / 0.6244 GB, free: 8.305 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002405/1.712, allocations: 180.3 kB / 0.6246 GB, free: 8.109 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.101/6.813, allocations: 0 / 0.6246 GB, free: 8.109 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.AIMS_Start_res.mat does not exist to compare? outputFormat=mat