Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadModel(PowerSystems): time 2.385/2.385, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.991e-05/3.983e-05, allocations: 4 kB / 304.4 MB, free: 1.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3555, allocations: 53.22 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007373/0.363, allocations: 4.317 MB / 361.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003477/0.3665, allocations: 1.451 MB / 363.3 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004374/0.367, allocations: 31.81 kB / 363.4 MB, free: 9.656 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003991/0.3674, allocations: 99.38 kB / 363.5 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009055/0.3683, allocations: 247 kB / 363.7 MB, free: 9.316 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004389/0.3688, allocations: 115.8 kB / 363.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007159/0.3695, allocations: 259.3 kB / 364.1 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.3698, allocations: 80.97 kB / 364.2 MB, free: 8.871 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.3701, allocations: 139.5 kB / 364.3 MB, free: 8.734 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003435/0.3704, allocations: 139.5 kB / 364.4 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.525e-05/0.3705, allocations: 16 kB / 364.5 MB, free: 8.582 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.3706, allocations: 8 kB / 364.5 MB, free: 8.574 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.3707, allocations: 79.73 kB / 364.5 MB, free: 8.496 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.3709, allocations: 32 kB / 364.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.3713, allocations: 271.3 kB / 364.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.3713, allocations: 0 / 364.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3713, allocations: 0 / 364.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.3713, allocations: 0 / 364.8 MB, free: 8.199 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001247/0.3726, allocations: 0.5663 MB / 365.4 MB, free: 7.582 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3726, allocations: 8.031 kB / 365.4 MB, free: 7.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001091/0.3728, allocations: 39.53 kB / 365.4 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009388/0.3737, allocations: 374.5 kB / 365.8 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.3738, allocations: 16.56 kB / 365.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.201e-05/0.3739, allocations: 35.92 kB / 365.9 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007576/0.3746, allocations: 334.2 kB / 366.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.3747, allocations: 0 / 366.2 MB, free: 6.719 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.38e-05/0.3747, allocations: 15.95 kB / 366.2 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.3747, allocations: 8 kB / 366.2 MB, free: 6.695 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005573/0.3753, allocations: 213.4 kB / 366.4 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.3777, allocations: 1.478 MB / 367.9 MB, free: 4.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005936/0.3783, allocations: 202.4 kB / 368.1 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.3784, allocations: 0 / 368.1 MB, free: 4.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.3784, allocations: 38.52 kB / 368.1 MB, free: 4.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.993e-06/0.3784, allocations: 4 kB / 368.1 MB, free: 4.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=19): time 0.001988/0.3804, allocations: 0.8777 MB / 369 MB, free: 3.664 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.932e-05/0.3805, allocations: 128.5 kB / 369.1 MB, free: 3.508 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004464/0.381, allocations: 272.9 kB / 369.4 MB, free: 3.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.381, allocations: 29.7 kB / 369.4 MB, free: 3.195 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/0.3813, allocations: 274.6 kB / 369.7 MB, free: 2.922 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.61e-05/0.3814, allocations: 67.02 kB / 369.8 MB, free: 2.855 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.651e-05/0.3814, allocations: 4 kB / 369.8 MB, free: 2.852 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.3816, allocations: 322.8 kB / 370.1 MB, free: 2.527 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001541/0.3817, allocations: 51.91 kB / 370.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.382, allocations: 152.8 kB / 370.3 MB, free: 2.281 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.3822, allocations: 81.48 kB / 370.4 MB, free: 2.203 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3822, allocations: 0 / 370.4 MB, free: 2.203 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005829/0.3828, allocations: 237.4 kB / 370.6 MB, free: 1.965 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.776e-05/0.3829, allocations: 11.95 kB / 370.6 MB, free: 1.953 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.3829, allocations: 4 kB / 370.6 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.3829, allocations: 4 kB / 370.6 MB, free: 1.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006888/0.3836, allocations: 79.89 kB / 370.7 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001144/0.3848, allocations: 1.282 MB / 372 MB, free: 464 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002944/0.3851, allocations: 11.98 kB / 372 MB, free: 452 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.3851, allocations: 16 kB / 372 MB, free: 436 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (32): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002828/0.3854, allocations: 165.8 kB / 372.2 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.3856, allocations: 35.58 kB / 372.2 MB, free: 224 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004928/0.3861, allocations: 193.5 kB / 372.4 MB, free: 24 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3861, allocations: 4 kB / 372.4 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.3861, allocations: 0 / 372.4 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3861, allocations: 0 / 372.4 MB, free: 20 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.3873, allocations: 0.5696 MB / 373 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.3873, allocations: 4 kB / 373 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004713/0.3878, allocations: 47.91 kB / 373 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.3878, allocations: 0 / 373 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.746e-05/0.3879, allocations: 8 kB / 373 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.3879, allocations: 0 / 373 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.3879, allocations: 4 kB / 373 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00075/0.3886, allocations: 0.5291 MB / 373.6 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.3888, allocations: 104.7 kB / 373.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.425e-05/0.3889, allocations: 8 kB / 373.7 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003087/0.3892, allocations: 4.031 kB / 373.7 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.3892, allocations: 23.94 kB / 373.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.953e-05/0.3893, allocations: 4 kB / 373.7 MB, free: 14.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003338/0.3897, allocations: 219.2 kB / 373.9 MB, free: 14.4 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.3897, allocations: 0 / 373.9 MB, free: 14.4 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006105/0.3903, allocations: 56 kB / 374 MB, free: 14.34 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (motor.phi_el,motor.w_el,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001574/0.3905, allocations: 112.6 kB / 374.1 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006352/0.3911, allocations: 163.7 kB / 374.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.3911, allocations: 4 kB / 374.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001769/0.3913, allocations: 63.92 kB / 374.3 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008276/0.3922, allocations: 85.19 kB / 374.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.3945, allocations: 1.044 MB / 375.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/0.395, allocations: 0.8109 MB / 376.2 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.3952, allocations: 27.44 kB / 376.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.3952, allocations: 0 / 376.3 MB, free: 11.97 MB / 314.7 MB Notification: Performance of Templates: time 0.01108/0.4063, allocations: 4.613 MB / 380.9 MB, free: 7.371 MB / 314.7 MB