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.816/1.816, allocations: 171.2 MB / 183.8 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.023e-05/3.032e-05, allocations: 0 / 225.1 MB, free: 2.734 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2555/0.2556, allocations: 38.77 MB / 263.9 MB, free: 9.785 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4305/0.6862, allocations: 117 MB / 380.8 MB, free: 52.68 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/0.6865, allocations: 88.03 kB / 380.9 MB, free: 52.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8052/1.492, allocations: 145.6 MB / 0.5142 GB, free: 35.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.492, allocations: 3.656 kB / 0.5142 GB, free: 35.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007892/1.493, allocations: 178.7 kB / 0.5143 GB, free: 35.03 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.02602/1.519, allocations: 6.397 MB / 0.5206 GB, free: 33.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/1.519, allocations: 14.69 kB / 0.5206 GB, free: 33.09 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003733/1.522, allocations: 0.8836 MB / 0.5215 GB, free: 33.01 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006528/1.529, allocations: 0.9894 MB / 0.5224 GB, free: 32.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/1.547, allocations: 5.225 MB / 0.5275 GB, free: 31.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006489/1.547, allocations: 491.8 kB / 0.528 GB, free: 31.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002836/1.55, allocations: 0.6402 MB / 0.5286 GB, free: 31.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02692/1.577, allocations: 8.658 MB / 0.5371 GB, free: 30.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003239/1.577, allocations: 23.97 kB / 0.5371 GB, free: 30.79 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002018/1.579, allocations: 277.5 kB / 0.5374 GB, free: 30.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003192/1.58, allocations: 270 kB / 0.5376 GB, free: 30.78 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02127/1.601, allocations: 6.808 MB / 0.5443 GB, free: 30.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07097/1.672, allocations: 27.94 MB / 0.5716 GB, free: 22.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/1.682, allocations: 5.872 MB / 0.5773 GB, free: 18.62 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007453/1.69, allocations: 3 MB / 0.5802 GB, free: 17.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006464/1.69, allocations: 165.1 kB / 0.5804 GB, free: 17.44 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/1.69, allocations: 72.23 kB / 0.5804 GB, free: 17.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=322): time 5.941e-06/1.69, allocations: 3.188 kB / 0.5804 GB, free: 17.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=341): time 0.03626/1.727, allocations: 12.05 MB / 0.5922 GB, free: 12.06 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.681e-05/1.727, allocations: 88.41 kB / 0.5923 GB, free: 11.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007664/1.734, allocations: 3.395 MB / 0.5956 GB, free: 10.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007793/1.735, allocations: 88.92 kB / 0.5957 GB, free: 10.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002049/1.737, allocations: 2.69 MB / 0.5983 GB, free: 8.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001585/1.739, allocations: 1.145 MB / 0.5994 GB, free: 7.562 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003896/1.739, allocations: 74.97 kB / 0.5995 GB, free: 7.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002644/1.74, allocations: 464.6 kB / 0.6 GB, free: 7.129 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004434/1.744, allocations: 1.802 MB / 0.6017 GB, free: 6.441 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005106/1.749, allocations: 2.648 MB / 0.6043 GB, free: 4.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00537/1.755, allocations: 2.235 MB / 0.6065 GB, free: 3.855 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.138e-05/1.755, allocations: 7.406 kB / 0.6065 GB, free: 3.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.0155/1.77, allocations: 5.902 MB / 0.6123 GB, free: 15.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.264e-05/1.77, allocations: 16 kB / 0.6123 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-05/1.77, allocations: 27.69 kB / 0.6123 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005126/1.776, allocations: 1.263 MB / 0.6135 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006736/1.782, allocations: 0.8318 MB / 0.6143 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02914/1.812, allocations: 21.26 MB / 0.6351 GB, free: 8.945 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005319/1.817, allocations: 189.9 kB / 0.6353 GB, free: 8.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008393/1.818, allocations: 147.7 kB / 0.6354 GB, free: 8.656 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.001033/1.819, allocations: 332.5 kB / 0.6357 GB, free: 8.375 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/1.82, allocations: 456.2 kB / 0.6362 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01685/1.837, allocations: 6.03 MB / 0.6421 GB, free: 2.707 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.385e-05/1.837, allocations: 34.53 kB / 0.6421 GB, free: 2.676 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.394e-05/1.837, allocations: 16 kB / 0.6421 GB, free: 2.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.957e-05/1.837, allocations: 21.44 kB / 0.6421 GB, free: 2.656 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3051/2.142, allocations: 12.96 MB / 0.6548 GB, free: 55.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.481e-05/2.143, allocations: 6.688 kB / 0.6548 GB, free: 55.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004239/2.147, allocations: 481.8 kB / 0.6553 GB, free: 55.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006476/2.153, allocations: 1.604 MB / 0.6568 GB, free: 55.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006567/2.154, allocations: 77.48 kB / 0.6569 GB, free: 55.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03377/2.188, allocations: 30.11 MB / 0.6863 GB, free: 35.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/2.188, allocations: 11.95 kB / 0.6863 GB, free: 35.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02018/2.208, allocations: 9.14 MB / 0.6952 GB, free: 33.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003545/2.212, allocations: 0.9221 MB / 0.6961 GB, free: 33.45 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001478/2.213, allocations: 74.67 kB / 0.6962 GB, free: 33.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004704/2.218, allocations: 206 kB / 0.6964 GB, free: 33.45 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00124/2.219, allocations: 293.2 kB / 0.6967 GB, free: 33.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003753/2.22, allocations: 91.81 kB / 0.6968 GB, free: 33.45 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.006255/2.226, allocations: 2.595 MB / 0.6993 GB, free: 33.24 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.52e-07/2.226, allocations: 0 / 0.6993 GB, free: 33.24 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007604/2.233, allocations: 1.35 MB / 0.7006 GB, free: 33.24 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.02214/2.256, allocations: 11.16 MB / 0.7115 GB, free: 30.15 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01329/2.269, allocations: 6.06 MB / 0.7175 GB, free: 28.62 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/2.269, allocations: 6.375 kB / 0.7175 GB, free: 28.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01015/2.279, allocations: 4.656 MB / 0.722 GB, free: 26.79 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009806/2.289, allocations: 1.255 MB / 0.7232 GB, free: 26.76 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03611/2.325, allocations: 12.58 MB / 0.7355 GB, free: 22.69 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007893/2.333, allocations: 4.425 MB / 0.7398 GB, free: 21.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00598/2.339, allocations: 2.608 MB / 0.7424 GB, free: 18.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.853e-06/2.339, allocations: 0 / 0.7424 GB, free: 18.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.504/9.843, allocations: 0.6017 GB / 1.344 GB, free: 27.02 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