Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.616/1.616, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.804e-05/2.812e-05, allocations: 0 / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2535, allocations: 38.77 MB / 263.9 MB, free: 9.82 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4207/0.6742, allocations: 117 MB / 380.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/0.6745, allocations: 83.44 kB / 380.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8105/1.485, allocations: 145.6 MB / 0.5142 GB, free: 34.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.495e-06/1.485, allocations: 0 / 0.5142 GB, free: 34.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000808/1.486, allocations: 182.2 kB / 0.5144 GB, free: 34.86 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.02719/1.513, allocations: 6.399 MB / 0.5206 GB, free: 32.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/1.513, allocations: 9.906 kB / 0.5206 GB, free: 32.92 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004073/1.517, allocations: 0.8862 MB / 0.5215 GB, free: 32.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006758/1.524, allocations: 0.9913 MB / 0.5225 GB, free: 32.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01811/1.542, allocations: 5.232 MB / 0.5276 GB, free: 31.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006824/1.543, allocations: 481.6 kB / 0.528 GB, free: 31.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002892/1.546, allocations: 0.6368 MB / 0.5286 GB, free: 31.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02815/1.574, allocations: 8.665 MB / 0.5371 GB, free: 30.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002865/1.574, allocations: 18.19 kB / 0.5371 GB, free: 30.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001643/1.576, allocations: 279.7 kB / 0.5374 GB, free: 30.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003038/1.576, allocations: 273.5 kB / 0.5377 GB, free: 30.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02133/1.598, allocations: 6.801 MB / 0.5443 GB, free: 30.58 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07672/1.675, allocations: 27.95 MB / 0.5716 GB, free: 22.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/1.685, allocations: 5.863 MB / 0.5773 GB, free: 18.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008125/1.694, allocations: 3.005 MB / 0.5802 GB, free: 17.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007584/1.694, allocations: 162.2 kB / 0.5804 GB, free: 17.23 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.538e-05/1.695, allocations: 73.7 kB / 0.5805 GB, free: 17.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=322): time 6.141e-06/1.695, allocations: 0 / 0.5805 GB, free: 17.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=341): time 0.04127/1.736, allocations: 12.05 MB / 0.5922 GB, free: 11.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/1.736, allocations: 88.81 kB / 0.5923 GB, free: 11.78 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009454/1.745, allocations: 3.396 MB / 0.5956 GB, free: 10.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008396/1.746, allocations: 86.7 kB / 0.5957 GB, free: 10.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003044/1.749, allocations: 2.93 MB / 0.5986 GB, free: 8.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001756/1.751, allocations: 1.155 MB / 0.5997 GB, free: 7.285 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006786/1.752, allocations: 74.56 kB / 0.5998 GB, free: 7.227 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003701/1.752, allocations: 458.8 kB / 0.6002 GB, free: 6.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004976/1.757, allocations: 1.799 MB / 0.602 GB, free: 6.172 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005841/1.763, allocations: 2.648 MB / 0.6046 GB, free: 4.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006/1.769, allocations: 2.237 MB / 0.6067 GB, free: 3.586 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.561e-05/1.769, allocations: 7.062 kB / 0.6068 GB, free: 3.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01916/1.788, allocations: 6.18 MB / 0.6128 GB, free: 15.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/1.789, allocations: 16 kB / 0.6128 GB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.48e-05/1.789, allocations: 24 kB / 0.6128 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005509/1.794, allocations: 1.265 MB / 0.6141 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006978/1.801, allocations: 0.8219 MB / 0.6149 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03312/1.834, allocations: 21.26 MB / 0.6356 GB, free: 8.406 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005541/1.84, allocations: 192.8 kB / 0.6358 GB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001066/1.841, allocations: 155.3 kB / 0.636 GB, free: 8.109 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.001783/1.843, allocations: 329.1 kB / 0.6363 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001828/1.845, allocations: 456.2 kB / 0.6367 GB, free: 7.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02022/1.865, allocations: 6.045 MB / 0.6426 GB, free: 2.152 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.034e-05/1.865, allocations: 35.66 kB / 0.6426 GB, free: 2.121 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-05/1.865, allocations: 16 kB / 0.6427 GB, free: 2.105 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.766e-05/1.865, allocations: 17.48 kB / 0.6427 GB, free: 2.105 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3161/2.181, allocations: 13.01 MB / 0.6554 GB, free: 55.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.039e-05/2.182, allocations: 3.75 kB / 0.6554 GB, free: 55.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004176/2.186, allocations: 475.4 kB / 0.6558 GB, free: 55.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006565/2.192, allocations: 1.615 MB / 0.6574 GB, free: 55.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005808/2.193, allocations: 75.42 kB / 0.6575 GB, free: 55.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0335/2.226, allocations: 30.12 MB / 0.6869 GB, free: 35.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/2.226, allocations: 9.375 kB / 0.6869 GB, free: 35.2 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01889/2.245, allocations: 9.136 MB / 0.6958 GB, free: 33.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003261/2.249, allocations: 0.9264 MB / 0.6967 GB, free: 33.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001009/2.25, allocations: 69.48 kB / 0.6968 GB, free: 33.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003699/2.253, allocations: 204.6 kB / 0.697 GB, free: 33.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008687/2.254, allocations: 285.6 kB / 0.6973 GB, free: 33.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003073/2.255, allocations: 91.95 kB / 0.6974 GB, free: 33.39 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005445/2.26, allocations: 2.601 MB / 0.6999 GB, free: 33.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.62e-07/2.26, allocations: 2.531 kB / 0.6999 GB, free: 33.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007058/2.267, allocations: 1.353 MB / 0.7012 GB, free: 33.19 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.02036/2.288, allocations: 11.16 MB / 0.7121 GB, free: 30.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01217/2.3, allocations: 6.064 MB / 0.718 GB, free: 28.58 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/2.3, allocations: 3.844 kB / 0.718 GB, free: 28.58 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009395/2.309, allocations: 4.658 MB / 0.7226 GB, free: 26.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008821/2.318, allocations: 1.257 MB / 0.7238 GB, free: 26.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03246/2.351, allocations: 12.74 MB / 0.7363 GB, free: 22.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006483/2.357, allocations: 4.514 MB / 0.7407 GB, free: 20.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005423/2.363, allocations: 0.9802 MB / 0.7416 GB, free: 20.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00509/2.368, allocations: 2.587 MB / 0.7442 GB, free: 18.56 MB / 394.7 MB Notification: Performance of SimCode: time 2.294e-06/2.368, allocations: 0 / 0.7442 GB, free: 18.56 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5439/2.912, allocations: 121.8 MB / 0.8631 GB, free: 40.05 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/2.912, allocations: 200.3 kB / 0.8633 GB, free: 39.82 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.716/9.628, allocations: 0 / 0.8633 GB, free: 39.82 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat