Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.065/2.065, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.177e-05/3.187e-05, allocations: 4 kB / 292.3 MB, free: 8.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1094, allocations: 50.4 MB / 342.7 MB, free: 5.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4796/0.589, allocations: 118.1 MB / 460.7 MB, free: 8.762 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000375/0.5894, allocations: 98.94 kB / 460.8 MB, free: 8.707 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.106/1.696, allocations: 221.8 MB / 0.6666 GB, free: 23 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.696, allocations: 0 / 0.6666 GB, free: 23 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001026/1.697, allocations: 259.7 kB / 0.6669 GB, free: 22.75 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.04084/1.738, allocations: 9.617 MB / 0.6763 GB, free: 13.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/1.738, allocations: 8.031 kB / 0.6763 GB, free: 13.02 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005944/1.744, allocations: 1.374 MB / 0.6776 GB, free: 11.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01679/1.761, allocations: 2.122 MB / 0.6797 GB, free: 9.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03139/1.792, allocations: 8.919 MB / 0.6884 GB, free: 500 kB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.7208/2.513, allocations: 0.7409 MB / 0.6891 GB, free: 32.6 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006675/2.52, allocations: 0.9803 MB / 0.6901 GB, free: 32.6 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05885/2.578, allocations: 13.66 MB / 0.7034 GB, free: 31.52 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005041/2.579, allocations: 14.62 kB / 0.7034 GB, free: 31.52 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003446/2.582, allocations: 426.3 kB / 0.7038 GB, free: 31.52 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006798/2.583, allocations: 455.6 kB / 0.7043 GB, free: 31.49 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03712/2.62, allocations: 11.3 MB / 0.7153 GB, free: 31.45 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.11/2.73, allocations: 44.1 MB / 0.7584 GB, free: 19.54 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03531/2.766, allocations: 24.47 MB / 0.7823 GB, free: 14.29 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01182/2.778, allocations: 4.939 MB / 0.7871 GB, free: 12.47 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03499/2.813, allocations: 12.12 MB / 0.7989 GB, free: 6.766 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.746e-05/2.813, allocations: 90.39 kB / 0.799 GB, free: 6.691 MB / 458.8 MB Notification: Performance of pre-optimization done (n=421): time 7.063e-06/2.813, allocations: 0 / 0.799 GB, free: 6.691 MB / 458.8 MB Notification: Performance of matching and sorting (n=427): time 0.03845/2.851, allocations: 13.87 MB / 0.8126 GB, free: 332 kB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.64e-05/2.851, allocations: 103.7 kB / 0.8127 GB, free: 260 kB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01148/2.863, allocations: 4.676 MB / 0.8172 GB, free: 14.54 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009759/2.864, allocations: 97.64 kB / 0.8173 GB, free: 14.46 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004852/2.869, allocations: 4.436 MB / 0.8217 GB, free: 11.11 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002358/2.871, allocations: 1.423 MB / 0.823 GB, free: 10.01 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000546/2.872, allocations: 102.9 kB / 0.8231 GB, free: 9.93 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0004054/2.872, allocations: 495.7 kB / 0.8236 GB, free: 9.543 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005774/2.878, allocations: 2.265 MB / 0.8258 GB, free: 8.645 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007072/2.885, allocations: 3.382 MB / 0.8291 GB, free: 6.41 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007306/2.892, allocations: 2.821 MB / 0.8319 GB, free: 4.891 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.851e-05/2.893, allocations: 9.938 kB / 0.8319 GB, free: 4.883 MB / 474.8 MB Notification: Performance of matching and sorting (n=614) (initialization): time 0.02523/2.918, allocations: 7.881 MB / 0.8396 GB, free: 14.59 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.821e-05/2.918, allocations: 19.8 kB / 0.8396 GB, free: 14.58 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.471e-05/2.918, allocations: 36 kB / 0.8396 GB, free: 14.54 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006207/2.924, allocations: 1.474 MB / 0.8411 GB, free: 13.33 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008189/2.932, allocations: 0.9712 MB / 0.842 GB, free: 12.56 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03856/2.971, allocations: 26.7 MB / 0.8681 GB, free: 2.062 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006903/2.978, allocations: 242.2 kB / 0.8683 GB, free: 1.859 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/2.979, allocations: 187.8 kB / 0.8685 GB, free: 1.68 MB / 0.4949 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.001292/2.98, allocations: 398.7 kB / 0.8689 GB, free: 1.352 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001815/2.982, allocations: 0.5751 MB / 0.8695 GB, free: 0.7695 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3752/3.357, allocations: 7.698 MB / 0.877 GB, free: 87.4 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-05/3.357, allocations: 39.53 kB / 0.877 GB, free: 87.4 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.492e-05/3.357, allocations: 28.59 kB / 0.877 GB, free: 87.4 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001176/3.358, allocations: 25.33 kB / 0.8771 GB, free: 87.4 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04558/3.403, allocations: 16.35 MB / 0.893 GB, free: 86.19 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-05/3.403, allocations: 6.094 kB / 0.893 GB, free: 86.19 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00432/3.408, allocations: 452.7 kB / 0.8935 GB, free: 86.19 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00883/3.416, allocations: 2.241 MB / 0.8957 GB, free: 86.08 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007621/3.417, allocations: 92.94 kB / 0.8957 GB, free: 86.08 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04869/3.466, allocations: 34.49 MB / 0.9294 GB, free: 69.27 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/3.466, allocations: 3.812 kB / 0.9294 GB, free: 69.27 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02574/3.492, allocations: 11.38 MB / 0.9405 GB, free: 67.79 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00448/3.496, allocations: 1.208 MB / 0.9417 GB, free: 67.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001906/3.498, allocations: 79.28 kB / 0.9418 GB, free: 67.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005714/3.504, allocations: 263 kB / 0.9421 GB, free: 67.7 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001735/3.506, allocations: 435.8 kB / 0.9425 GB, free: 67.69 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005059/3.506, allocations: 115.4 kB / 0.9426 GB, free: 67.69 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008822/3.515, allocations: 3.577 MB / 0.9461 GB, free: 67.48 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9.02e-07/3.515, allocations: 0 / 0.9461 GB, free: 67.48 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01038/3.526, allocations: 1.903 MB / 0.9479 GB, free: 67.48 MB / 0.4949 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.02768/3.553, allocations: 13.09 MB / 0.9607 GB, free: 61.45 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01607/3.569, allocations: 7.48 MB / 0.968 GB, free: 57.66 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.231e-05/3.569, allocations: 6.344 kB / 0.968 GB, free: 57.66 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01228/3.582, allocations: 5.356 MB / 0.9733 GB, free: 54.65 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01191/3.594, allocations: 1.594 MB / 0.9748 GB, free: 54.27 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05083/3.645, allocations: 18.06 MB / 0.9925 GB, free: 47.35 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01169/3.656, allocations: 6.546 MB / 0.9988 GB, free: 44.32 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.00762/3.664, allocations: 1.268 MB / 1 GB, free: 43.44 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008054/3.672, allocations: 3.907 MB / 1.004 GB, free: 39.8 MB / 0.4949 GB Notification: Performance of SimCode: time 2.084e-06/3.672, allocations: 0 / 1.004 GB, free: 39.8 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7171/4.389, allocations: 165 MB / 1.165 GB, free: 46.79 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002443/4.39, allocations: 252.1 kB / 1.165 GB, free: 46.45 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.951/13.34, allocations: 1.422 kB / 1.165 GB, free: 46.45 MB / 0.4949 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat