Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.834/1.834, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.935e-05/2.953e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09022/0.09027, allocations: 44.5 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4363/0.5266, allocations: 110.1 MB / 410.1 MB, free: 9.766 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.5269, allocations: 85.14 kB / 410.1 MB, free: 9.754 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014/1.541, allocations: 221 MB / 0.6164 GB, free: 52.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.144e-06/1.541, allocations: 0 / 0.6164 GB, free: 52.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009942/1.542, allocations: 251.8 kB / 0.6166 GB, free: 52.73 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.03885/1.581, allocations: 9.583 MB / 0.626 GB, free: 48.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/1.581, allocations: 11.38 kB / 0.626 GB, free: 48.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005369/1.586, allocations: 1.371 MB / 0.6273 GB, free: 47.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01617/1.603, allocations: 2.131 MB / 0.6294 GB, free: 45.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02922/1.632, allocations: 8.893 MB / 0.6381 GB, free: 36.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008805/1.633, allocations: 0.7478 MB / 0.6388 GB, free: 35.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003982/1.637, allocations: 0.991 MB / 0.6398 GB, free: 34.85 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04069/1.678, allocations: 13.67 MB / 0.6531 GB, free: 20.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003825/1.678, allocations: 15.12 kB / 0.6531 GB, free: 20.85 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002886/1.681, allocations: 428.1 kB / 0.6536 GB, free: 20.44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004631/1.681, allocations: 460.4 kB / 0.654 GB, free: 19.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03316/1.715, allocations: 11.3 MB / 0.665 GB, free: 8.676 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4087/2.123, allocations: 44.15 MB / 0.7081 GB, free: 35.35 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03424/2.158, allocations: 24.46 MB / 0.732 GB, free: 33.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01138/2.169, allocations: 4.91 MB / 0.7368 GB, free: 33.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03214/2.201, allocations: 12.1 MB / 0.7486 GB, free: 31.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.859e-05/2.201, allocations: 87.03 kB / 0.7487 GB, free: 31.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=419): time 7.043e-06/2.201, allocations: 0 / 0.7487 GB, free: 31.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=425): time 0.03449/2.236, allocations: 13.83 MB / 0.7622 GB, free: 25.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.242e-05/2.236, allocations: 96.84 kB / 0.7623 GB, free: 25.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/2.246, allocations: 4.675 MB / 0.7669 GB, free: 23.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009163/2.247, allocations: 96.42 kB / 0.767 GB, free: 23.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003028/2.25, allocations: 4.08 MB / 0.771 GB, free: 20.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001931/2.252, allocations: 1.422 MB / 0.7723 GB, free: 19.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004686/2.253, allocations: 100.1 kB / 0.7724 GB, free: 19.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000349/2.253, allocations: 0.4911 MB / 0.7729 GB, free: 18.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005153/2.258, allocations: 2.262 MB / 0.7751 GB, free: 18.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005884/2.264, allocations: 3.378 MB / 0.7784 GB, free: 15.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006319/2.27, allocations: 2.814 MB / 0.7812 GB, free: 14.74 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.294e-05/2.27, allocations: 7.406 kB / 0.7812 GB, free: 14.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.01749/2.288, allocations: 7.332 MB / 0.7883 GB, free: 11.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/2.288, allocations: 23.66 kB / 0.7884 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.268e-05/2.288, allocations: 31.5 kB / 0.7884 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005455/2.294, allocations: 1.475 MB / 0.7898 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007466/2.301, allocations: 0.9831 MB / 0.7908 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0328/2.334, allocations: 26.65 MB / 0.8168 GB, free: 5.074 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006808/2.341, allocations: 241.4 kB / 0.8171 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008272/2.342, allocations: 193.1 kB / 0.8172 GB, free: 4.879 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.001265/2.343, allocations: 395.3 kB / 0.8176 GB, free: 4.488 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001649/2.345, allocations: 0.5751 MB / 0.8182 GB, free: 3.906 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02463/2.369, allocations: 7.91 MB / 0.8259 GB, free: 13.86 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-05/2.369, allocations: 40 kB / 0.8259 GB, free: 13.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.565e-05/2.369, allocations: 34.06 kB / 0.826 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.975e-05/2.369, allocations: 20.02 kB / 0.826 GB, free: 13.79 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04472/2.414, allocations: 16.36 MB / 0.842 GB, free: 320 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/2.414, allocations: 7.438 kB / 0.842 GB, free: 316 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004608/2.419, allocations: 475.3 kB / 0.8424 GB, free: 0 / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.323/2.742, allocations: 2.242 MB / 0.8446 GB, free: 90.12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007899/2.743, allocations: 99.81 kB / 0.8447 GB, free: 90.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05085/2.794, allocations: 34.49 MB / 0.8784 GB, free: 73.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/2.794, allocations: 3.938 kB / 0.8784 GB, free: 73.38 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02477/2.818, allocations: 11.44 MB / 0.8896 GB, free: 71.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004541/2.823, allocations: 1.21 MB / 0.8907 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00176/2.825, allocations: 91.36 kB / 0.8908 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005273/2.83, allocations: 260.3 kB / 0.8911 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001531/2.832, allocations: 445.7 kB / 0.8915 GB, free: 71.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004353/2.832, allocations: 114.1 kB / 0.8916 GB, free: 71.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007998/2.84, allocations: 3.572 MB / 0.8951 GB, free: 71.49 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.84, allocations: 0 / 0.8951 GB, free: 71.49 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009888/2.85, allocations: 1.905 MB / 0.897 GB, free: 71.49 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.02687/2.877, allocations: 13.2 MB / 0.9099 GB, free: 68.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01562/2.893, allocations: 7.458 MB / 0.9171 GB, free: 64.62 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/2.893, allocations: 3.781 kB / 0.9171 GB, free: 64.62 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01233/2.905, allocations: 5.428 MB / 0.9224 GB, free: 61.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01146/2.917, allocations: 1.606 MB / 0.924 GB, free: 61.21 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04967/2.966, allocations: 17.86 MB / 0.9415 GB, free: 54.41 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01121/2.977, allocations: 6.386 MB / 0.9477 GB, free: 52.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008266/2.986, allocations: 3.93 MB / 0.9515 GB, free: 49 MB / 458.7 MB Notification: Performance of SimCode: time 1.703e-06/2.986, allocations: 0 / 0.9515 GB, free: 49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.765/11.75, allocations: 0.878 GB / 1.829 GB, free: 40.46 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase_res.mat does not exist to compare? outputFormat=mat