Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 205.8 MB / 218.9 MB, free: 9.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.492e-05/3.493e-05, allocations: 7.984 kB / 269.5 MB, free: 6.273 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 47.57 MB / 317 MB, free: 6.621 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.534/0.6394, allocations: 146.5 MB / 463.6 MB, free: 6.047 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003566/0.6398, allocations: 97.69 kB / 463.7 MB, free: 5.996 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.675/2.315, allocations: 350.5 MB / 0.7951 GB, free: 52.68 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.425e-06/2.315, allocations: 0 / 0.7951 GB, free: 52.68 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008486/2.316, allocations: 243.8 kB / 0.7953 GB, free: 52.44 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04821/2.364, allocations: 10.29 MB / 0.8054 GB, free: 42.23 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.679e-05/2.364, allocations: 8.031 kB / 0.8054 GB, free: 42.22 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0092/2.373, allocations: 1.527 MB / 0.8069 GB, free: 40.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04471/2.418, allocations: 5.386 MB / 0.8122 GB, free: 35.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03135/2.449, allocations: 9.376 MB / 0.8213 GB, free: 25.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001052/2.451, allocations: 0.7905 MB / 0.8221 GB, free: 25.03 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004957/2.455, allocations: 1.047 MB / 0.8231 GB, free: 23.98 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05945/2.515, allocations: 17.59 MB / 0.8403 GB, free: 6.051 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006287/2.516, allocations: 15.84 kB / 0.8403 GB, free: 6.035 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004731/2.52, allocations: 452 kB / 0.8407 GB, free: 5.594 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001385/2.522, allocations: 0.7392 MB / 0.8414 GB, free: 4.852 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7236/3.246, allocations: 16.28 MB / 0.8573 GB, free: 44.61 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1525/3.398, allocations: 58.31 MB / 0.9143 GB, free: 30.78 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03537/3.433, allocations: 23.25 MB / 0.937 GB, free: 12.86 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01656/3.45, allocations: 6.939 MB / 0.9438 GB, free: 9.91 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06511/3.515, allocations: 21.89 MB / 0.9652 GB, free: 14.89 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/3.515, allocations: 96.98 kB / 0.9652 GB, free: 14.8 MB / 458.8 MB Notification: Performance of pre-optimization done (n=662): time 1.108e-05/3.515, allocations: 0 / 0.9652 GB, free: 14.8 MB / 458.8 MB Notification: Performance of matching and sorting (n=687): time 0.08398/3.599, allocations: 25.01 MB / 0.9897 GB, free: 16 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/3.6, allocations: 145.9 kB / 0.9898 GB, free: 15.84 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01194/3.612, allocations: 3.567 MB / 0.9933 GB, free: 12.62 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001738/3.613, allocations: 125.7 kB / 0.9934 GB, free: 12.49 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00506/3.619, allocations: 4.226 MB / 0.9975 GB, free: 8.742 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004734/3.623, allocations: 2.281 MB / 0.9998 GB, free: 6.684 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001923/3.625, allocations: 136 kB / 0.9999 GB, free: 6.551 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001077/3.626, allocations: 0.5904 MB / 1 GB, free: 6.039 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01355/3.64, allocations: 4.438 MB / 1.005 GB, free: 2.039 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02818/3.668, allocations: 6.72 MB / 1.011 GB, free: 14.02 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01637/3.685, allocations: 5.468 MB / 1.017 GB, free: 9.328 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-05/3.685, allocations: 12 kB / 1.017 GB, free: 9.316 MB / 490.8 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.4203/4.105, allocations: 13.71 MB / 1.03 GB, free: 84.32 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.938e-05/4.105, allocations: 24.78 kB / 1.03 GB, free: 84.32 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/4.105, allocations: 44.39 kB / 1.03 GB, free: 84.32 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01519/4.121, allocations: 3.973 MB / 1.034 GB, free: 84.24 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01112/4.132, allocations: 1.3 MB / 1.035 GB, free: 84.24 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02905/4.161, allocations: 16.73 MB / 1.052 GB, free: 77.79 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008534/4.169, allocations: 353.2 kB / 1.052 GB, free: 77.79 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002063/4.172, allocations: 297.3 kB / 1.052 GB, free: 77.79 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.002691/4.174, allocations: 472.3 kB / 1.053 GB, free: 77.69 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002274/4.177, allocations: 0.5356 MB / 1.053 GB, free: 77.68 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03616/4.213, allocations: 13.14 MB / 1.066 GB, free: 77.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002461/4.213, allocations: 153.6 kB / 1.066 GB, free: 77.1 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.595e-05/4.213, allocations: 12.77 kB / 1.066 GB, free: 77.1 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001675/4.213, allocations: 28.12 kB / 1.066 GB, free: 77.1 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06651/4.28, allocations: 26.48 MB / 1.092 GB, free: 74.99 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001079/4.28, allocations: 6.625 kB / 1.092 GB, free: 74.99 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007736/4.288, allocations: 0.8607 MB / 1.093 GB, free: 74.96 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01338/4.301, allocations: 3.919 MB / 1.097 GB, free: 73.79 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001663/4.303, allocations: 153.7 kB / 1.097 GB, free: 73.7 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02839/4.331, allocations: 20.66 MB / 1.117 GB, free: 58.49 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/4.331, allocations: 7.344 kB / 1.117 GB, free: 58.49 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0479/4.379, allocations: 19.79 MB / 1.136 GB, free: 49.19 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005867/4.385, allocations: 1.644 MB / 1.138 GB, free: 48.3 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002654/4.388, allocations: 109.4 kB / 1.138 GB, free: 48.22 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007171/4.395, allocations: 300.6 kB / 1.138 GB, free: 48.15 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002491/4.398, allocations: 0.5086 MB / 1.139 GB, free: 48.05 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001419/4.399, allocations: 190.4 kB / 1.139 GB, free: 48 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.007175/4.406, allocations: 2.692 MB / 1.142 GB, free: 46.93 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.122e-06/4.406, allocations: 0 / 1.142 GB, free: 46.93 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01186/4.418, allocations: 1.975 MB / 1.144 GB, free: 46.73 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 403 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.05016/4.468, allocations: 21.72 MB / 1.165 GB, free: 30.8 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.02997/4.498, allocations: 11.41 MB / 1.176 GB, free: 20.55 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/4.499, allocations: 8 kB / 1.176 GB, free: 20.55 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01799/4.517, allocations: 6.461 MB / 1.182 GB, free: 14.7 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01031/4.527, allocations: 1.18 MB / 1.184 GB, free: 13.79 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07413/4.601, allocations: 22.73 MB / 1.206 GB, free: 10.01 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01798/4.619, allocations: 7.124 MB / 1.213 GB, free: 4.637 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01206/4.631, allocations: 1.654 MB / 1.214 GB, free: 3.5 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3787/5.01, allocations: 4.011 MB / 1.218 GB, free: 96 MB / 0.4949 GB Notification: Performance of SimCode: time 2.144e-06/5.01, allocations: 1.375 kB / 1.218 GB, free: 96 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8356/5.846, allocations: 189.7 MB / 1.403 GB, free: 69.76 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000248/5.846, allocations: 243.6 kB / 1.404 GB, free: 69.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.793/14.64, allocations: 0 / 1.404 GB, free: 69.45 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat