Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadModel(PowerSystems): time 2.273/2.273, allocations: 233 MB / 245.6 MB, free: 14.78 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.221e-05/3.232e-05, allocations: 7.938 kB / 301.2 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0991/0.09915, allocations: 53.25 MB / 354.5 MB, free: 2.617 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4064/0.5056, allocations: 89.27 MB / 443.8 MB, free: 12.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.506, allocations: 87.94 kB / 443.9 MB, free: 12.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03623/0.5422, allocations: 9.7 MB / 453.6 MB, free: 2.922 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5423, allocations: 0 / 453.6 MB, free: 2.922 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.5423, allocations: 4 kB / 453.6 MB, free: 2.918 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007171/0.543, allocations: 476.2 kB / 454 MB, free: 2.406 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.5431, allocations: 12.03 kB / 454 MB, free: 2.395 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009163/0.544, allocations: 87.7 kB / 454.1 MB, free: 2.309 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004498/0.5445, allocations: 262.9 kB / 454.4 MB, free: 2.012 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.5445, allocations: 8.328 kB / 454.4 MB, free: 2.004 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.211e-05/0.5446, allocations: 19.91 kB / 454.4 MB, free: 1.984 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005199/0.5451, allocations: 256.2 kB / 454.7 MB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.323e-05/0.5452, allocations: 7.953 kB / 454.7 MB, free: 1.703 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.5452, allocations: 8 kB / 454.7 MB, free: 1.695 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-05/0.5452, allocations: 12.33 kB / 454.7 MB, free: 1.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004625/0.5457, allocations: 200.5 kB / 454.9 MB, free: 1.488 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.5477, allocations: 1.216 MB / 456.1 MB, free: 176 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002616/0.548, allocations: 113.2 kB / 456.2 MB, free: 44 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.5482, allocations: 45.81 kB / 456.3 MB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.932e-05/0.5482, allocations: 0 / 456.3 MB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.5482, allocations: 34.56 kB / 456.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of pre-optimization done (n=12): time 2.309e-06/0.5482, allocations: 3.938 kB / 456.3 MB, free: 15.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003544/0.5486, allocations: 125.5 kB / 456.4 MB, free: 15.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.147e-05/0.5487, allocations: 85.11 kB / 456.5 MB, free: 15.71 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.549, allocations: 185.7 kB / 456.7 MB, free: 15.53 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.549, allocations: 25.7 kB / 456.7 MB, free: 15.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.5491, allocations: 214.3 kB / 456.9 MB, free: 15.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.326e-05/0.5492, allocations: 43.48 kB / 457 MB, free: 15.24 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.209e-05/0.5492, allocations: 4 kB / 457 MB, free: 15.24 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5494, allocations: 326.8 kB / 457.3 MB, free: 14.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.5495, allocations: 35.98 kB / 457.3 MB, free: 14.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.5497, allocations: 118.2 kB / 457.4 MB, free: 14.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.5499, allocations: 55.97 kB / 457.5 MB, free: 14.67 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.245e-06/0.5499, allocations: 0 / 457.5 MB, free: 14.67 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004038/0.5503, allocations: 179.2 kB / 457.7 MB, free: 14.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.5503, allocations: 8 kB / 457.7 MB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.519e-06/0.5503, allocations: 8.281 kB / 457.7 MB, free: 14.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.5504, allocations: 8 kB / 457.7 MB, free: 14.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002684/0.5507, allocations: 39.98 kB / 457.7 MB, free: 14.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.5507, allocations: 11.92 kB / 457.7 MB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.5509, allocations: 27.69 kB / 457.8 MB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.552e-05/0.5509, allocations: 12 kB / 457.8 MB, free: 14.38 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.551, allocations: 116.9 kB / 457.9 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.903e-05/0.5511, allocations: 15.81 kB / 457.9 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003077/0.5514, allocations: 131.1 kB / 458 MB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.592e-06/0.5514, allocations: 4 kB / 458 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.5515, allocations: 4 kB / 458 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.941e-06/0.5515, allocations: 0 / 458 MB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009755/0.5525, allocations: 0.5268 MB / 458.6 MB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.753e-06/0.5525, allocations: 8.031 kB / 458.6 MB, free: 13.49 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.5527, allocations: 31.92 kB / 458.6 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.451e-06/0.5527, allocations: 0 / 458.6 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.5527, allocations: 4 kB / 458.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.141e-06/0.5528, allocations: 4 kB / 458.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.957e-06/0.5528, allocations: 0 / 458.6 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005595/0.5533, allocations: 409.1 kB / 459 MB, free: 12.97 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.939e-05/0.5534, allocations: 96.91 kB / 459.1 MB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.5535, allocations: 4.062 kB / 459.1 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.5537, allocations: 15.95 kB / 459.1 MB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.5537, allocations: 15.91 kB / 459.1 MB, free: 12.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.5538, allocations: 4 kB / 459.1 MB, free: 12.82 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00018/0.554, allocations: 152.7 kB / 459.3 MB, free: 12.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.554, allocations: 0 / 459.3 MB, free: 12.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004696/0.5544, allocations: 51.88 kB / 459.3 MB, free: 12.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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.0001515/0.5546, allocations: 103.2 kB / 459.4 MB, free: 12.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002892/0.5549, allocations: 107.8 kB / 459.5 MB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.284e-06/0.5549, allocations: 0.6875 kB / 459.5 MB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001248/0.5551, allocations: 55.86 kB / 459.6 MB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.5554, allocations: 34.67 kB / 459.6 MB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009744/0.5564, allocations: 446.4 kB / 460.1 MB, free: 11.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.5569, allocations: 0.7519 MB / 460.8 MB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.246e-05/0.557, allocations: 19.44 kB / 460.8 MB, free: 11.03 MB / 394.7 MB Notification: Performance of SimCode: time 1.687e-06/0.557, allocations: 0 / 460.8 MB, free: 11.03 MB / 394.7 MB Notification: Performance of Templates: time 0.004916/0.5619, allocations: 2.162 MB / 463 MB, free: 8.867 MB / 394.7 MB