aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 85 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7533
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1200.2+0201_daily_bin1754
RA = 180.055, Dec = 2.0172
tmin = 693964801, tmax = 694224001
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='641957', job_status='RUN', time_executed='2023-01-01 01:07:24.500107', time_epoch_executed='1672564044.5' WHERE source_name='4FGL J1200.2+0201' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641957/ft1_4FGL_J1200.2+0201_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641957/ft1_4FGL_J1200.2+0201_daily_bin1754.fits outfile=/scratch/kocevski/641957/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1754.fits ra=180.055 dec=2.0172 rad=12.0 tmin=693964801.0 tmax=694224001.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 4.00
user 3.71
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.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/641957/ft1_filteredMKT_4FGL_J1200.2+0201_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 521

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/641957/ltcube_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.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/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits
.....................!
real 14.19
user 13.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/641957/ltcube_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.fits outfile=/scratch/kocevski/641957/expmap_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.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/641957/ltcube_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.fits
.....................!
real 195.72
user 189.29
sys 5.28

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1200.2+0201 @ 180.055 2.0172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits scfile=/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits outfile=/scratch/kocevski/641957/cmap_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.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=180.055 yref=2.0172 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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits scfile=/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits outfile=/scratch/kocevski/641957/cmap_HighResolution_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.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=180.055 yref=2.0172 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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641957/Model_4FGL_J1200.2+0201_daily_bin1754.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/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits.....................!
real 52.25
user 50.50
sys 1.44

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits', '/scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits', expMap='/scratch/kocevski/641957/expmap_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.fits', expCube='/scratch/kocevski/641957/ltcube_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641957/Model_4FGL_J1200.2+0201_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1200.2+0201'

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  1.346e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641957/ft1_filtered_4FGL_J1200.2+0201_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/641957/ft2_4FGL_J1200.2+0201_daily_bin1754.fits
Exposure map: /scratch/kocevski/641957/expmap_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.fits
Exposure cube: /scratch/kocevski/641957/ltcube_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641957/Model_4FGL_J1200.2+0201_daily_bin1754.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) = 5590.8121461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37731E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .14536E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.4855       1.0000          .0000       .10000E+07
     4 'Prefactor '    39.796       1.0000          .0000       .10000E+07
     5 'norm      '    .13409E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13185E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.4713       1.0000          .0000       .10000E+07
     8 'Prefactor '    2.4130       1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0285       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.8668       1.0000          .0000       .10000E+07
    11 'Prefactor '    22.383       1.0000          .0000       .10000E+07
    12 'Prefactor '    .15995E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14974E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .21822E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .59395E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    42.232       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44577E-05   1.0000          .0000       .10000E+07
    18 'norm      '    1.1953       1.0000          .0000       .10000E+07
    19 'norm      '    1.3235       1.0000          .0000       .10000E+07
    20 'Prefactor '    .99773       1.0000          .0000       .10000E+07
    21 'norm      '    .10194E-02   1.0000          .0000       .10000E+07
    22 'norm      '    2.5941       1.0000          .0000       .10000E+07
    23 'Prefactor '    .14477E-06   1.0000          .0000       .10000E+07
    24 'norm      '     .0000       1.0000          .0000       .10000E+07
    25 'Prefactor '    .44307E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5590.710     FROM MIGRAD    STATUS=CONVERGED    184 CALLS     2430 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.2397       -.17510E-05** at limit **
   2  norm          .55511E-10    12.394        .32110E-05** at limit **
   3  Prefactor     3.4879        2.3170        .16527E-06   -.46196E-02
   4  Prefactor     39.835        3.1882        .36653E-06    .10686E-01
   5  norm          .55511E-10    5.6314       -.83229E-06** at limit **
   6  Prefactor     .55511E-10    4.1453        .53919E-07** at limit **
   7  Prefactor     6.9606        197.18       -.51492E-05   -.57497E-02
   8  Prefactor     2.4272        7.3277       -.10764E-05   -.16697E-02
   9  Prefactor     2.0273        4.7054       -.14810E-05    .29881E-02
  10  Prefactor     3.8394        14.596        .68348E-05   -.16092E-02
  11  Prefactor     22.454        2.3846       -.59148E-06   -.76300E-01
  12  Prefactor     .32200E-05    23.647        .12220E-04** at limit **
  13  Prefactor     .61617E-08    .86488        .59173E-06** at limit **
  14  Prefactor     .21749E-06    37.073       -.60720E-05** at limit **
  15  Prefactor     .29976E-08    6.7369        .37772E-05** at limit **
  16  Prefactor     42.012        6.8987        .14590E-05   -.33469E-01
  17  Prefactor      .0000        3.8002       -.10407E-06** at limit **
  18  norm          1.1957        1.2476        .11513E-07   -.11983E-02
  19  norm          1.3313        4.0030       -.10531E-05    .60833E-03
  20  Prefactor     1.5438        39.472       -.33954E-05    .12630E-01
  21  norm          .38858E-09    21.715       -.23410E-05** at limit **
  22  norm          2.5953        .73545       -.44412E-07   -.24385E-02
  23  Prefactor     .22204E-09    7.3458       -.53797E-05** at limit **
  24  norm           .0000        3.1851       -.72289E-06** at limit **
  25  Prefactor     .46755E-05    23.406        .13977E-04** at limit **
  26  Normalizat    1.0640        .25770        .31260E-04   -.41949E-03
  27  Prefactor     1.0965        .20206       -.31543E-04   -.39779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 3.48793
  Prefactor  = 39.8352
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 6.96059
  Prefactor  = 2.42722
  Prefactor  = 2.02732
  Prefactor  = 3.83942
  Prefactor  = 22.4541
  Prefactor  = 3.22004e-06
  Prefactor  = 6.16174e-09
  Prefactor  = 2.17493e-07
  Prefactor  = 2.9976e-09
  Prefactor  = 42.0122
  Prefactor  = 0
  norm       = 1.19574
  norm       = 1.33129
  Prefactor  = 1.54383
  norm       = 3.88578e-10
  norm       = 2.59529
  Prefactor  = 2.22045e-10
  norm       = 0
  Prefactor  = 4.67548e-06
  Normalizat = 1.06403
  Prefactor  = 1.09648
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.710     FROM HESSE     STATUS=OK           548 CALLS     2978 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.2315        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .55511E-10    12.409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4879        2.3219        .54135E-03   -1.5671    
   4  Prefactor     39.835        28.095        .15854E-03   -1.5582    
   5  norm          .55511E-10    5.6150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    4.1288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.9606        237.01        .47594E-03   -1.5655    
   8  Prefactor     2.4272        7.3670        .65873E-03   -1.5677    
   9  Prefactor     2.0273        4.7445        .72611E-03   -1.5679    
  10  Prefactor     3.8394        14.650        .51292E-03   -1.5669    
  11  Prefactor     22.454        18.483        .21142E-03   -1.5613    
  12  Prefactor     .32200E-05    41.928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .61617E-08    111.57        .17393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .21749E-06    39.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .29976E-08    6.7399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     42.012        35.069        .15389E-03   -1.5578    
  17  Prefactor      .0000        3.8017        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.1957        1.2335        .10397E-02   -1.5686    
  19  norm          1.3313        4.3186        .95553E-03   -1.5685    
  20  Prefactor     1.5438        180.64        .43685E-03   -1.5683    
  21  norm          .38858E-09    21.752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.5953        .74879        .63323E-03   -1.5676    
  23  Prefactor     .22204E-09    7.3211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.1227        .27277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .46755E-05    51.554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0640        .22942        .65505E-01   -.90915    
  27  Prefactor     1.0965        .17545        .37732E-01   -.89579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85615e-07
Minuit parameter uncertainties:
  1  1.28947e-05
  2  4.04024e-05
  3  2.32188
  4  28.0946
  5  2.97156e-05
  6  3.09754e-05
  7  81.2372
  8  7.36701
  9  4.74451
  10  14.6501
  11  18.4829
  12  0.023239
  13  0.00166197
  14  0.0058345
  15  0.000283122
  16  35.0692
  17  1.8336e-05
  18  1.23347
  19  4.31864
  20  33.4003
  21  0.000177946
  22  0.748791
  23  8.03796e-05
  24  1.03131e-05
  25  0.0310513
  26  0.229636
  27  0.175541
Done.

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

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  2.027e+00  4.745e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  2.109e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.096e+00  1.755e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.064e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 180.055 2.017
Photon Flux Upper Limit: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641957/likelihoodResults_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.txt

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) = 5590.65368628
delta logL = 0.0565260535832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.63527562
delta logL = 0.0749367197686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1131       1.0000          .0000       .10000E+07
     2 'Index     '    1.6644       1.0000          .0000       10.000    
     3 'Normalizat'    1.0683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5590.635     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1236        437.02        .57443E-03    .22285E-02
   2  Index         1.6629        7.0130        .28168       -.50500E-05
   3  Normalizat    1.0682        .10573        .65385E-01   -.53546E-04
   4  Prefactor     1.0937        .69676E-01    .37829E-01   -.66308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.12363
  Index      = 1.66287
  Normalizat = 1.06824
  Prefactor  = 1.09372
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.635     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1236        6.1666        .22977E-04   -1.5673    
   2  Index         1.6629        1.0192        .15328E-01   -.73075    
   3  Normalizat    1.0682        .24134        .28924E-03   -.90778    
   4  Prefactor     1.0937        .20004        .23580E-03   -.89668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53741e-11
Minuit parameter uncertainties:
  1  6.16662
  2  1.03239
  3  0.241586
  4  0.200176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641957': 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) = 5590.63527321
delta logL = 0.0749391272248

Extracting fit parameters...

4FGL J1200.2+0201
   Spectrum: PowerLaw
285    Prefactor:  3.124e+00  6.167e+00  0.000e+00  1.000e+06 ( 1.000e-13)
286        Index:  1.663e+00  1.032e+00  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  1.748e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.094e+00  2.002e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  1.068e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 180.055 2.017

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/641957/cmap_HighResolution_693964801_694224001_4FGL_J1200.2+0201_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2023-01-01 01:18:33.769807', job_id='641957', GAL2='1.09', fit_tolerance='1e-08', EG2='1.07', EG='1.06', time_epoch_completed='1672564713.77', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='7.49e-02', ts2='0.41', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1754' AND source_name='4FGL J1200.2+0201' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:18:33 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 641957: <4FGL_J1200.2+0201_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1200.2+0201_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:15 2023
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:05:51 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:05:51 2023
Terminated at Sun Jan  1 01:18:34 2023
Results reported at Sun Jan  1 01:18:34 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1200.2+0201_daily_bin1754 180.055 2.0172 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1200.2+0201 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   670.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            799 sec.

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

