Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL") Notification: Performance of loadModel(Modelica): time 2.389/2.389, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.93e-05/2.928e-05, allocations: 0 / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1078, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_DOL): time 0.01402/0.1219, allocations: 8.06 MB / 353 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007649/0.1296, allocations: 2.837 MB / 355.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001772/0.1315, allocations: 71.69 kB / 355.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002219/0.1337, allocations: 0.5088 MB / 356.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003393/0.1372, allocations: 0.6463 MB / 357.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001454/0.1387, allocations: 255.6 kB / 357.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004012/0.1427, allocations: 1.408 MB / 358.8 MB, free: 11.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002773/0.1455, allocations: 1.297 MB / 360.1 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00175/0.1473, allocations: 0.7557 MB / 360.8 MB, free: 9.047 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.1499, allocations: 1.059 MB / 361.9 MB, free: 7.984 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.1512, allocations: 167.9 kB / 362 MB, free: 7.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006137/0.1518, allocations: 96 kB / 362.1 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001198/0.153, allocations: 0.6659 MB / 362.8 MB, free: 7.059 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.1541, allocations: 240 kB / 363 MB, free: 6.824 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005853/0.16, allocations: 3.693 MB / 366.7 MB, free: 3.121 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.16, allocations: 3.938 kB / 366.7 MB, free: 3.117 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1601, allocations: 0 / 366.7 MB, free: 3.117 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000162/0.1602, allocations: 0 / 366.7 MB, free: 3.117 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.008333/0.1686, allocations: 2.527 MB / 369.2 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.1686, allocations: 12.03 kB / 369.3 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.1704, allocations: 328.3 kB / 369.6 MB, free: 196 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005218/0.1757, allocations: 1.651 MB / 371.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000341/0.1761, allocations: 192.5 kB / 371.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008992/0.177, allocations: 235.9 kB / 371.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.1871, allocations: 3.113 MB / 374.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001149/0.1873, allocations: 4 kB / 374.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005211/0.1878, allocations: 95.98 kB / 374.9 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001835/0.188, allocations: 104.6 kB / 375 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009481/0.1975, allocations: 2.704 MB / 377.7 MB, free: 7.938 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02799/0.2256, allocations: 9.743 MB / 387.4 MB, free: 13.9 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005037/0.2307, allocations: 2.174 MB / 389.6 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005796/0.2313, allocations: 203.2 kB / 389.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.84e-05/0.2314, allocations: 51.5 kB / 389.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 4.378e-06/0.2314, allocations: 0 / 389.8 MB, free: 11.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=131): time 0.02661/0.258, allocations: 6.944 MB / 396.8 MB, free: 4.164 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.2581, allocations: 68.72 kB / 396.8 MB, free: 4.086 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003806/0.2619, allocations: 1.5 MB / 398.3 MB, free: 2.586 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/0.2623, allocations: 45.7 kB / 398.4 MB, free: 2.535 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.2636, allocations: 1.089 MB / 399.5 MB, free: 1.434 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007607/0.2644, allocations: 457.5 kB / 399.9 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.2646, allocations: 31.94 kB / 400 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002136/0.2648, allocations: 370.8 kB / 400.3 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2832/0.548, allocations: 0.809 MB / 401.1 MB, free: 48.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003359/0.5514, allocations: 1.207 MB / 402.3 MB, free: 47.78 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003284/0.5547, allocations: 0.9796 MB / 403.3 MB, free: 47.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.291e-05/0.5548, allocations: 9.094 kB / 403.3 MB, free: 47.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.008332/0.5632, allocations: 2.547 MB / 405.9 MB, free: 46.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.385e-05/0.5633, allocations: 9.844 kB / 405.9 MB, free: 46.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.444e-05/0.5633, allocations: 12.53 kB / 405.9 MB, free: 46.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.5649, allocations: 392.7 kB / 406.3 MB, free: 46.45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002992/0.568, allocations: 375.5 kB / 406.6 MB, free: 46.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009483/0.5775, allocations: 6.36 MB / 413 MB, free: 41.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002294/0.5799, allocations: 113.1 kB / 413.1 MB, free: 41.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002326/0.5801, allocations: 62.62 kB / 413.2 MB, free: 41.43 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (177): * Single equations (assignments): 173 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002164/0.5823, allocations: 0.793 MB / 414 MB, free: 41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/0.5829, allocations: 183.2 kB / 414.1 MB, free: 41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00705/0.59, allocations: 2.395 MB / 416.5 MB, free: 40 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.5901, allocations: 15.78 kB / 416.6 MB, free: 40 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.296e-05/0.5901, allocations: 6.969 kB / 416.6 MB, free: 40 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.465e-05/0.5901, allocations: 6.609 kB / 416.6 MB, free: 40 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.6068, allocations: 5.09 MB / 421.7 MB, free: 37.89 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.152e-05/0.6069, allocations: 4.656 kB / 421.7 MB, free: 37.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002063/0.6089, allocations: 250.9 kB / 421.9 MB, free: 37.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/0.6108, allocations: 437.5 kB / 422.3 MB, free: 37.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002502/0.6111, allocations: 35.2 kB / 422.4 MB, free: 37.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009957/0.621, allocations: 7.875 MB / 430.2 MB, free: 30.65 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.6211, allocations: 4 kB / 430.2 MB, free: 30.64 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008693/0.6298, allocations: 3.756 MB / 434 MB, free: 26.81 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/0.6314, allocations: 434.9 kB / 434.4 MB, free: 26.37 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006658/0.6321, allocations: 36 kB / 434.5 MB, free: 26.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/0.6339, allocations: 95.89 kB / 434.6 MB, free: 26.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004305/0.6344, allocations: 116.7 kB / 434.7 MB, free: 26.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001302/0.6345, allocations: 43.98 kB / 434.7 MB, free: 26.08 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002475/0.637, allocations: 1.151 MB / 435.9 MB, free: 24.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.6371, allocations: 0 / 435.9 MB, free: 24.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00294/0.64, allocations: 0.5007 MB / 436.4 MB, free: 24.44 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 113 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 1,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006454/0.6407, allocations: 179.7 kB / 436.5 MB, free: 24.26 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006387/0.6471, allocations: 2.463 MB / 439 MB, free: 21.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.6472, allocations: 0 / 439 MB, free: 21.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004058/0.6513, allocations: 1.606 MB / 440.6 MB, free: 20.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/0.6548, allocations: 434.7 kB / 441 MB, free: 19.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.6677, allocations: 5.965 MB / 447 MB, free: 13.63 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/0.67, allocations: 2.008 MB / 449 MB, free: 11.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009376/0.671, allocations: 139.4 kB / 449.1 MB, free: 11.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/0.671, allocations: 0 / 449.1 MB, free: 11.46 MB / 330.7 MB Notification: Performance of Templates: time 0.1587/0.8297, allocations: 74.88 MB / 0.5117 GB, free: 0.5938 MB / 394.7 MB