Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.457e-05/3.464e-05, allocations: 3.938 kB / 292.2 MB, free: 8.816 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09512, allocations: 50.42 MB / 342.6 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4285/0.5236, allocations: 131.7 MB / 474.3 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.524, allocations: 96.38 kB / 474.4 MB, free: 11.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6835/1.208, allocations: 124.4 MB / 0.5848 GB, free: 97.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.3e-06/1.208, allocations: 4 kB / 0.5848 GB, free: 97.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005098/1.208, allocations: 141.2 kB / 0.5849 GB, free: 97.33 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01657/1.225, allocations: 5.118 MB / 0.5899 GB, free: 94.95 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/1.225, allocations: 10.88 kB / 0.5899 GB, free: 94.95 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00676/1.232, allocations: 1.015 MB / 0.5909 GB, free: 94.56 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01425/1.246, allocations: 4.606 MB / 0.5954 GB, free: 92.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/1.246, allocations: 400.2 kB / 0.5958 GB, free: 92.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/1.248, allocations: 0.5245 MB / 0.5963 GB, free: 91.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01835/1.267, allocations: 6.76 MB / 0.6029 GB, free: 88.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001967/1.267, allocations: 15.31 kB / 0.6029 GB, free: 88.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009402/1.268, allocations: 224.9 kB / 0.6031 GB, free: 88.56 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002753/1.268, allocations: 250.2 kB / 0.6034 GB, free: 88.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/1.282, allocations: 5.354 MB / 0.6086 GB, free: 83.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04529/1.328, allocations: 22.53 MB / 0.6306 GB, free: 60.17 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008479/1.336, allocations: 8.24 MB / 0.6387 GB, free: 51.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004141/1.34, allocations: 2.101 MB / 0.6407 GB, free: 48.94 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01393/1.354, allocations: 6.307 MB / 0.6469 GB, free: 42.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/1.354, allocations: 60.55 kB / 0.6469 GB, free: 42.5 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 5.853e-06/1.354, allocations: 0 / 0.6469 GB, free: 42.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=254): time 0.02613/1.38, allocations: 10.1 MB / 0.6568 GB, free: 32.35 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/1.38, allocations: 77.41 kB / 0.6569 GB, free: 32.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005489/1.386, allocations: 2.725 MB / 0.6595 GB, free: 29.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004575/1.386, allocations: 69.7 kB / 0.6596 GB, free: 29.46 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/1.388, allocations: 2.314 MB / 0.6618 GB, free: 27.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009074/1.389, allocations: 0.876 MB / 0.6627 GB, free: 26.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/1.389, allocations: 64 kB / 0.6628 GB, free: 26.2 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001961/1.389, allocations: 441.7 kB / 0.6632 GB, free: 25.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00264/1.392, allocations: 1.326 MB / 0.6645 GB, free: 24.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00344/1.395, allocations: 2.271 MB / 0.6667 GB, free: 21.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003548/1.399, allocations: 1.741 MB / 0.6684 GB, free: 19.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.691e-05/1.399, allocations: 8 kB / 0.6684 GB, free: 19.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.009628/1.409, allocations: 4.471 MB / 0.6728 GB, free: 15.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.26e-05/1.409, allocations: 16 kB / 0.6728 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.186e-05/1.409, allocations: 32 kB / 0.6728 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00218/1.411, allocations: 0.7194 MB / 0.6735 GB, free: 14.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/1.415, allocations: 0.7605 MB / 0.6743 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/1.426, allocations: 9.754 MB / 0.6838 GB, free: 3.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003689/1.43, allocations: 199.8 kB / 0.684 GB, free: 3.375 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005693/1.431, allocations: 144 kB / 0.6841 GB, free: 3.234 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (378): * Single equations (assignments): 372 * 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: 4 * 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: 4 {(6,72.2%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006428/1.431, allocations: 299.9 kB / 0.6844 GB, free: 2.934 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008103/1.432, allocations: 351.6 kB / 0.6847 GB, free: 2.586 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2802/1.712, allocations: 4.221 MB / 0.6889 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.863e-05/1.712, allocations: 26.47 kB / 0.6889 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.062e-05/1.713, allocations: 10.31 kB / 0.6889 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.094e-05/1.713, allocations: 14.83 kB / 0.6889 GB, free: 86.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.737, allocations: 9.189 MB / 0.6979 GB, free: 85.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.562e-05/1.737, allocations: 3.969 kB / 0.6979 GB, free: 85.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002666/1.74, allocations: 416.8 kB / 0.6983 GB, free: 85.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00366/1.743, allocations: 0.9618 MB / 0.6992 GB, free: 85.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004869/1.744, allocations: 67.62 kB / 0.6993 GB, free: 85.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/1.764, allocations: 15.94 MB / 0.7149 GB, free: 76.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.564e-06/1.764, allocations: 6.219 kB / 0.7149 GB, free: 76.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.013/1.777, allocations: 6.371 MB / 0.7211 GB, free: 75.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002417/1.78, allocations: 0.7257 MB / 0.7218 GB, free: 75.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001045/1.781, allocations: 63.97 kB / 0.7219 GB, free: 75.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002783/1.784, allocations: 160.2 kB / 0.722 GB, free: 75.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006149/1.784, allocations: 191.4 kB / 0.7222 GB, free: 75.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002674/1.784, allocations: 80.7 kB / 0.7223 GB, free: 75.14 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004908/1.789, allocations: 2.063 MB / 0.7243 GB, free: 74.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.279e-06/1.789, allocations: 0 / 0.7243 GB, free: 74.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005788/1.795, allocations: 1.088 MB / 0.7253 GB, free: 74.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 190 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001279/1.797, allocations: 0.631 MB / 0.726 GB, free: 74.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008267/1.805, allocations: 4.053 MB / 0.7299 GB, free: 72.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.278e-06/1.805, allocations: 3 kB / 0.7299 GB, free: 72.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005779/1.811, allocations: 2.703 MB / 0.7326 GB, free: 71.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005453/1.816, allocations: 0.8855 MB / 0.7334 GB, free: 71.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0195/1.836, allocations: 8.248 MB / 0.7415 GB, free: 67.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004767/1.841, allocations: 3.443 MB / 0.7448 GB, free: 66.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/1.842, allocations: 265 kB / 0.7451 GB, free: 66.57 MB / 442.7 MB Notification: Performance of SimCode: time 1.873e-06/1.842, allocations: 3.031 kB / 0.7451 GB, free: 66.57 MB / 442.7 MB Notification: Performance of Templates: time 0.6823/2.524, allocations: 225 MB / 0.9649 GB, free: 62.06 MB / 474.7 MB