Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.866/1.866, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.007e-05/3.014e-05, allocations: 3.984 kB / 255.5 MB, free: 3.09 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.08923, allocations: 44.5 MB / 300 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4569/0.5462, allocations: 124.2 MB / 424.2 MB, free: 3.828 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5465, allocations: 88.67 kB / 424.3 MB, free: 3.816 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8267/1.373, allocations: 150.6 MB / 0.5614 GB, free: 64.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.074e-06/1.373, allocations: 0 / 0.5614 GB, free: 64.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007671/1.374, allocations: 179.9 kB / 0.5616 GB, free: 64.62 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.0267/1.401, allocations: 6.567 MB / 0.568 GB, free: 62.24 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/1.401, allocations: 10.56 kB / 0.568 GB, free: 62.24 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003553/1.404, allocations: 0.9198 MB / 0.5689 GB, free: 62.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008805/1.413, allocations: 1.24 MB / 0.5701 GB, free: 61.75 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/1.434, allocations: 6.234 MB / 0.5762 GB, free: 60.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005898/1.435, allocations: 0.5036 MB / 0.5767 GB, free: 60.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002719/1.438, allocations: 0.6662 MB / 0.5774 GB, free: 60.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02566/1.463, allocations: 9.096 MB / 0.5862 GB, free: 59.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002703/1.464, allocations: 14.5 kB / 0.5863 GB, free: 59.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00147/1.465, allocations: 290.2 kB / 0.5865 GB, free: 59.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003165/1.465, allocations: 291.1 kB / 0.5868 GB, free: 59.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02155/1.487, allocations: 7.351 MB / 0.594 GB, free: 58.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06949/1.557, allocations: 29.47 MB / 0.6228 GB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01627/1.573, allocations: 11.72 MB / 0.6342 GB, free: 31.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008008/1.581, allocations: 3.272 MB / 0.6374 GB, free: 28.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01987/1.601, allocations: 6.863 MB / 0.6441 GB, free: 22.69 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.306e-05/1.601, allocations: 64.97 kB / 0.6442 GB, free: 22.61 MB / 410.7 MB Notification: Performance of pre-optimization done (n=306): time 5.962e-06/1.601, allocations: 0 / 0.6442 GB, free: 22.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=325): time 0.03499/1.636, allocations: 11.92 MB / 0.6558 GB, free: 11.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.209e-05/1.636, allocations: 85.97 kB / 0.6559 GB, free: 11.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007612/1.644, allocations: 3.448 MB / 0.6593 GB, free: 8.773 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007626/1.644, allocations: 89.64 kB / 0.6594 GB, free: 8.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/1.647, allocations: 2.824 MB / 0.6621 GB, free: 6.102 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001454/1.648, allocations: 1.087 MB / 0.6632 GB, free: 5.121 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003811/1.648, allocations: 76 kB / 0.6632 GB, free: 5.047 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002306/1.649, allocations: 461.3 kB / 0.6637 GB, free: 4.633 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00412/1.653, allocations: 1.795 MB / 0.6654 GB, free: 3.016 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004961/1.658, allocations: 2.673 MB / 0.6681 GB, free: 208 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2942/1.952, allocations: 2.228 MB / 0.6702 GB, free: 60.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.585e-05/1.952, allocations: 8.094 kB / 0.6702 GB, free: 60.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01617/1.968, allocations: 5.856 MB / 0.676 GB, free: 59.98 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/1.968, allocations: 19.11 kB / 0.676 GB, free: 59.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.02e-05/1.969, allocations: 28.08 kB / 0.676 GB, free: 59.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004957/1.973, allocations: 1.251 MB / 0.6772 GB, free: 59.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006522/1.98, allocations: 0.8135 MB / 0.678 GB, free: 59.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02235/2.002, allocations: 20.68 MB / 0.6982 GB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00521/2.008, allocations: 205.2 kB / 0.6984 GB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00052/2.008, allocations: 150.7 kB / 0.6986 GB, free: 45.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000928/2.009, allocations: 339.5 kB / 0.6989 GB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/2.01, allocations: 441.8 kB / 0.6993 GB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01404/2.024, allocations: 5.968 MB / 0.7051 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/2.024, allocations: 38.36 kB / 0.7052 GB, free: 45.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.638e-05/2.024, allocations: 15.84 kB / 0.7052 GB, free: 45.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.476e-05/2.024, allocations: 20.8 kB / 0.7052 GB, free: 45.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02957/2.054, allocations: 12.25 MB / 0.7172 GB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.67e-05/2.054, allocations: 5.031 kB / 0.7172 GB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004196/2.058, allocations: 471.1 kB / 0.7176 GB, free: 43.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006466/2.065, allocations: 1.607 MB / 0.7192 GB, free: 43.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007548/2.066, allocations: 70.58 kB / 0.7192 GB, free: 43.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03571/2.101, allocations: 30.13 MB / 0.7487 GB, free: 36.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/2.101, allocations: 6.531 kB / 0.7487 GB, free: 36.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01966/2.121, allocations: 8.862 MB / 0.7573 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00339/2.124, allocations: 0.9192 MB / 0.7582 GB, free: 31.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/2.126, allocations: 68.38 kB / 0.7583 GB, free: 31.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004191/2.13, allocations: 206.5 kB / 0.7585 GB, free: 31.44 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009962/2.131, allocations: 280.3 kB / 0.7588 GB, free: 31.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003329/2.131, allocations: 88.23 kB / 0.7588 GB, free: 31.37 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005991/2.137, allocations: 2.629 MB / 0.7614 GB, free: 30.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.02e-07/2.138, allocations: 0 / 0.7614 GB, free: 30.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007191/2.145, allocations: 1.379 MB / 0.7628 GB, free: 30.22 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(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.02109/2.166, allocations: 10.54 MB / 0.773 GB, free: 24.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01307/2.179, allocations: 6.029 MB / 0.7789 GB, free: 21.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.909e-06/2.179, allocations: 3.906 kB / 0.7789 GB, free: 21.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009945/2.189, allocations: 4.572 MB / 0.7834 GB, free: 18.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009137/2.198, allocations: 1.249 MB / 0.7846 GB, free: 18.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03445/2.233, allocations: 12.78 MB / 0.7971 GB, free: 8.297 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007646/2.24, allocations: 4.522 MB / 0.8015 GB, free: 4.918 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006764/2.247, allocations: 2.697 MB / 0.8042 GB, free: 2.41 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/2.247, allocations: 0 / 0.8042 GB, free: 2.41 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.612/9.859, allocations: 0.6214 GB / 1.426 GB, free: 67.36 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat