Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.858/1.858, allocations: 194.9 MB / 208 MB, free: 3.262 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.024e-05/3.028e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/0.08898, allocations: 44.51 MB / 300 MB, free: 6.062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4364/0.5254, allocations: 110.1 MB / 410 MB, free: 9.668 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/0.5257, allocations: 86.14 kB / 410.1 MB, free: 9.656 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.045/1.571, allocations: 221 MB / 0.6164 GB, free: 52.85 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.394e-06/1.571, allocations: 0 / 0.6164 GB, free: 52.85 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001104/1.572, allocations: 253.2 kB / 0.6166 GB, free: 52.81 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.0414/1.613, allocations: 9.577 MB / 0.626 GB, free: 48.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/1.613, allocations: 19.09 kB / 0.626 GB, free: 48.01 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005875/1.619, allocations: 1.369 MB / 0.6273 GB, free: 47.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01679/1.636, allocations: 2.128 MB / 0.6294 GB, free: 45.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03233/1.668, allocations: 8.908 MB / 0.6381 GB, free: 36.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00102/1.669, allocations: 0.7406 MB / 0.6388 GB, free: 35.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005219/1.675, allocations: 0.9892 MB / 0.6398 GB, free: 34.61 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04485/1.72, allocations: 13.79 MB / 0.6532 GB, free: 20.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000558/1.72, allocations: 11.84 kB / 0.6533 GB, free: 20.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003619/1.724, allocations: 426.3 kB / 0.6537 GB, free: 20.07 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004959/1.724, allocations: 452.4 kB / 0.6541 GB, free: 19.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03645/1.761, allocations: 11.43 MB / 0.6653 GB, free: 8.172 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4522/2.213, allocations: 44.15 MB / 0.7084 GB, free: 35.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03563/2.249, allocations: 24.51 MB / 0.7323 GB, free: 33.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01207/2.261, allocations: 4.915 MB / 0.7371 GB, free: 33.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03396/2.295, allocations: 12.09 MB / 0.7489 GB, free: 31.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.46e-05/2.295, allocations: 89.81 kB / 0.749 GB, free: 31.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=419): time 6.783e-06/2.295, allocations: 3.406 kB / 0.749 GB, free: 31.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=425): time 0.03451/2.33, allocations: 13.83 MB / 0.7625 GB, free: 25.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.449e-05/2.33, allocations: 100.5 kB / 0.7626 GB, free: 25.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01187/2.342, allocations: 4.674 MB / 0.7672 GB, free: 23.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009339/2.342, allocations: 99.08 kB / 0.7673 GB, free: 23.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003712/2.346, allocations: 4.443 MB / 0.7716 GB, free: 19.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/2.348, allocations: 1.416 MB / 0.773 GB, free: 18.81 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004672/2.349, allocations: 96.41 kB / 0.7731 GB, free: 18.74 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003705/2.349, allocations: 499.5 kB / 0.7736 GB, free: 18.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005302/2.354, allocations: 2.262 MB / 0.7758 GB, free: 17.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005993/2.36, allocations: 3.405 MB / 0.7791 GB, free: 15.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006361/2.367, allocations: 2.816 MB / 0.7818 GB, free: 14.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.645e-05/2.367, allocations: 6.625 kB / 0.7819 GB, free: 14.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.019/2.386, allocations: 7.798 MB / 0.7895 GB, free: 11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.918e-05/2.386, allocations: 23.59 kB / 0.7895 GB, free: 11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.264e-05/2.386, allocations: 39.98 kB / 0.7895 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005446/2.391, allocations: 1.476 MB / 0.791 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007496/2.399, allocations: 0.9767 MB / 0.7919 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03357/2.433, allocations: 26.67 MB / 0.818 GB, free: 4.012 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006626/2.439, allocations: 242 kB / 0.8182 GB, free: 3.809 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007762/2.44, allocations: 183.4 kB / 0.8184 GB, free: 3.633 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (526): * Single equations (assignments): 510 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 14 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(4,68.8%) 22,(2,100.0%) 6,(2,100.0%) 6,(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.001259/2.441, allocations: 403.1 kB / 0.8188 GB, free: 3.234 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/2.443, allocations: 0.5751 MB / 0.8193 GB, free: 2.652 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02257/2.466, allocations: 7.69 MB / 0.8268 GB, free: 12.05 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.078e-05/2.466, allocations: 40 kB / 0.8269 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.539e-05/2.466, allocations: 31.47 kB / 0.8269 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.83e-05/2.466, allocations: 24.41 kB / 0.8269 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4011/2.867, allocations: 16.51 MB / 0.843 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.171e-05/2.867, allocations: 3.281 kB / 0.8431 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004444/2.871, allocations: 449.5 kB / 0.8435 GB, free: 87.54 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009906/2.881, allocations: 2.239 MB / 0.8457 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.882, allocations: 96.59 kB / 0.8458 GB, free: 87.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05229/2.935, allocations: 34.48 MB / 0.8794 GB, free: 70.63 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/2.935, allocations: 6.469 kB / 0.8794 GB, free: 70.63 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.028/2.963, allocations: 11.45 MB / 0.8906 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004819/2.968, allocations: 1.203 MB / 0.8918 GB, free: 68.96 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002151/2.97, allocations: 87.62 kB / 0.8919 GB, free: 68.96 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006222/2.976, allocations: 261.8 kB / 0.8921 GB, free: 68.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002004/2.978, allocations: 442.1 kB / 0.8925 GB, free: 68.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005058/2.979, allocations: 115.8 kB / 0.8927 GB, free: 68.95 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009143/2.988, allocations: 3.571 MB / 0.8961 GB, free: 68.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.988, allocations: 3.391 kB / 0.8961 GB, free: 68.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01018/2.998, allocations: 1.911 MB / 0.898 GB, free: 68.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 5,(6,72.2%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02929/3.027, allocations: 13.21 MB / 0.9109 GB, free: 65.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01727/3.045, allocations: 7.647 MB / 0.9184 GB, free: 61.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/3.045, allocations: 3.969 kB / 0.9184 GB, free: 61.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01325/3.058, allocations: 5.581 MB / 0.9238 GB, free: 58.56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0122/3.07, allocations: 1.596 MB / 0.9254 GB, free: 58.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05298/3.123, allocations: 18.1 MB / 0.9431 GB, free: 51.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01265/3.136, allocations: 6.547 MB / 0.9495 GB, free: 49.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.008222/3.144, allocations: 1.268 MB / 0.9507 GB, free: 48.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008575/3.153, allocations: 3.899 MB / 0.9545 GB, free: 45.62 MB / 458.7 MB Notification: Performance of SimCode: time 1.313e-06/3.153, allocations: 6.344 kB / 0.9545 GB, free: 45.62 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7227/3.876, allocations: 165.6 MB / 1.116 GB, free: 33.33 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001578/3.876, allocations: 205.8 kB / 1.116 GB, free: 33.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.734/12.61, allocations: 0 / 1.116 GB, free: 33.11 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat