/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 81 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 = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2212.9-2526_daily_bin450
RA = 333.226, Dec = -25.4335
tmin = 355968001, tmax = 356227201
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='221344', job_status='RUN', time_executed='2021-09-28 07:02:10.973217', time_epoch_executed='1632837730.97' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221344/ft1_4FGL_J2212.9-2526_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221344/ft1_4FGL_J2212.9-2526_daily_bin450.fits outfile=/scratch/kocevski/221344/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin450.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=355968001.0 tmax=356227201.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 3.38
user 3.16
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.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/221344/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin450.fits evtable="EVENTS" outfile="/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/221344/ltcube_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.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/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/221344/ltcube_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.fits outfile=/scratch/kocevski/221344/expmap_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.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/221344/ltcube_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.fits
.....................!
real 191.25
user 185.34
sys 5.53

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

Setting source of interest to:
4FGL J2212.9-2526 @ 333.226 -25.4335

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits scfile=/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits outfile=/scratch/kocevski/221344/cmap_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.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=333.226 yref=-25.4335 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits scfile=/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits outfile=/scratch/kocevski/221344/cmap_HighResolution_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.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=333.226 yref=-25.4335 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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221344/Model_4FGL_J2212.9-2526_daily_bin450.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/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits.....................!
real 62.18
user 60.83
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits', '/scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits', expMap='/scratch/kocevski/221344/expmap_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.fits', expCube='/scratch/kocevski/221344/ltcube_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/221344/Model_4FGL_J2212.9-2526_daily_bin450.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2212.9-2526'

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/221344/ft1_filtered_4FGL_J2212.9-2526_daily_bin450.fits
Spacecraft file(s): /scratch/kocevski/221344/ft2_4FGL_J2212.9-2526_daily_bin450.fits
Exposure map: /scratch/kocevski/221344/expmap_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.fits
Exposure cube: /scratch/kocevski/221344/ltcube_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/221344/Model_4FGL_J2212.9-2526_daily_bin450.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) = 7927.13476336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.0771       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4846       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80859E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .41099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0606       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.788       1.0000         .10000E-03   10000.    
    20 'norm      '    20.290       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.338       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8677       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .95496       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83559       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93325       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7927.052     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2687 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9808         .0000    ** at limit **
   2  Prefactor     3.8155        4.6345         .0000        .87948E-02
   3  Prefactor     .10000E-03    4.1415         .0000    ** at limit **
   4  norm          3.8829        5.1687         .0000        .88030E-02
   5  Prefactor     .10000E-03    15.055         .0000    ** at limit **
   6  Prefactor     .10000E-03    7.0361         .0000    ** at limit **
   7  Prefactor     .10000E-03    27.622         .0000    ** at limit **
   8  norm          5.0783        4.1541         .0000        .87802E-03
   9  Prefactor     3.4833        8.8944         .0000        .29870E-03
  10  norm          1.1672        .33152         .0000       -.15276E-03
  11  Prefactor     .10000E-03    4.1980         .0000    ** at limit **
  12  Prefactor     .10000E-03    3.9831         .0000    ** at limit **
  13  Prefactor     .10015E-03    2.7676         .0000    ** at limit **
  14  Prefactor     .10000E-03    42.288         .0000    ** at limit **
  15  norm          .10000E-03    7.4362         .0000    ** at limit **
  16  Prefactor     .10000E-03    3.8333         .0000    ** at limit **
  17  norm          2.0606        1.6542         .0000        .27329E-03
  18  Prefactor     .10000E-03    20.387         .0000    ** at limit **
  19  Prefactor     14.789        10.401         .0000        .12574E-03
  20  norm          20.291        6.4132         .0000        .81610E-03
  21  Prefactor     .10000E-03    4.6129         .0000    ** at limit **
  22  Prefactor     11.328        13.230         .0000       -.96198E-03
  23  norm          1.8679        .85937         .0000        .36592E-03
  24  Prefactor     .93996        12.557         .0000       -.12178E-03
  25  Normalizat    .83558        .16267         .0000        .38018E-05
  26  Prefactor     .93324        .12754         .0000       -.18934E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.81554
  Prefactor  = 0.0001
  norm       = 3.88294
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.07825
  Prefactor  = 3.48326
  norm       = 1.16716
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100145
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.06063
  Prefactor  = 0.000100002
  Prefactor  = 14.7889
  norm       = 20.2915
  Prefactor  = 0.0001
  Prefactor  = 11.3283
  norm       = 1.86788
  Prefactor  = 0.939957
  Normalizat = 0.835584
  Prefactor  = 0.933239
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.052     FROM HESSE     STATUS=OK           476 CALLS     3163 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9874        .12237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8155        4.6331        .10175E-02   -1.5317    
   3  Prefactor     .10000E-03    4.1592        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8829        5.1600        .10239E-02   -1.5314    
   5  Prefactor     .10000E-03    15.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.0783        4.1634        .14529E-03   -1.5257    
   9  Prefactor     3.4833        8.8766        .21661E-03   -1.5335    
  10  norm          1.1672        .33208        .25273E-04   -1.5492    
  11  Prefactor     .10000E-03    8.7623        .55890E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9943        .17353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10015E-03    5.2192        .50286E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.4640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8535        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0606        1.6444        .99255E-04   -1.5421    
  18  Prefactor     .10000E-03    20.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.789        10.418        .10415E-03   -1.4939    
  20  norm          20.291        6.4019        .88919E-04   -1.4807    
  21  Prefactor     .10000E-03    4.6137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.328        13.054        .11898E-03   -1.5035    
  23  norm          1.8679        .87775        .43763E-04   -1.5435    
  24  Prefactor     .93996        38.125        .46479E-02   -1.5514    
  25  Normalizat    .83558        .19489        .26722E-03   -.98762    
  26  Prefactor     .93324        .15323        .20847E-03   -.94989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9519e-09
Minuit parameter uncertainties:
  1  2.06358e-07
  2  4.63355
  3  3.32271e-06
  4  5.16063
  5  0.000282264
  6  7.04464e-06
  7  0.000452194
  8  4.16363
  9  8.87991
  10  0.332076
  11  0.000343441
  12  3.09282e-06
  13  0.00174259
  14  0.000221787
  15  1.15726e-05
  16  1.50856e-06
  17  1.64441
  18  0.000427988
  19  10.4191
  20  6.40212
  21  1.7068e-06
  22  13.057
  23  0.87776
  24  11.9802
  25  0.195052
  26  0.153305
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  3.093e-06  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.332e-01  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.356e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 3.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221344/likelihoodResults_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.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) = 7927.05350646
delta logL = -0.00119128507959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7927.05231521
delta logL = -3.07090886054e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7927.052     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      236 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10080E-03    58.037        .17439E-02** at limit **
   2  Index         2.1920        7.5070        .50000        .19564E-04
   3  Normalizat    .83558        .14421E-01    .26722E-03   -.17103E-04
   4  Prefactor     .93324        .11900E-01    .20847E-03   -.82345E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100799
  Index      = 2.19197
  Normalizat = 0.835584
  Prefactor  = 0.933239
 **********
 **   18 **HESSE 
 **********

 FCN=   7927.052     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10080E-03    244.63        .34879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1920        7.6284        .50000       -.59632    
   3  Normalizat    .83558        .31429E-01    .10689E-04   -.98762    
   4  Prefactor     .93324        .25933E-01    .83389E-05   -.94989    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35768e-08
Minuit parameter uncertainties:
  1  0.0280774
  2  740.471
  3  0.0314295
  4  0.0259329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221344': 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) = 7927.05231495
delta logL = 2.30063051276e-07

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.008e-04  2.808e-02  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.192e+00  7.405e+02  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.332e-01  2.593e-02  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  8.356e-01  3.143e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 333.226 -25.433

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/221344/cmap_HighResolution_355968001_356227201_4FGL_J2212.9-2526_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-03', job_status='DONE', photon_flux_upper_limit='3.45e-08', time_completed='2021-09-28 07:14:27.337229', job_id='221344', GAL2='0.93', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632838467.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='450' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:14:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 221344: <4FGL_J2212.9-2526_daily_bin450> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin450> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:38 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:00:40 2021
Terminated at Tue Sep 28 07:14:28 2021
Results reported at Tue Sep 28 07:14:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin450 333.226 -25.4335 355968001 356227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2212.9-2526 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.12 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             311.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            830 sec.

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

