Running command: translateModel(PowerSystems.Examples.PowerWorld.PowerWorld,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.PowerWorld.PowerWorld") Notification: Performance of loadModel(PowerSystems): time 2.293/2.293, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.1e-05, allocations: 4 kB / 304.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3886, allocations: 53.22 MB / 357.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.PowerWorld): time 0.01919/0.4079, allocations: 11.81 MB / 369.4 MB, free: 3.648 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01718/0.4251, allocations: 7.047 MB / 376.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002615/0.4278, allocations: 123.5 kB / 376.6 MB, free: 12.46 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002007/0.4298, allocations: 361.4 kB / 376.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005755/0.4356, allocations: 1.109 MB / 378 MB, free: 11 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004671/0.4403, allocations: 1.017 MB / 379 MB, free: 9.977 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004607/0.445, allocations: 1.66 MB / 380.7 MB, free: 8.312 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004854/0.4499, allocations: 1.759 MB / 382.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.4524, allocations: 0.8918 MB / 383.3 MB, free: 5.617 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002262/0.4547, allocations: 0.8961 MB / 384.2 MB, free: 4.719 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003686/0.4585, allocations: 0.9397 MB / 385.2 MB, free: 3.777 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009468/0.4595, allocations: 104 kB / 385.3 MB, free: 3.676 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001094/0.4606, allocations: 0.6815 MB / 386 MB, free: 2.992 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006577/0.4613, allocations: 168 kB / 386.1 MB, free: 2.828 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00599/0.4673, allocations: 3.032 MB / 389.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.4673, allocations: 0 / 389.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4673, allocations: 4 kB / 389.2 MB, free: 15.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.709e-05/0.4674, allocations: 0 / 389.2 MB, free: 15.79 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 489 * Number of variables: 489 Notification: Performance of Generate backend data structure: time 0.007654/0.4751, allocations: 2.556 MB / 391.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.4752, allocations: 12.03 kB / 391.7 MB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007083/0.4823, allocations: 0.6797 MB / 392.4 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005276/0.4876, allocations: 1.523 MB / 393.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002151/0.4879, allocations: 155.6 kB / 394.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000753/0.4886, allocations: 203.9 kB / 394.3 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009029/0.4977, allocations: 2.654 MB / 396.9 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.073e-05/0.4978, allocations: 7.938 kB / 396.9 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003566/0.4982, allocations: 75.98 kB / 397 MB, free: 7.691 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002168/0.4984, allocations: 111.7 kB / 397.1 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00928/0.5077, allocations: 2.868 MB / 400 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02652/0.5343, allocations: 8.567 MB / 408.6 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/0.5494, allocations: 3.306 MB / 411.9 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003925/0.5499, allocations: 57.94 kB / 411.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006594/0.5565, allocations: 1.401 MB / 413.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 1.161e-05/0.5565, allocations: 0 / 413.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of matching and sorting (n=226): time 0.04419/0.6007, allocations: 9.492 MB / 422.8 MB, free: 13.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001785/0.6009, allocations: 261.3 kB / 423.1 MB, free: 13.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003743/0.6047, allocations: 1.292 MB / 424.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006375/0.6054, allocations: 81.7 kB / 424.4 MB, free: 11.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/0.6064, allocations: 0.8082 MB / 425.3 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00149/0.608, allocations: 0.7587 MB / 426 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.6083, allocations: 44 kB / 426.1 MB, free: 10.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002883/0.6086, allocations: 395.2 kB / 426.4 MB, free: 9.699 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004211/0.6128, allocations: 1.058 MB / 427.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00483/0.6177, allocations: 1.385 MB / 428.9 MB, free: 7.145 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004926/0.6227, allocations: 1.358 MB / 430.2 MB, free: 5.738 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.314e-05/0.6227, allocations: 0 / 430.2 MB, free: 5.738 MB / 362.7 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.01178/0.6345, allocations: 3.229 MB / 433.5 MB, free: 2.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001155/0.6357, allocations: 2.337 MB / 435.8 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.804e-05/0.6358, allocations: 7.953 kB / 435.8 MB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001673/0.6374, allocations: 321.8 kB / 436.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004574/0.6421, allocations: 0.5071 MB / 436.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009735/0.6518, allocations: 4.95 MB / 441.6 MB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003561/0.6554, allocations: 231.7 kB / 441.8 MB, free: 9.598 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005081/0.656, allocations: 91.95 kB / 441.9 MB, free: 9.508 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.656, allocations: 7.938 kB / 441.9 MB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0112/0.6672, allocations: 3.13 MB / 445 MB, free: 6.297 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.608e-05/0.6673, allocations: 12 kB / 445.1 MB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001368/0.6687, allocations: 296.6 kB / 445.3 MB, free: 5.992 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004386/0.6731, allocations: 495.3 kB / 445.8 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009892/0.683, allocations: 4.966 MB / 450.8 MB, free: 276 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002441/0.6855, allocations: 140 kB / 450.9 MB, free: 136 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004726/0.6861, allocations: 87.98 kB / 451 MB, free: 48 kB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition5,$PRE.windFarm.wind.nextTimeEvent,$whenCondition3,$PRE.city.data.nextTimeEvent,$whenCondition2,$PRE.dispatcher.data.nextTimeEvent,system.initime,$whenCondition6,$whenCondition4,$whenCondition1,windFarm.wind.nextTimeEvent,$PRE.windFarm.wind.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled,$PRE.windFarm.disturbance.T_start,windFarm.disturbance.T_start,$PRE.windFarm.disturbance.count,windFarm.disturbance.count,city.data.nextTimeEvent,$PRE.city.data.nextTimeEventScaled,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,$PRE.dispatcher.data.nextTimeEventScaled,dispatcher.data.nextTimeEventScaled,$PRE.dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.T_start,$PRE.dispatcher.hydroDaily.count,dispatcher.hydroDaily.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 239 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {5 17} Notification: Performance of prepare postOptimizeDAE: time 0.001936/0.688, allocations: 0.5871 MB / 451.6 MB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006517/0.6887, allocations: 213.4 kB / 451.8 MB, free: 15.24 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/0.7012, allocations: 3.262 MB / 455.1 MB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.59e-05/0.7012, allocations: 24 kB / 455.1 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.7013, allocations: 0 / 455.1 MB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.623e-05/0.7013, allocations: 11.95 kB / 455.1 MB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02045/0.7218, allocations: 6.065 MB / 461.2 MB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.688e-05/0.7219, allocations: 4 kB / 461.2 MB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003707/0.7256, allocations: 391.8 kB / 461.6 MB, free: 5.359 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002855/0.7285, allocations: 0.497 MB / 462.1 MB, free: 4.855 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005581/0.7291, allocations: 55.97 kB / 462.1 MB, free: 4.801 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01437/0.7435, allocations: 6.325 MB / 468.4 MB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.7435, allocations: 4 kB / 468.4 MB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/0.7607, allocations: 4.857 MB / 473.3 MB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/0.7626, allocations: 0.5099 MB / 473.8 MB, free: 8.695 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007316/0.7634, allocations: 63.98 kB / 473.9 MB, free: 8.633 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002861/0.7663, allocations: 163.8 kB / 474 MB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009077/0.7672, allocations: 209.6 kB / 474.2 MB, free: 8.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00028/0.7675, allocations: 79.97 kB / 474.3 MB, free: 8.191 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002806/0.7703, allocations: 0.971 MB / 475.3 MB, free: 7.227 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.7704, allocations: 0 / 475.3 MB, free: 7.227 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004904/0.7753, allocations: 0.9532 MB / 476.2 MB, free: 6.273 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 13 (dispatcher.secondaryControl.I.y,powerPlant.evaporator.y,powerPlant.superheater1.y,powerPlant.superheater2.y,powerPlant.transferFunction.x_scaled[1],powerPlant.hotwellLevel.y,powerPlant.throttleDynamics.y,powerPlant.throttleCosts.y,hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1],system.theta) * Number of discrete variables: 17 (system.initime,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,windFarm.wind.nextTimeEvent,windFarm.wind.nextTimeEventScaled,windFarm.disturbance.T_start,windFarm.disturbance.count,city.data.nextTimeEvent,city.data.nextTimeEventScaled,dispatcher.data.nextTimeEvent,dispatcher.data.nextTimeEventScaled,dispatcher.hydroDaily.T_start,dispatcher.hydroDaily.count) * Number of discrete states: 8 (windFarm.wind.nextTimeEvent,windFarm.disturbance.count,city.data.nextTimeEvent,dispatcher.data.nextTimeEvent,dispatcher.hydroDaily.count,dispatcher.data.nextTimeEventScaled,city.data.nextTimeEventScaled,windFarm.wind.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {7 29,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002995/0.7783, allocations: 0.922 MB / 477.2 MB, free: 5.422 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.3028/1.081, allocations: 5.476 MB / 482.6 MB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.081, allocations: 1 kB / 482.6 MB, free: 108.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007323/1.089, allocations: 1.893 MB / 484.5 MB, free: 108.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003008/1.092, allocations: 333.1 kB / 484.9 MB, free: 108.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/1.106, allocations: 5.809 MB / 490.7 MB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/1.108, allocations: 1.748 MB / 492.4 MB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/1.11, allocations: 189.5 kB / 492.6 MB, free: 105.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.11, allocations: 0 / 492.6 MB, free: 105.6 MB / 410.7 MB Notification: Performance of Templates: time 0.07777/1.187, allocations: 47.41 MB / 0.5273 GB, free: 64.24 MB / 410.7 MB