Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadModel(PowerSystems): time 2.21/2.21, allocations: 233 MB / 245.6 MB, free: 14.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.342e-05, allocations: 7.938 kB / 301.3 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09165, allocations: 53.24 MB / 354.5 MB, free: 2.621 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.5082, allocations: 95 MB / 449.5 MB, free: 7.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.5086, allocations: 87.95 kB / 449.6 MB, free: 6.965 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08183/0.5904, allocations: 12.96 MB / 462.5 MB, free: 9.875 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.652e-06/0.5905, allocations: 0 / 462.5 MB, free: 9.875 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.793e-05/0.5906, allocations: 11.94 kB / 462.6 MB, free: 9.863 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00677/0.5974, allocations: 0.6684 MB / 463.2 MB, free: 9.145 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.547e-05/0.5975, allocations: 8.031 kB / 463.2 MB, free: 9.137 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003002/0.5978, allocations: 55.34 kB / 463.3 MB, free: 9.082 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003871/0.6017, allocations: 0.6741 MB / 464 MB, free: 8.367 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002399/0.602, allocations: 62.7 kB / 464 MB, free: 8.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.6022, allocations: 41.12 kB / 464.1 MB, free: 8.262 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/0.6045, allocations: 496.7 kB / 464.6 MB, free: 7.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.853e-05/0.6046, allocations: 7.953 kB / 464.6 MB, free: 7.723 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001458/0.6047, allocations: 16 kB / 464.6 MB, free: 7.707 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.906e-05/0.6048, allocations: 16 kB / 464.6 MB, free: 7.691 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.6064, allocations: 297.4 kB / 464.9 MB, free: 7.402 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01777/0.6242, allocations: 1.992 MB / 466.9 MB, free: 5.297 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004361/0.6247, allocations: 195.8 kB / 467.1 MB, free: 5.078 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002267/0.625, allocations: 95.59 kB / 467.2 MB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.625, allocations: 0 / 467.2 MB, free: 4.977 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.6251, allocations: 34.56 kB / 467.2 MB, free: 4.934 MB / 394.7 MB Notification: Performance of pre-optimization done (n=20): time 2.731e-06/0.6251, allocations: 3.938 kB / 467.2 MB, free: 4.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.002046/0.6271, allocations: 0.9535 MB / 468.1 MB, free: 3.887 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.6272, allocations: 107 kB / 468.3 MB, free: 3.758 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004315/0.6277, allocations: 287.5 kB / 468.5 MB, free: 3.469 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.443e-05/0.6277, allocations: 33.7 kB / 468.6 MB, free: 3.43 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.628, allocations: 318 kB / 468.9 MB, free: 3.113 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.934e-05/0.6281, allocations: 78.84 kB / 469 MB, free: 3.035 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.292e-05/0.6281, allocations: 17.84 kB / 469 MB, free: 3.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.6283, allocations: 322.8 kB / 469.3 MB, free: 2.695 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.6285, allocations: 75.98 kB / 469.4 MB, free: 2.621 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.6288, allocations: 195.9 kB / 469.6 MB, free: 2.371 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008369/0.6296, allocations: 289.2 kB / 469.8 MB, free: 2.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.766e-06/0.6297, allocations: 0 / 469.8 MB, free: 2.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000967/0.6306, allocations: 370.2 kB / 470.2 MB, free: 1.699 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.6307, allocations: 4 kB / 470.2 MB, free: 1.695 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.6307, allocations: 11.94 kB / 470.2 MB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003999/0.6311, allocations: 76.8 kB / 470.3 MB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.6315, allocations: 71.91 kB / 470.4 MB, free: 1.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002634/0.6341, allocations: 1.794 MB / 472.2 MB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003028/0.6345, allocations: 24.05 kB / 472.2 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.6345, allocations: 16 kB / 472.2 MB, free: 15.57 MB / 410.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.6347, allocations: 128.9 kB / 472.3 MB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.6348, allocations: 31.62 kB / 472.3 MB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.851e-05/0.6349, allocations: 43.05 kB / 472.4 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.6349, allocations: 4 kB / 472.4 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.6349, allocations: 4 kB / 472.4 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.683e-06/0.6349, allocations: 3.984 kB / 472.4 MB, free: 15.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.6365, allocations: 0.7611 MB / 473.2 MB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.1e-06/0.6365, allocations: 0 / 473.2 MB, free: 14.52 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003803/0.6369, allocations: 51.97 kB / 473.2 MB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.637, allocations: 20.84 kB / 473.2 MB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.565e-05/0.637, allocations: 4 kB / 473.2 MB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.6383, allocations: 1.28 MB / 474.5 MB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.591e-06/0.6383, allocations: 0 / 474.5 MB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007946/0.6391, allocations: 0.4992 MB / 475 MB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.6393, allocations: 124.8 kB / 475.1 MB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.152e-05/0.6393, allocations: 15.97 kB / 475.2 MB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003005/0.6396, allocations: 12 kB / 475.2 MB, free: 12.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.6397, allocations: 15.97 kB / 475.2 MB, free: 12.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.6398, allocations: 8 kB / 475.2 MB, free: 12.31 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003161/0.6401, allocations: 218.2 kB / 475.4 MB, free: 12.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.6401, allocations: 0 / 475.4 MB, free: 12.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006869/0.6408, allocations: 95.98 kB / 475.5 MB, free: 12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002098/0.641, allocations: 133.3 kB / 475.6 MB, free: 11.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008043/0.6418, allocations: 353.8 kB / 476 MB, free: 11.51 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.02e-06/0.6419, allocations: 0 / 476 MB, free: 11.51 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.6422, allocations: 197.7 kB / 476.2 MB, free: 11.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006453/0.6429, allocations: 93.91 kB / 476.3 MB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.6446, allocations: 0.7008 MB / 477 MB, free: 10.48 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006419/0.6452, allocations: 0.8548 MB / 477.8 MB, free: 9.598 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.875e-05/0.6453, allocations: 27.44 kB / 477.8 MB, free: 9.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.433e-06/0.6454, allocations: 4 kB / 477.8 MB, free: 9.566 MB / 410.7 MB Notification: Performance of Templates: time 0.01205/0.6574, allocations: 6.804 MB / 484.6 MB, free: 2.773 MB / 410.7 MB