Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadModel(PowerSystems): time 2.246/2.246, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.795e-05/3.788e-05, allocations: 4 kB / 304.4 MB, free: 1.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.3597, allocations: 53.22 MB / 357.6 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.008518/0.3683, allocations: 4.821 MB / 362.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004629/0.3729, allocations: 1.804 MB / 364.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007174/0.3737, allocations: 31.22 kB / 364.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005239/0.3742, allocations: 123.6 kB / 364.4 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001367/0.3756, allocations: 283.2 kB / 364.6 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006778/0.3763, allocations: 149.7 kB / 364.8 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.3774, allocations: 345.5 kB / 365.1 MB, free: 8.504 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004924/0.3779, allocations: 248.1 kB / 365.4 MB, free: 8.363 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006091/0.3785, allocations: 201.9 kB / 365.6 MB, free: 8.254 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004952/0.3791, allocations: 195.5 kB / 365.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002529/0.3793, allocations: 43.27 kB / 365.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.824e-05/0.3794, allocations: 18.12 kB / 365.8 MB, free: 8.133 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000171/0.3796, allocations: 106.7 kB / 365.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.3798, allocations: 44.72 kB / 366 MB, free: 8.062 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008751/0.3807, allocations: 491.7 kB / 366.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3807, allocations: 0 / 366.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3807, allocations: 0 / 366.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.3807, allocations: 1.25 kB / 366.4 MB, free: 7.719 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002039/0.3828, allocations: 0.7315 MB / 367.2 MB, free: 7.086 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.3829, allocations: 13.5 kB / 367.2 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.3831, allocations: 54.47 kB / 367.2 MB, free: 7.055 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001183/0.3843, allocations: 439.4 kB / 367.7 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.134e-05/0.3843, allocations: 27.5 kB / 367.7 MB, free: 6.664 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.3845, allocations: 36.97 kB / 367.7 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.3856, allocations: 456.6 kB / 368.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.3856, allocations: 1.219 kB / 368.2 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/0.3857, allocations: 19.77 kB / 368.2 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.3857, allocations: 9.844 kB / 368.2 MB, free: 6.301 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007771/0.3865, allocations: 286.1 kB / 368.5 MB, free: 6.156 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003549/0.3901, allocations: 1.873 MB / 370.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007668/0.3909, allocations: 242.1 kB / 370.6 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.483e-05/0.391, allocations: 192 / 370.6 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004155/0.3914, allocations: 178.8 kB / 370.8 MB, free: 4.066 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.114e-06/0.3914, allocations: 0 / 370.8 MB, free: 4.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.003228/0.3946, allocations: 1.141 MB / 371.9 MB, free: 2.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.786e-05/0.3948, allocations: 132.5 kB / 372 MB, free: 2.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006749/0.3955, allocations: 348.7 kB / 372.4 MB, free: 2.332 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.3955, allocations: 33.7 kB / 372.4 MB, free: 2.293 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002579/0.3958, allocations: 302.1 kB / 372.7 MB, free: 1.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001279/0.396, allocations: 94.8 kB / 372.8 MB, free: 1.902 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.396, allocations: 12 kB / 372.8 MB, free: 1.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.3962, allocations: 330.8 kB / 373.1 MB, free: 1.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002801/0.3965, allocations: 92.7 kB / 373.2 MB, free: 1.469 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/0.3969, allocations: 213.7 kB / 373.4 MB, free: 1.203 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004039/0.3973, allocations: 153.6 kB / 373.6 MB, free: 1.047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3973, allocations: 0 / 373.6 MB, free: 1.047 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001446/0.3987, allocations: 439.5 kB / 374 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.382e-05/0.3988, allocations: 33.7 kB / 374 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.3989, allocations: 4 kB / 374 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006865/0.3996, allocations: 101.2 kB / 374.1 MB, free: 468 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004615/0.4, allocations: 63.91 kB / 374.2 MB, free: 404 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003594/0.4036, allocations: 1.843 MB / 376 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005248/0.4042, allocations: 27.89 kB / 376.1 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/0.4043, allocations: 19.94 kB / 376.1 MB, free: 14.37 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003698/0.4047, allocations: 193.5 kB / 376.3 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.261e-05/0.4048, allocations: 39.53 kB / 376.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001011/0.4058, allocations: 309.8 kB / 376.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.4058, allocations: 4 kB / 376.6 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.4058, allocations: 7.953 kB / 376.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.4059, allocations: 3.984 kB / 376.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001809/0.4077, allocations: 0.7727 MB / 377.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.4077, allocations: 7.984 kB / 377.4 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004911/0.4082, allocations: 51.92 kB / 377.5 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003532/0.4086, allocations: 48.8 kB / 377.5 MB, free: 12.87 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.481e-05/0.4086, allocations: 8 kB / 377.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.4106, allocations: 1.445 MB / 379 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4106, allocations: 0 / 379 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.412, allocations: 0.5165 MB / 379.5 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000295/0.4123, allocations: 144.5 kB / 379.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.893e-05/0.4124, allocations: 8 kB / 379.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.4128, allocations: 16 kB / 379.7 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.4129, allocations: 31.89 kB / 379.7 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.413, allocations: 12 kB / 379.7 MB, free: 10.49 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00053/0.4135, allocations: 267.2 kB / 380 MB, free: 10.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4135, allocations: 0 / 380 MB, free: 10.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008123/0.4144, allocations: 108 kB / 380.1 MB, free: 10.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009632/0.4153, allocations: 310.3 kB / 380.4 MB, free: 9.895 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.4169, allocations: 475 kB / 380.8 MB, free: 9.406 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4169, allocations: 0 / 380.8 MB, free: 9.406 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006552/0.4176, allocations: 242.7 kB / 381.1 MB, free: 9.156 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.4186, allocations: 116.8 kB / 381.2 MB, free: 9.043 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.4218, allocations: 1.379 MB / 382.6 MB, free: 7.621 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000591/0.4225, allocations: 0.874 MB / 383.4 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002028/0.4227, allocations: 31.44 kB / 383.5 MB, free: 6.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/0.4227, allocations: 0 / 383.5 MB, free: 6.691 MB / 314.7 MB Notification: Performance of Templates: time 0.01898/0.4417, allocations: 7.853 MB / 391.3 MB, free: 14.84 MB / 330.7 MB