/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 218 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 = 7366
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin1541
RA = 330.031, Dec = 21.6382
tmin = 638755201, tmax = 639014401
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='85770', job_status='RUN', time_executed='2021-09-27 23:39:13.602439', time_epoch_executed='1632811153.6' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='1541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/85770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/85770/ft1_4FGL_J2200.1+2138_daily_bin1541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/85770/ft1_4FGL_J2200.1+2138_daily_bin1541.fits outfile=/scratch/kocevski/85770/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1541.fits ra=330.031 dec=21.6382 rad=12.0 tmin=638755201.0 tmax=639014401.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.43
user 5.18
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.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/85770/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin1541.fits evtable="EVENTS" outfile="/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits" evtable="EVENTS" scfile=/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits sctable="SC_DATA" outfile=/scratch/kocevski/85770/ltcube_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.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/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits
.....................!
real 12.59
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits sctable="SC_DATA" expcube=/scratch/kocevski/85770/ltcube_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.fits outfile=/scratch/kocevski/85770/expmap_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.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/85770/ltcube_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.fits
.....................!
real 191.51
user 185.13
sys 5.96

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 167 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits scfile=/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits outfile=/scratch/kocevski/85770/cmap_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.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=330.031 yref=21.6382 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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits scfile=/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits outfile=/scratch/kocevski/85770/cmap_HighResolution_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.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=330.031 yref=21.6382 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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits evtable="EVENTS" scfile=/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/85770/Model_4FGL_J2200.1+2138_daily_bin1541.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits....................!
real 120.28
user 118.55
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits', '/scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits', expMap='/scratch/kocevski/85770/expmap_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.fits', expCube='/scratch/kocevski/85770/ltcube_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/85770/Model_4FGL_J2200.1+2138_daily_bin1541.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/85770/ft1_filtered_4FGL_J2200.1+2138_daily_bin1541.fits
Spacecraft file(s): /scratch/kocevski/85770/ft2_4FGL_J2200.1+2138_daily_bin1541.fits
Exposure map: /scratch/kocevski/85770/expmap_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.fits
Exposure cube: /scratch/kocevski/85770/ltcube_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/85770/Model_4FGL_J2200.1+2138_daily_bin1541.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) = 7521.41873209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.677       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0534       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11660E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2572       1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.262       1.0000         .10000E-03   10000.    
    11 'norm      '    .14009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.331       1.0000         .10000E-03   10000.    
    17 'norm      '    .69737       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3026       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.409       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67727       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92021       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7521.415     FROM MIGRAD    STATUS=CONVERGED    454 CALLS     2239 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.669        34.117       -.66158E-05   -.41431E-04
   2  norm          2.0545        2.0576        .49754E-06   -.40046E-02
   3  Prefactor     10.860        12.281       -.75005E-09    .64335E-04
   4  Prefactor     3.8833        10.720       -.48027E-06   -.78423E-03
   5  Prefactor     .10000E-03    35.837       -.73113E-05** at limit **
   6  norm          .10001E-03    1.1039       -.55250E-06** at limit **
   7  Prefactor     .10000E-03    4.3147        .25367E-05** at limit **
   8  Prefactor     .10000E-03    20.111        .19664E-04** at limit **
   9  norm          1.2572        .87625       -.40929E-07   -.29042E-03
  10  Prefactor     51.263        58.417        .14584E-05    .21984E-04
  11  norm          .10002E-03    .47203       -.31165E-06** at limit **
  12  Prefactor     .10000E-03    6.2813        .27007E-05** at limit **
  13  norm          2.4226        4.9943       -.31412E-06   -.56551E-04
  14  Prefactor     .10000E-03    3.4467        .62952E-07** at limit **
  15  Prefactor     .10000E-03    17.650       -.14688E-04** at limit **
  16  Prefactor     33.329        16.741       -.68330E-06    .28446E-04
  17  norm          .69736        .75445       -.29453E-07   -.87492E-04
  18  norm          2.3026        1.5310        .99314E-08    .38272E-04
  19  Prefactor     13.407        13.412       -.13761E-06   -.22432E-05
  20  Normalizat    .67739        .23886        .12713E-05    .13297E-03
  21  Prefactor     .92019        .98864E-01    .42988E-07    .24773E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.6694
  norm       = 2.05451
  Prefactor  = 10.8597
  Prefactor  = 3.88331
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25721
  Prefactor  = 51.2628
  norm       = 0.000100024
  Prefactor  = 0.0001
  norm       = 2.42257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.3295
  norm       = 0.697358
  norm       = 2.30259
  Prefactor  = 13.4075
  Normalizat = 0.677392
  Prefactor  = 0.92019
 **********
 **   18 **HESSE 
 **********

 FCN=   7521.415     FROM HESSE     STATUS=OK           321 CALLS     2560 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.669        35.027        .50289E-04   -1.4110    
   2  norm          2.0545        4.8090        .13409E-02   -1.5421    
   3  Prefactor     10.860        12.230        .12156E-03   -1.5049    
   4  Prefactor     3.8833        10.978        .10243E-02   -1.5314    
   5  Prefactor     .10000E-03    35.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    4.2622        .17185E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.3474        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2572        .85943        .64835E-04   -1.5484    
  10  Prefactor     51.263        58.402        .56014E-04   -1.4275    
  11  norm          .10002E-03    5.8221        .11229E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.2904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4226        4.9716        .26298E-03   -1.5397    
  14  Prefactor     .10000E-03    3.4485        .15725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.329        16.762        .69408E-04   -1.4553    
  17  norm          .69736        .72236        .75995E-03   -1.5541    
  18  norm          2.3026        1.5350        .84452E-04   -1.5404    
  19  Prefactor     13.407        13.396        .10939E-03   -1.4975    
  20  Normalizat    .67739        .27014        .41996E-03   -1.0479    
  21  Prefactor     .92019        .11473        .16098E-03   -.95439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50243e-08
Minuit parameter uncertainties:
  1  35.0381
  2  4.8099
  3  12.2325
  4  10.9832
  5  6.25273e-05
  6  0.000316391
  7  1.22891e-06
  8  8.27726e-05
  9  0.859442
  10  58.4676
  11  0.000751303
  12  7.02537e-06
  13  4.97243
  14  2.46696e-07
  15  9.01533e-05
  16  16.7646
  17  0.722372
  18  1.53501
  19  13.3993
  20  0.270676
  21  0.114761
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.126e+01  5.847e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.202e-01  1.148e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  6.774e-01  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.80e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 2.36e-05

TS (Fixed Index): 1.09
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/85770/likelihoodResults_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.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): 102
logL (Free Index) = 7519.65849706
delta logL = 1.75695173268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7519.64192966
delta logL = 1.77351913156

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8356       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4098       1.0000          .0000       10.000    
     3 'Normalizat'    .55120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95311       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7519.642     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      246 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7911        52.770        .41562E-02   -.11099E-02
   2  Index         3.4127        1.9100        .80785E-01   -.16541E-03
   3  Normalizat    .55139        .86179E-01    .10440       -.22183E-04
   4  Prefactor     .95307        .34641E-01    .45678E-01   -.36590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.79113
  Index      = 3.41268
  Normalizat = 0.551386
  Prefactor  = 0.953073
 **********
 **   18 **HESSE 
 **********

 FCN=   7519.642     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7911        83.169        .10946E-03   -1.5227    
   2  Index         3.4127        2.7072        .31082E-02   -.32305    
   3  Normalizat    .55139        .26744        .46274E-03   -1.1009    
   4  Prefactor     .95307        .11490        .15834E-03   -.94310    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15167e-09
Minuit parameter uncertainties:
  1  43.9663
  2  2.88125
  3  0.268063
  4  0.114932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/85770': 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): 102
logL (Free Index) = 7519.64192328
delta logL = 1.77352551052

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  5.791e+00  4.397e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  3.413e+00  2.881e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  9.531e-01  1.149e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  5.514e-01  2.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.22
Ra Dec: 330.031 21.638
Photon Index (Free Index): 3.41 +/- 2.88
Photon Flux (Free Index): 1.29e-07 +/- 9.03e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.53e-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/85770/cmap_HighResolution_638755201_639014401_4FGL_J2200.1+2138_daily_bin1541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='2.19e-05', photon_flux_error='3.80e-08', dlogl='1.77e+00', energy_flux='2.07e-05', photon_flux2='1.29e-07', job_status='DONE', time_completed='2021-09-27 23:51:35.895445', photon_index_error2='2.88', photon_index2='3.41', ts='1.09', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.53e-05', EG='0.68', time_epoch_completed='1632811895.9', return_code='0', job_id='85770', GAL2='0.95', EG2='0.55', return_code2='102', energy_flux_error='2.36e-05', photon_flux_error2='9.03e-08', ts2='5.22', photon_index='2.04' WHERE bin_id='1541' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:51:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 85770: <4FGL_J2200.1+2138_daily_bin1541> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin1541> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Sep 27 23:35:23 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:35:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 23:35:25 2021
Terminated at Mon Sep 27 23:51:36 2021
Results reported at Mon Sep 27 23:51:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin1541 330.031 21.6382 638755201 639014401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.1+2138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   737.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

