Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.73/1.73, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.004e-05, allocations: 0 / 225.1 MB, free: 2.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2787, allocations: 38.76 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4369/0.7157, allocations: 117 MB / 380.8 MB, free: 52.9 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002715/0.716, allocations: 83.98 kB / 380.9 MB, free: 52.9 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8536/1.57, allocations: 145.6 MB / 0.5141 GB, free: 34.97 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/1.57, allocations: 0 / 0.5141 GB, free: 34.97 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0008282/1.571, allocations: 183.5 kB / 0.5143 GB, free: 34.95 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: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02754/1.598, allocations: 6.399 MB / 0.5206 GB, free: 33.01 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.989e-05/1.598, allocations: 11.56 kB / 0.5206 GB, free: 33.01 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004709/1.603, allocations: 0.8839 MB / 0.5214 GB, free: 32.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006806/1.61, allocations: 0.9898 MB / 0.5224 GB, free: 32.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01928/1.629, allocations: 5.232 MB / 0.5275 GB, free: 31.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007111/1.63, allocations: 488.2 kB / 0.528 GB, free: 31.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/1.633, allocations: 0.6346 MB / 0.5286 GB, free: 31.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02733/1.66, allocations: 8.743 MB / 0.5371 GB, free: 30.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000254/1.66, allocations: 18.5 kB / 0.5372 GB, free: 30.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00126/1.662, allocations: 281.6 kB / 0.5374 GB, free: 30.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002906/1.662, allocations: 266.9 kB / 0.5377 GB, free: 30.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02903/1.691, allocations: 6.888 MB / 0.5444 GB, free: 30.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0921/1.783, allocations: 27.95 MB / 0.5717 GB, free: 22.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/1.794, allocations: 5.9 MB / 0.5775 GB, free: 18.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007587/1.801, allocations: 3.003 MB / 0.5804 GB, free: 17.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007212/1.802, allocations: 157.4 kB / 0.5805 GB, free: 17.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/1.802, allocations: 74.36 kB / 0.5806 GB, free: 17.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=322): time 6.021e-06/1.802, allocations: 0 / 0.5806 GB, free: 17.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=341): time 0.03849/1.841, allocations: 12.05 MB / 0.5924 GB, free: 11.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/1.841, allocations: 85.84 kB / 0.5925 GB, free: 11.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008133/1.849, allocations: 3.404 MB / 0.5958 GB, free: 10.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008158/1.85, allocations: 81.67 kB / 0.5959 GB, free: 10.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002275/1.852, allocations: 2.688 MB / 0.5985 GB, free: 8.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001642/1.854, allocations: 1.149 MB / 0.5996 GB, free: 7.367 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00042/1.854, allocations: 79.69 kB / 0.5997 GB, free: 7.305 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002733/1.855, allocations: 461.7 kB / 0.6001 GB, free: 6.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004483/1.859, allocations: 1.799 MB / 0.6019 GB, free: 6.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005396/1.864, allocations: 2.673 MB / 0.6045 GB, free: 4.527 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005484/1.87, allocations: 2.236 MB / 0.6067 GB, free: 3.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.329e-05/1.87, allocations: 6.531 kB / 0.6067 GB, free: 3.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01612/1.886, allocations: 5.957 MB / 0.6125 GB, free: 15.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.392e-05/1.886, allocations: 16 kB / 0.6125 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.482e-05/1.886, allocations: 26.84 kB / 0.6125 GB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005356/1.892, allocations: 1.266 MB / 0.6138 GB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006834/1.899, allocations: 0.8334 MB / 0.6146 GB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03089/1.93, allocations: 21.28 MB / 0.6354 GB, free: 8.469 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005741/1.935, allocations: 190 kB / 0.6355 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001068/1.936, allocations: 143.5 kB / 0.6357 GB, free: 8.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * 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 (417): * Single equations (assignments): 403 * 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%) 1,(1,100.0%) 8,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5,(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.001182/1.938, allocations: 343.9 kB / 0.636 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001616/1.939, allocations: 446.6 kB / 0.6364 GB, free: 7.453 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01907/1.958, allocations: 6.032 MB / 0.6423 GB, free: 2.227 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.691e-05/1.958, allocations: 32 kB / 0.6424 GB, free: 2.195 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.439e-05/1.959, allocations: 16 kB / 0.6424 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/1.959, allocations: 22.19 kB / 0.6424 GB, free: 2.176 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3227/2.281, allocations: 13.1 MB / 0.6552 GB, free: 55.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.229e-05/2.281, allocations: 4.125 kB / 0.6552 GB, free: 55.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004305/2.286, allocations: 487.1 kB / 0.6557 GB, free: 55.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006624/2.292, allocations: 1.607 MB / 0.6572 GB, free: 55.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007166/2.293, allocations: 78.55 kB / 0.6573 GB, free: 55.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03511/2.328, allocations: 30.14 MB / 0.6867 GB, free: 35.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/2.328, allocations: 9.875 kB / 0.6867 GB, free: 35.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02124/2.35, allocations: 9.133 MB / 0.6957 GB, free: 33.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003817/2.353, allocations: 0.9319 MB / 0.6966 GB, free: 33.61 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001541/2.355, allocations: 70.94 kB / 0.6966 GB, free: 33.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004684/2.36, allocations: 205.4 kB / 0.6968 GB, free: 33.61 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/2.361, allocations: 287.6 kB / 0.6971 GB, free: 33.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003596/2.361, allocations: 98.02 kB / 0.6972 GB, free: 33.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006385/2.368, allocations: 2.592 MB / 0.6997 GB, free: 33.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.368, allocations: 0 / 0.6997 GB, free: 33.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007489/2.375, allocations: 1.357 MB / 0.7011 GB, free: 33.4 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,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 (248): * Single equations (assignments): 231 * 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%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02396/2.399, allocations: 11.15 MB / 0.7119 GB, free: 30.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01415/2.414, allocations: 6.194 MB / 0.718 GB, free: 28.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/2.414, allocations: 5.906 kB / 0.718 GB, free: 28.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01071/2.424, allocations: 4.793 MB / 0.7227 GB, free: 26.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00995/2.434, allocations: 1.25 MB / 0.7239 GB, free: 26.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03868/2.473, allocations: 12.6 MB / 0.7362 GB, free: 22.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008478/2.482, allocations: 4.427 MB / 0.7405 GB, free: 20.85 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006291/2.488, allocations: 2.597 MB / 0.7431 GB, free: 18.69 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/2.488, allocations: 3.938 kB / 0.7431 GB, free: 18.69 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.54/10.03, allocations: 0.6025 GB / 1.346 GB, free: 23.38 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat