Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start_MultiPhase",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.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.797e-05, allocations: 4 kB / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2667, allocations: 38.77 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1778/0.4445, allocations: 101.7 MB / 365.5 MB, free: 3.988 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.4449, allocations: 79.95 kB / 365.6 MB, free: 3.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.229/1.674, allocations: 210.4 MB / 0.5625 GB, free: 25.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.674, allocations: 0 / 0.5625 GB, free: 25.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.001229/1.675, allocations: 248 kB / 0.5628 GB, free: 25.86 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.04147/1.717, allocations: 9.217 MB / 0.5718 GB, free: 22.71 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/1.717, allocations: 6.969 kB / 0.5718 GB, free: 22.71 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00587/1.722, allocations: 1.286 MB / 0.573 GB, free: 22.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01081/1.733, allocations: 1.541 MB / 0.5745 GB, free: 22.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02796/1.761, allocations: 7.529 MB / 0.5819 GB, free: 19.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/1.762, allocations: 0.7014 MB / 0.5826 GB, free: 19.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004376/1.767, allocations: 0.9253 MB / 0.5835 GB, free: 19.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04378/1.811, allocations: 12.74 MB / 0.5959 GB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005905/1.811, allocations: 11.84 kB / 0.5959 GB, free: 10.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003759/1.815, allocations: 407.2 kB / 0.5963 GB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004244/1.816, allocations: 397.9 kB / 0.5967 GB, free: 9.699 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03307/1.849, allocations: 10.11 MB / 0.6066 GB, free: 324 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4315/2.28, allocations: 40.58 MB / 0.6462 GB, free: 39.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01637/2.297, allocations: 8.561 MB / 0.6546 GB, free: 36.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01125/2.308, allocations: 4.222 MB / 0.6587 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006586/2.309, allocations: 52.41 kB / 0.6587 GB, free: 36.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.613e-05/2.309, allocations: 82.45 kB / 0.6588 GB, free: 36.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=431): time 8.786e-06/2.309, allocations: 0 / 0.6588 GB, free: 36.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=439): time 0.04523/2.354, allocations: 13.84 MB / 0.6723 GB, free: 34.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.557e-05/2.354, allocations: 96.67 kB / 0.6724 GB, free: 34.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01345/2.368, allocations: 4.602 MB / 0.6769 GB, free: 34.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001127/2.369, allocations: 101.7 kB / 0.677 GB, free: 34.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00374/2.373, allocations: 3.767 MB / 0.6807 GB, free: 32.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00244/2.375, allocations: 1.449 MB / 0.6821 GB, free: 31.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001095/2.376, allocations: 95.81 kB / 0.6822 GB, free: 31.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005251/2.377, allocations: 0.4961 MB / 0.6827 GB, free: 31.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006323/2.383, allocations: 2.217 MB / 0.6849 GB, free: 31.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007432/2.391, allocations: 3.277 MB / 0.6881 GB, free: 30.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007712/2.398, allocations: 2.762 MB / 0.6908 GB, free: 30.31 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.268e-05/2.398, allocations: 7.25 kB / 0.6908 GB, free: 30.31 MB / 378.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.02264/2.421, allocations: 7.288 MB / 0.6979 GB, free: 29.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.39e-05/2.421, allocations: 21.19 kB / 0.6979 GB, free: 29.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.355e-05/2.421, allocations: 29.66 kB / 0.6979 GB, free: 29.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006063/2.427, allocations: 1.514 MB / 0.6994 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007985/2.435, allocations: 0.9652 MB / 0.7003 GB, free: 29.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0335/2.469, allocations: 27.07 MB / 0.7268 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006915/2.476, allocations: 226.3 kB / 0.727 GB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/2.477, allocations: 179.1 kB / 0.7272 GB, free: 8.375 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * 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 (509): * Single equations (assignments): 493 * 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%) 25,(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.002505/2.48, allocations: 394.6 kB / 0.7275 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002519/2.482, allocations: 0.5718 MB / 0.7281 GB, free: 7.816 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02546/2.508, allocations: 7.645 MB / 0.7356 GB, free: 20.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.617e-05/2.508, allocations: 40.97 kB / 0.7356 GB, free: 20.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.441e-05/2.508, allocations: 28.97 kB / 0.7356 GB, free: 20.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001233/2.508, allocations: 26.69 kB / 0.7357 GB, free: 20.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05443/2.563, allocations: 17.64 MB / 0.7529 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.885e-05/2.563, allocations: 7.094 kB / 0.7529 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004197/2.567, allocations: 465.2 kB / 0.7533 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009763/2.577, allocations: 2.258 MB / 0.7555 GB, free: 12.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001055/2.578, allocations: 102.2 kB / 0.7556 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.385/2.963, allocations: 34.54 MB / 0.7894 GB, free: 69.26 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.858e-05/2.963, allocations: 15.38 kB / 0.7894 GB, free: 69.26 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03681/3, allocations: 12.07 MB / 0.8012 GB, free: 66.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007275/3.007, allocations: 1.199 MB / 0.8023 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003328/3.011, allocations: 90.75 kB / 0.8024 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009615/3.02, allocations: 254.5 kB / 0.8027 GB, free: 66.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002073/3.022, allocations: 436.6 kB / 0.8031 GB, free: 66.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001038/3.024, allocations: 119.1 kB / 0.8032 GB, free: 66.87 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009915/3.034, allocations: 3.525 MB / 0.8067 GB, free: 66.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.52e-07/3.034, allocations: 1.438 kB / 0.8067 GB, free: 66.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01118/3.045, allocations: 1.841 MB / 0.8085 GB, free: 66.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,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 (255): * Single equations (assignments): 242 * 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.03279/3.078, allocations: 14.69 MB / 0.8228 GB, free: 62.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01785/3.096, allocations: 7.568 MB / 0.8302 GB, free: 60.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-05/3.096, allocations: 3.344 kB / 0.8302 GB, free: 60.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01726/3.113, allocations: 5.866 MB / 0.8359 GB, free: 58.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.019/3.132, allocations: 1.612 MB / 0.8375 GB, free: 58.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08925/3.221, allocations: 17.42 MB / 0.8545 GB, free: 54.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01332/3.235, allocations: 6.152 MB / 0.8605 GB, free: 52.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00915/3.244, allocations: 3.675 MB / 0.8641 GB, free: 49.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.784e-06/3.244, allocations: 3.5 kB / 0.8641 GB, free: 49.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.178/12.42, allocations: 0.8382 GB / 1.702 GB, free: 88.94 MB / 442.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_MultiPhase_res.mat does not exist to compare? outputFormat=mat