Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.911e-05, allocations: 4 kB / 292.8 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1049, allocations: 50.41 MB / 343.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4858/0.5907, allocations: 118.1 MB / 461.3 MB, free: 8.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003589/0.5911, allocations: 104.2 kB / 461.4 MB, free: 8.762 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.102/1.693, allocations: 221.8 MB / 0.6671 GB, free: 23.13 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.693, allocations: 0 / 0.6671 GB, free: 23.13 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.00101/1.694, allocations: 251.7 kB / 0.6674 GB, free: 22.88 MB / 442.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.04085/1.735, allocations: 9.621 MB / 0.6768 GB, free: 13.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.735, allocations: 8.031 kB / 0.6768 GB, free: 13.15 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006132/1.741, allocations: 1.374 MB / 0.6781 GB, free: 11.77 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01704/1.758, allocations: 2.126 MB / 0.6802 GB, free: 9.625 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03138/1.789, allocations: 8.904 MB / 0.6889 GB, free: 0.6289 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3422/2.132, allocations: 0.739 MB / 0.6896 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005023/2.137, allocations: 0.9825 MB / 0.6906 GB, free: 34.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05035/2.187, allocations: 13.65 MB / 0.7039 GB, free: 33.24 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005719/2.188, allocations: 14.47 kB / 0.7039 GB, free: 33.24 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003806/2.192, allocations: 429.8 kB / 0.7043 GB, free: 33.24 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007056/2.192, allocations: 450.9 kB / 0.7048 GB, free: 33.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05101/2.243, allocations: 11.3 MB / 0.7158 GB, free: 33.17 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1212/2.365, allocations: 44.11 MB / 0.7589 GB, free: 21.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03444/2.399, allocations: 24.47 MB / 0.7828 GB, free: 16.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0117/2.411, allocations: 4.923 MB / 0.7876 GB, free: 14.26 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03418/2.445, allocations: 12.14 MB / 0.7994 GB, free: 8.551 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.773e-05/2.445, allocations: 84.84 kB / 0.7995 GB, free: 8.477 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 9.488e-06/2.445, allocations: 3.562 kB / 0.7995 GB, free: 8.477 MB / 458.7 MB Notification: Performance of matching and sorting (n=427): time 0.0394/2.485, allocations: 13.88 MB / 0.8131 GB, free: 2.109 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.979e-05/2.485, allocations: 94.77 kB / 0.8132 GB, free: 2.043 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/2.496, allocations: 4.681 MB / 0.8177 GB, free: 332 kB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009915/2.497, allocations: 103.4 kB / 0.8178 GB, free: 244 kB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004856/2.502, allocations: 4.44 MB / 0.8222 GB, free: 12.91 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002333/2.504, allocations: 1.42 MB / 0.8236 GB, free: 11.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005228/2.505, allocations: 95.34 kB / 0.8237 GB, free: 11.73 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003838/2.505, allocations: 497 kB / 0.8241 GB, free: 11.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005657/2.511, allocations: 2.267 MB / 0.8263 GB, free: 10.45 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006812/2.518, allocations: 3.373 MB / 0.8296 GB, free: 8.211 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007087/2.525, allocations: 2.824 MB / 0.8324 GB, free: 6.965 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.034e-05/2.525, allocations: 12 kB / 0.8324 GB, free: 6.953 MB / 474.7 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.0231/2.548, allocations: 7.718 MB / 0.8399 GB, free: 252 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.87e-05/2.548, allocations: 20.62 kB / 0.84 GB, free: 232 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.341e-05/2.548, allocations: 32 kB / 0.84 GB, free: 200 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006571/2.555, allocations: 1.498 MB / 0.8415 GB, free: 15.04 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008074/2.563, allocations: 0.9649 MB / 0.8424 GB, free: 14.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03796/2.601, allocations: 26.71 MB / 0.8685 GB, free: 3.746 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007008/2.608, allocations: 241.4 kB / 0.8687 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/2.609, allocations: 187.1 kB / 0.8689 GB, free: 3.363 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * 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,56.2%) 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.001354/2.611, allocations: 399.2 kB / 0.8693 GB, free: 3.031 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001854/2.613, allocations: 0.5712 MB / 0.8698 GB, free: 2.453 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3779/2.991, allocations: 7.712 MB / 0.8774 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.416e-05/2.991, allocations: 41.5 kB / 0.8774 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-05/2.991, allocations: 31.22 kB / 0.8774 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.854e-05/2.991, allocations: 22.89 kB / 0.8774 GB, free: 88.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04783/3.039, allocations: 16.35 MB / 0.8934 GB, free: 87.36 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.697e-05/3.039, allocations: 3.906 kB / 0.8934 GB, free: 87.36 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004238/3.043, allocations: 460.9 kB / 0.8939 GB, free: 87.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008936/3.052, allocations: 2.236 MB / 0.896 GB, free: 87.25 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008512/3.053, allocations: 98.53 kB / 0.8961 GB, free: 87.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05065/3.104, allocations: 34.49 MB / 0.9298 GB, free: 70.44 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/3.104, allocations: 3.688 kB / 0.9298 GB, free: 70.44 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0275/3.131, allocations: 11.38 MB / 0.9409 GB, free: 68.96 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004707/3.136, allocations: 1.204 MB / 0.9421 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002275/3.138, allocations: 89.72 kB / 0.9422 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006401/3.145, allocations: 260.2 kB / 0.9424 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001976/3.147, allocations: 429.8 kB / 0.9429 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000804/3.147, allocations: 118.2 kB / 0.943 GB, free: 68.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009322/3.157, allocations: 3.582 MB / 0.9465 GB, free: 68.65 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.192e-06/3.157, allocations: 0 / 0.9465 GB, free: 68.65 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01098/3.168, allocations: 1.906 MB / 0.9483 GB, free: 68.65 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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.02973/3.198, allocations: 13.09 MB / 0.9611 GB, free: 63.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01674/3.214, allocations: 7.475 MB / 0.9684 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/3.215, allocations: 9.438 kB / 0.9684 GB, free: 59.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01872/3.233, allocations: 5.363 MB / 0.9737 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01883/3.252, allocations: 1.594 MB / 0.9752 GB, free: 56.16 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07096/3.323, allocations: 18.05 MB / 0.9928 GB, free: 49.24 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01225/3.335, allocations: 6.552 MB / 0.9992 GB, free: 47.11 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007819/3.343, allocations: 1.268 MB / 1 GB, free: 46.96 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007929/3.351, allocations: 3.909 MB / 1.004 GB, free: 43.57 MB / 0.4948 GB Notification: Performance of SimCode: time 2.926e-06/3.351, allocations: 0 / 1.004 GB, free: 43.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7213/4.073, allocations: 165 MB / 1.165 GB, free: 47.57 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002588/4.073, allocations: 245.9 kB / 1.166 GB, free: 47.24 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.109/13.18, allocations: 3.094 kB / 1.166 GB, free: 47.24 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat