Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.832e-05/3.84e-05, allocations: 7.984 kB / 293.8 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 50.42 MB / 344.2 MB, free: 4.793 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.575/0.6829, allocations: 167.1 MB / 0.4993 GB, free: 8.301 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003713/0.6833, allocations: 102.5 kB / 0.4994 GB, free: 8.246 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.462/5.145, allocations: 0.8621 GB / 1.362 GB, free: 33.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.504e-06/5.145, allocations: 1.969 kB / 1.362 GB, free: 33.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.001921/5.147, allocations: 474.1 kB / 1.362 GB, free: 33.41 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.1008/5.248, allocations: 19.51 MB / 1.381 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/5.248, allocations: 11.16 kB / 1.381 GB, free: 27.66 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01654/5.265, allocations: 2.953 MB / 1.384 GB, free: 27.47 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08048/5.345, allocations: 9.673 MB / 1.393 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05646/5.402, allocations: 16.21 MB / 1.409 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002684/5.405, allocations: 1.519 MB / 1.411 GB, free: 13.28 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01274/5.417, allocations: 1.989 MB / 1.413 GB, free: 11.31 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6547/6.072, allocations: 33.82 MB / 1.446 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001513/6.074, allocations: 30.22 kB / 1.446 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009791/6.083, allocations: 0.8616 MB / 1.447 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002874/6.086, allocations: 1.483 MB / 1.448 GB, free: 31.47 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09693/6.183, allocations: 29.28 MB / 1.477 GB, free: 31.38 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2806/6.464, allocations: 107.4 MB / 1.581 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.08047/6.545, allocations: 50.77 MB / 1.631 GB, free: 7.785 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.599/7.144, allocations: 9.558 MB / 1.64 GB, free: 100.5 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07704/7.221, allocations: 22.6 MB / 1.662 GB, free: 99.57 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/7.221, allocations: 132.4 kB / 1.663 GB, free: 99.52 MB / 0.573 GB Notification: Performance of pre-optimization done (n=892): time 1.377e-05/7.221, allocations: 1.062 kB / 1.663 GB, free: 99.52 MB / 0.573 GB Notification: Performance of matching and sorting (n=904): time 0.0995/7.32, allocations: 32.66 MB / 1.694 GB, free: 93.76 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000117/7.321, allocations: 175.9 kB / 1.695 GB, free: 93.66 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02102/7.342, allocations: 7.339 MB / 1.702 GB, free: 93.06 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002077/7.344, allocations: 172.3 kB / 1.702 GB, free: 93.03 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.008143/7.352, allocations: 8.664 MB / 1.71 GB, free: 88.58 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004951/7.357, allocations: 3.041 MB / 1.713 GB, free: 86.66 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002898/7.36, allocations: 227.3 kB / 1.714 GB, free: 86.66 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001706/7.362, allocations: 0.7719 MB / 1.714 GB, free: 86.33 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01678/7.378, allocations: 6.008 MB / 1.72 GB, free: 86.3 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02028/7.399, allocations: 9.534 MB / 1.73 GB, free: 82.12 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02025/7.419, allocations: 8.097 MB / 1.737 GB, free: 81.25 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002478/7.419, allocations: 31.44 kB / 1.738 GB, free: 81.25 MB / 0.573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.07969/7.499, allocations: 19.41 MB / 1.756 GB, free: 74.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001864/7.499, allocations: 52.31 kB / 1.757 GB, free: 74.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003303/7.5, allocations: 118.3 kB / 1.757 GB, free: 74.39 MB / 0.573 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.004607/7.504, allocations: 0.8148 MB / 1.757 GB, free: 74.17 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02043/7.525, allocations: 2.375 MB / 1.76 GB, free: 74.09 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01566/7.541, allocations: 11.45 MB / 1.771 GB, free: 65.21 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01538/7.556, allocations: 0.6107 MB / 1.772 GB, free: 65.02 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003324/7.559, allocations: 0.5044 MB / 1.772 GB, free: 64.93 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1214): * Single equations (assignments): 1207 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005535/7.565, allocations: 0.7981 MB / 1.773 GB, free: 64.42 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003894/7.569, allocations: 0.9041 MB / 1.774 GB, free: 63.95 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07256/7.641, allocations: 16.68 MB / 1.79 GB, free: 55.07 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001199/7.642, allocations: 88 kB / 1.79 GB, free: 54.99 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000151/7.642, allocations: 51.06 kB / 1.79 GB, free: 54.94 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002711/7.642, allocations: 46.5 kB / 1.79 GB, free: 54.94 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1061/7.748, allocations: 35.54 MB / 1.825 GB, free: 26.08 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001036/7.748, allocations: 6.297 kB / 1.825 GB, free: 26.08 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01259/7.761, allocations: 1.416 MB / 1.826 GB, free: 24.98 MB / 0.573 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing= and --maxSizeNonlinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.003852/7.765, allocations: 0.8462 MB / 1.827 GB, free: 24.29 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001962/7.767, allocations: 203 kB / 1.827 GB, free: 24.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5363/8.303, allocations: 15.65 MB / 1.843 GB, free: 87.78 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.59e-05/8.303, allocations: 11.84 kB / 1.843 GB, free: 87.78 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07323/8.376, allocations: 25.4 MB / 1.867 GB, free: 85.22 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008947/8.385, allocations: 2.248 MB / 1.87 GB, free: 85.12 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004058/8.39, allocations: 182 kB / 1.87 GB, free: 85.12 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01184/8.401, allocations: 0.5001 MB / 1.87 GB, free: 85.12 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003411/8.405, allocations: 0.7882 MB / 1.871 GB, free: 85.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002116/8.407, allocations: 260.6 kB / 1.871 GB, free: 85.11 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01569/8.423, allocations: 5.542 MB / 1.877 GB, free: 84.82 MB / 0.573 GB Notification: Performance of sort global known variables: time 7.41e-07/8.423, allocations: 0 / 1.877 GB, free: 84.82 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02083/8.444, allocations: 3.512 MB / 1.88 GB, free: 84.82 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (701): * Single equations (assignments): 693 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(204,1.3%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07532/8.519, allocations: 27.7 MB / 1.907 GB, free: 80.82 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04213/8.561, allocations: 15.34 MB / 1.922 GB, free: 79.91 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.698e-05/8.561, allocations: 0 / 1.922 GB, free: 79.91 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.02383/8.585, allocations: 8.413 MB / 1.93 GB, free: 78.98 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02107/8.606, allocations: 2.339 MB / 1.933 GB, free: 78.93 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.135/8.741, allocations: 38.9 MB / 1.971 GB, free: 62.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04067/8.782, allocations: 13.46 MB / 1.984 GB, free: 52.28 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.03237/8.814, allocations: 3.955 MB / 1.988 GB, free: 49.69 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02531/8.84, allocations: 7.737 MB / 1.995 GB, free: 42.46 MB / 0.573 GB Notification: Performance of SimCode: time 1.763e-06/8.84, allocations: 1.859 kB / 1.995 GB, free: 42.46 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.181/11.02, allocations: 284 MB / 2.273 GB, free: 37.62 MB / 0.6199 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003257/11.02, allocations: 234.1 kB / 2.273 GB, free: 37.32 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/25.87, allocations: 3.75 kB / 2.273 GB, free: 37.32 MB / 0.6199 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat