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.651/1.651, allocations: 171.2 MB / 183.3 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.918e-05/4.943e-05, allocations: 4 kB / 225.1 MB, free: 2.199 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2941, allocations: 38.76 MB / 263.9 MB, free: 9.805 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4106/0.7048, allocations: 117 MB / 380.8 MB, free: 52.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.7051, allocations: 88.16 kB / 380.9 MB, free: 52.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7802/1.485, allocations: 145.6 MB / 0.5142 GB, free: 34.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.674e-06/1.485, allocations: 0 / 0.5142 GB, free: 34.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007893/1.486, allocations: 175.9 kB / 0.5143 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.02601/1.512, allocations: 6.407 MB / 0.5206 GB, free: 32.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/1.512, allocations: 10.38 kB / 0.5206 GB, free: 32.92 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003732/1.516, allocations: 0.8874 MB / 0.5215 GB, free: 32.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006472/1.523, allocations: 0.9942 MB / 0.5224 GB, free: 32.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/1.541, allocations: 5.221 MB / 0.5275 GB, free: 31.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006705/1.542, allocations: 487.7 kB / 0.528 GB, free: 31.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002762/1.544, allocations: 0.6488 MB / 0.5286 GB, free: 31.54 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02842/1.573, allocations: 8.739 MB / 0.5372 GB, free: 30.6 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003833/1.573, allocations: 20.61 kB / 0.5372 GB, free: 30.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002383/1.576, allocations: 277.4 kB / 0.5374 GB, free: 30.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003156/1.576, allocations: 269.5 kB / 0.5377 GB, free: 30.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02194/1.598, allocations: 6.889 MB / 0.5444 GB, free: 30.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07149/1.67, allocations: 27.94 MB / 0.5717 GB, free: 22.13 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009981/1.68, allocations: 5.9 MB / 0.5775 GB, free: 18.44 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007345/1.687, allocations: 3.003 MB / 0.5804 GB, free: 17.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006978/1.688, allocations: 157.7 kB / 0.5806 GB, free: 17.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.766e-05/1.688, allocations: 79.14 kB / 0.5806 GB, free: 17.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=322): time 5.921e-06/1.688, allocations: 0 / 0.5806 GB, free: 17.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=341): time 0.0371/1.725, allocations: 12.05 MB / 0.5924 GB, free: 11.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/1.725, allocations: 89.38 kB / 0.5925 GB, free: 11.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008425/1.734, allocations: 3.402 MB / 0.5958 GB, free: 10.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008107/1.734, allocations: 85.11 kB / 0.5959 GB, free: 10.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002654/1.737, allocations: 2.937 MB / 0.5988 GB, free: 8.211 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001656/1.739, allocations: 1.142 MB / 0.5999 GB, free: 7.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004181/1.739, allocations: 78.47 kB / 0.5999 GB, free: 7.262 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002751/1.739, allocations: 456.3 kB / 0.6004 GB, free: 6.895 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004615/1.744, allocations: 1.801 MB / 0.6021 GB, free: 6.207 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005575/1.75, allocations: 2.676 MB / 0.6048 GB, free: 4.488 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005811/1.756, allocations: 2.236 MB / 0.6069 GB, free: 3.609 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.411e-05/1.756, allocations: 7.062 kB / 0.6069 GB, free: 3.609 MB / 362.7 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.0175/1.773, allocations: 6.23 MB / 0.613 GB, free: 15.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.228e-05/1.773, allocations: 19.95 kB / 0.613 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.496e-05/1.773, allocations: 24.59 kB / 0.6131 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005275/1.779, allocations: 1.272 MB / 0.6143 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006886/1.786, allocations: 0.8195 MB / 0.6151 GB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03023/1.816, allocations: 21.3 MB / 0.6359 GB, free: 8.355 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005307/1.821, allocations: 199.4 kB / 0.6361 GB, free: 8.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009794/1.822, allocations: 143.8 kB / 0.6362 GB, free: 8.059 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.001111/1.823, allocations: 337.9 kB / 0.6366 GB, free: 7.777 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00147/1.825, allocations: 446.6 kB / 0.637 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01837/1.843, allocations: 6.035 MB / 0.6429 GB, free: 2.109 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.745e-05/1.843, allocations: 40 kB / 0.6429 GB, free: 2.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.296e-05/1.843, allocations: 16 kB / 0.6429 GB, free: 2.055 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.135e-05/1.843, allocations: 16.5 kB / 0.6429 GB, free: 2.055 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3151/2.159, allocations: 13.04 MB / 0.6557 GB, free: 55.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.838e-05/2.159, allocations: 2.5 kB / 0.6557 GB, free: 55.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004249/2.163, allocations: 479.1 kB / 0.6561 GB, free: 55.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006705/2.17, allocations: 1.609 MB / 0.6577 GB, free: 55.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007023/2.17, allocations: 81.47 kB / 0.6578 GB, free: 55.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03363/2.204, allocations: 30.12 MB / 0.6872 GB, free: 35.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/2.204, allocations: 10.22 kB / 0.6872 GB, free: 35.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01981/2.224, allocations: 9.14 MB / 0.6961 GB, free: 33.66 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003559/2.228, allocations: 0.9328 MB / 0.6971 GB, free: 33.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001341/2.229, allocations: 78.97 kB / 0.6971 GB, free: 33.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00419/2.233, allocations: 198.9 kB / 0.6973 GB, free: 33.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001026/2.234, allocations: 282.9 kB / 0.6976 GB, free: 33.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003573/2.235, allocations: 96.45 kB / 0.6977 GB, free: 33.56 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005967/2.24, allocations: 2.599 MB / 0.7002 GB, free: 33.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.42e-07/2.241, allocations: 0 / 0.7002 GB, free: 33.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007996/2.249, allocations: 1.351 MB / 0.7015 GB, free: 33.36 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.02369/2.272, allocations: 11.16 MB / 0.7124 GB, free: 30.28 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01408/2.286, allocations: 6.207 MB / 0.7185 GB, free: 28.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.286, allocations: 3.938 kB / 0.7185 GB, free: 28.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01049/2.297, allocations: 4.787 MB / 0.7232 GB, free: 26.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009872/2.307, allocations: 1.241 MB / 0.7244 GB, free: 26.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03709/2.344, allocations: 12.76 MB / 0.7368 GB, free: 22.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008307/2.352, allocations: 4.513 MB / 0.7413 GB, free: 20.73 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.005906/2.358, allocations: 0.9885 MB / 0.7422 GB, free: 20.63 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005779/2.364, allocations: 2.583 MB / 0.7447 GB, free: 18.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.783e-06/2.364, allocations: 0 / 0.7447 GB, free: 18.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.588/2.952, allocations: 122.5 MB / 0.8643 GB, free: 40.34 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/2.953, allocations: 187.6 kB / 0.8645 GB, free: 40.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.918/9.871, allocations: 0.5625 kB / 0.8645 GB, free: 40.12 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