/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 142 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7460
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2250.0-1250_daily_bin1475
RA = 342.505, Dec = -12.8485
tmin = 621648001, tmax = 621907201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='509401', job_status='RUN', time_executed='2021-09-28 22:28:05.105242', time_epoch_executed='1632893285.11' WHERE source_name='4FGL J2250.0-1250' and cadence='daily' and bin_id='1475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509401

Creating custom pfile directory:
/scratch/kocevski/509401/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=621648001.0 && nMetStart<621907201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=621648001.0 && nMetStart<621907201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509401/ft1_4FGL_J2250.0-1250_daily_bin1475.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=621648001.0 && nMetStart<621907201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509401/ft1_4FGL_J2250.0-1250_daily_bin1475.fits outfile=/scratch/kocevski/509401/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1475.fits ra=342.505 dec=-12.8485 rad=12.0 tmin=621648001.0 tmax=621907201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.36
user 5.06
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/509401/ft1_filteredMKT_4FGL_J2250.0-1250_daily_bin1475.fits evtable="EVENTS" outfile="/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits" evtable="EVENTS" scfile=/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits sctable="SC_DATA" outfile=/scratch/kocevski/509401/ltcube_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits
.....................!
real 11.63
user 11.26
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits sctable="SC_DATA" expcube=/scratch/kocevski/509401/ltcube_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits outfile=/scratch/kocevski/509401/expmap_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/509401/ltcube_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits
.....................!
real 192.29
user 187.19
sys 4.78

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J2250.0-1250 @ 342.505 -12.8485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits scfile=/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits outfile=/scratch/kocevski/509401/cmap_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=342.505 yref=-12.8485 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits scfile=/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits outfile=/scratch/kocevski/509401/cmap_HighResolution_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=342.505 yref=-12.8485 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits evtable="EVENTS" scfile=/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509401/Model_4FGL_J2250.0-1250_daily_bin1475.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits.....................!
real 64.52
user 63.24
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits', '/scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits', expMap='/scratch/kocevski/509401/expmap_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits', expCube='/scratch/kocevski/509401/ltcube_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/509401/Model_4FGL_J2250.0-1250_daily_bin1475.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2250.0-1250'

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  3.029e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/509401/ft1_filtered_4FGL_J2250.0-1250_daily_bin1475.fits
Spacecraft file(s): /scratch/kocevski/509401/ft2_4FGL_J2250.0-1250_daily_bin1475.fits
Exposure map: /scratch/kocevski/509401/expmap_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits
Exposure cube: /scratch/kocevski/509401/ltcube_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/509401/Model_4FGL_J2250.0-1250_daily_bin1475.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7227.82653909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7227.81862067

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9978       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6730       1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.564       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6964       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.071       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0476       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.448       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1235       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36400E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    83.248       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.174       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7536       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13481E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4785       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.048       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1674       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .67224       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7227.819     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2574 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3658        .31367E-06** at limit **
   2  Prefactor     4.0084        10.350       -.11916E-05   -.73911E-04
   3  Prefactor     45.578        59.397       -.65221E-06   -.72344E-05
   4  Prefactor     1.6678        4.0594        .40886E-06   -.53045E-04
   5  Prefactor     67.571        48.611        .47652E-06    .26873E-05
   6  norm          5.6986        3.3597       -.78756E-07   -.10433E-03
   7  Prefactor     .10000E-03    52.111        .44760E-06** at limit **
   8  Prefactor     12.076        10.706       -.39555E-08    .46706E-06
   9  norm          2.0474        .90380        .41582E-08   -.10848E-04
  10  Prefactor     12.491        24.826        .18010E-06   -.38645E-05
  11  norm          2.1221        1.7803       -.23099E-06   -.41245E-03
  12  Prefactor     30.931        30.420        .15476E-05    .76669E-04
  13  Prefactor     .10000E-03    63.320       -.89758E-05** at limit **
  14  Prefactor     .10000E-03    5.1254        .16115E-06** at limit **
  15  norm          83.249        19.711       -.43382E-08   -.98507E-05
  16  Prefactor     27.280        46.250       -.12813E-05   -.36122E-04
  17  Prefactor     7.7546        12.850        .22538E-06   -.64481E-06
  18  Prefactor     .10000E-03    14.062       -.25020E-06** at limit **
  19  norm          6.4823        5.4409       -.88196E-06   -.19399E-03
  20  Prefactor     15.056        26.632       -.10392E-05   -.74802E-05
  21  Prefactor     .10000E-03    6.9539        .21903E-06** at limit **
  22  Normalizat    1.1668        .19005        .17482E-05   -.20801E-03
  23  Prefactor     .67263        .14301       -.24511E-05    .29717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.00845
  Prefactor  = 45.5778
  Prefactor  = 1.66775
  Prefactor  = 67.5714
  norm       = 5.69856
  Prefactor  = 0.0001
  Prefactor  = 12.0764
  norm       = 2.04741
  Prefactor  = 12.4909
  norm       = 2.12207
  Prefactor  = 30.9309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 83.2485
  Prefactor  = 27.2796
  Prefactor  = 7.75459
  Prefactor  = 0.0001
  norm       = 6.48227
  Prefactor  = 15.0563
  Prefactor  = 0.0001
  Normalizat = 1.16677
  Prefactor  = 0.672635
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.819     FROM HESSE     STATUS=OK           382 CALLS     2956 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.0084        10.230        .20171E-03   -1.5308    
   3  Prefactor     45.578        59.375        .59383E-04   -1.4357    
   4  Prefactor     1.6678        3.9836        .23544E-03   -1.5450    
   5  Prefactor     67.571        48.624        .48830E-04   -1.4062    
   6  norm          5.6986        3.3455        .11133E-03   -1.5230    
   7  Prefactor     .10000E-03    52.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.076        10.742        .11530E-03   -1.5013    
   9  norm          2.0474        .89990        .50478E-04   -1.5422    
  10  Prefactor     12.491        26.537        .11354E-03   -1.5001    
  11  norm          2.1221        1.9153        .60969E-04   -1.5417    
  12  Prefactor     30.931        30.706        .71974E-04   -1.4595    
  13  Prefactor     .10000E-03    5.8661        .69387E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          83.249        19.711        .44025E-04   -1.3881    
  16  Prefactor     27.280        46.221        .76850E-04   -1.4663    
  17  Prefactor     7.7546        12.844        .14401E-03   -1.5151    
  18  Prefactor     .10000E-03    14.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4823        5.4637        .15768E-03   -1.5199    
  20  Prefactor     15.056        26.623        .10325E-03   -1.4932    
  21  Prefactor     .10000E-03    6.9850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1668        .21018        .24463E-03   -.87636    
  23  Prefactor     .67263        .15499        .24318E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35532e-10
Minuit parameter uncertainties:
  1  1.82012e-05
  2  10.2343
  3  59.4519
  4  3.98428
  5  48.6522
  6  3.34561
  7  4.01062e-05
  8  10.7435
  9  0.899907
  10  26.5625
  11  1.91538
  12  30.7217
  13  7.59369e-05
  14  2.3424e-06
  15  19.713
  16  46.282
  17  12.8486
  18  9.2284e-05
  19  5.46413
  20  26.6436
  21  1.6958e-05
  22  0.210328
  23  0.155085
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 7227.81860672

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  2.122e+00  1.915e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.389e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  6.726e-01  1.551e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  1.167e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.23
Ra Dec: 342.505 -12.848
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 7.32e-08 +/- 6.61e-08
Energy Flux (Fixed Index): 3.08e-05 +/- 2.78e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.55915789
delta logL = 0.259448831985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.55173156
delta logL = 0.266875164141

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4834       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7355       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7227.552     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4824        8.3268        .88072E-02   -.49214E-03
   2  alpha         2.7362        2.0067        .19573        .50940E-04
   3  Normalizat    1.1399        .61440E-01    .55803E-01   -.14913E-03
   4  Prefactor     .68265        .41780E-01    .42172E-01   -.10394E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.48241
  alpha      = 2.73621
  Normalizat = 1.13991
  Prefactor  = 0.682654
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.552     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4824        1.2990        .45532E-04   -1.5464    
   2  alpha         2.7362        .51969        .73713E-02    .94625E-01
   3  Normalizat    1.1399        .20031        .24676E-03   -.88481    
   4  Prefactor     .68265        .15303        .24129E-03   -1.0421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.65346e-11
Minuit parameter uncertainties:
  1  1.29904
  2  0.523544
  3  0.200446
  4  0.15312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509401': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.55172922
delta logL = 0.266877502343

Extracting fit parameters...

4FGL J2250.0-1250
   Spectrum: LogParabola
266         norm:  1.482e+00  1.299e+00  1.000e-04  1.000e+04 ( 1.000e-12)
267        alpha:  2.736e+00  5.235e-01  0.000e+00  5.000e+00 ( 1.000e+00)
268         beta:  1.341e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
269           Eb:  1.722e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  6.827e-01  1.531e-01  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  1.140e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.96
Ra Dec: 342.505 -12.848
Photon Index (Free Index): 2.74 +/- 0.52
Photon Flux (Free Index): 1.03e-07 +/- 5.94e-08
Energy Flux (Free Index): 3.04e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/509401/cmap_HighResolution_621648001_621907201_4FGL_J2250.0-1250_daily_bin1475.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/509401

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.32e-08', energy_flux2='3.04e-05', photon_flux_error='6.61e-08', dlogl='2.67e-01', energy_flux='3.08e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-28 22:39:35.256979', photon_index_error2='0.52', photon_index2='2.74', ts='7.23', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.17', time_epoch_completed='1632893975.26', return_code='0', job_id='509401', GAL2='0.68', EG2='1.14', return_code2='0', energy_flux_error='2.78e-05', photon_flux_error2='5.94e-08', ts2='7.96', photon_index='2.39' WHERE bin_id='1475' AND source_name='4FGL J2250.0-1250' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 22:39:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 509401: <4FGL_J2250.0-1250_daily_bin1475> in cluster <slac> Done

Job <4FGL_J2250.0-1250_daily_bin1475> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 22:25:35 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 22:25:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 22:25:36 2021
Terminated at Tue Sep 28 22:39:36 2021
Results reported at Tue Sep 28 22:39:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2250.0-1250_daily_bin1475 342.505 -12.8485 621648001 621907201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2250.0-1250 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   620.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

The output (if any) is above this job summary.

