/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 156 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2212.9-2526_daily_bin49
RA = 333.226, Dec = -25.4335
tmin = 252028801, tmax = 252288001
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='219668', job_status='RUN', time_executed='2021-09-28 06:58:13.752027', time_epoch_executed='1632837493.75' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219668

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219668/ft1_4FGL_J2212.9-2526_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219668/ft1_4FGL_J2212.9-2526_daily_bin49.fits outfile=/scratch/kocevski/219668/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin49.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=252028801.0 tmax=252288001.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 1.44
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/219668/ltcube_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.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/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits
.....................!
real 12.81
user 12.44
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/219668/ltcube_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.fits outfile=/scratch/kocevski/219668/expmap_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.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/219668/ltcube_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.fits
.....................!
real 190.39
user 185.15
sys 4.88

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/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits scfile=/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits outfile=/scratch/kocevski/219668/cmap_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits scfile=/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits outfile=/scratch/kocevski/219668/cmap_HighResolution_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219668/Model_4FGL_J2212.9-2526_daily_bin49.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/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits....................!
real 52.60
user 51.17
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits', '/scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits', expMap='/scratch/kocevski/219668/expmap_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.fits', expCube='/scratch/kocevski/219668/ltcube_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219668/Model_4FGL_J2212.9-2526_daily_bin49.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/219668/ft1_filtered_4FGL_J2212.9-2526_daily_bin49.fits
Spacecraft file(s): /scratch/kocevski/219668/ft2_4FGL_J2212.9-2526_daily_bin49.fits
Exposure map: /scratch/kocevski/219668/expmap_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.fits
Exposure cube: /scratch/kocevski/219668/ltcube_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219668/Model_4FGL_J2212.9-2526_daily_bin49.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) = 6373.81944066

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4900       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    25.020       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.11       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77601E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .90471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .36511E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14694E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .50577       1.0000         .10000E-03   10000.    
    18 'Prefactor '    96.227       1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.029       1.0000         .10000E-03   10000.    
    20 'norm      '    7.9956       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1376       1.0000         .10000E-03   10000.    
    23 'norm      '    1.1344       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89703       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=   6373.727     FROM MIGRAD    STATUS=CONVERGED   1112 CALLS     3639 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4888        3.6943        .18306E-03   -.86947E-05
   2  Prefactor     .10000E-03    3.9690        .15476E-02** at limit **
   3  Prefactor     .10000E-03    7.5480        .18142E-02** at limit **
   4  norm          25.012        11.109        .80085E-04   -.18100E-03
   5  Prefactor     .10000E-03    21.691        .18142E-02** at limit **
   6  Prefactor     .10000E-03    10.898        .18142E-02** at limit **
   7  Prefactor     109.01        68.186        .19252E-03   -.31414E-03
   8  norm          1.0290        4.9264        .30628E-03   -.14113E-03
   9  Prefactor     .10008E-03    27.598        .40615E-02** at limit **
  10  norm          .90487        .41049        .31709E-04   -.27059E-02
  11  Prefactor     9.2893        9.0391        .13152E-03   -.76328E-04
  12  Prefactor     .10003E-03    13.337        .84975E-01** at limit **
  13  Prefactor     .10000E-03    3.2208        .13953E-02** at limit **
  14  Prefactor     .10000E-03    18.123        .18142E-02** at limit **
  15  norm          12.078        21.562        .11533E-03   -.11671E-03
  16  Prefactor     .10000E-03    17.810        .18142E-02** at limit **
  17  norm          .50426        2.2593        .20274E-03    .12566E-03
  18  Prefactor     96.331        66.350        .40975E-04    .19960E-03
  19  Prefactor     28.051        15.992        .75672E-04    .10712E-03
  20  norm          7.9962        4.4595        .11607E-03   -.16489E-03
  21  Prefactor     .10000E-03    8.0404        .18142E-02** at limit **
  22  Prefactor     4.1472        10.738        .99081E-03    .28203E-03
  23  norm          1.1341        .70211        .44181E-04   -.19943E-03
  24  Prefactor     .10000E-03    10.179        .18142E-02** at limit **
  25  Normalizat    1.0036        .24871        .27342E-03   -.12811E-03
  26  Prefactor     .89780        .18181        .22713E-03   -.37349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.0122
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 109.013
  norm       = 1.02897
  Prefactor  = 0.000100077
  norm       = 0.904875
  Prefactor  = 9.2893
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.0777
  Prefactor  = 0.000100001
  norm       = 0.504257
  Prefactor  = 96.3307
  Prefactor  = 28.051
  norm       = 7.99617
  Prefactor  = 0.0001
  Prefactor  = 4.14721
  norm       = 1.1341
  Prefactor  = 0.0001
  Normalizat = 1.00362
  Prefactor  = 0.897803
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.727     FROM HESSE     STATUS=OK           440 CALLS     4079 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4888        3.6943        .73222E-05   -1.5392    
   2  Prefactor     .10000E-03    3.9698        .30953E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          25.012        11.108        .32034E-05   -1.4707    
   5  Prefactor     .10000E-03    21.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.898        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     109.01        68.153        .38505E-04   -1.3616    
   8  norm          1.0290        4.9116        .12251E-04   -1.5505    
   9  Prefactor     .10008E-03    27.861        .81229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .90487        .41026        .12684E-05   -1.5518    
  11  Prefactor     9.2893        9.0392        .52607E-05   -1.5098    
  12  Prefactor     .10003E-03    12.687        .88576E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2212        .27906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.078        21.560        .46132E-05   -1.5013    
  16  Prefactor     .10000E-03    17.821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .50426        2.2523        .81097E-05   -1.5566    
  18  Prefactor     96.331        66.230        .81950E-05   -1.3742    
  19  Prefactor     28.051        15.991        .30269E-05   -1.4648    
  20  norm          7.9962        4.4565        .23213E-04   -1.5142    
  21  Prefactor     .10000E-03    8.0411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1472        10.692        .39633E-04   -1.5301    
  23  norm          1.1341        .70051        .17672E-05   -1.5495    
  24  Prefactor     .10000E-03    10.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0036        .24888        .10937E-04   -.92909    
  26  Prefactor     .89780        .18197        .45425E-04   -.96218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94625e-09
Minuit parameter uncertainties:
  1  3.69466
  2  1.21079e-05
  3  9.19277e-05
  4  11.1089
  5  0.000135227
  6  0.000246281
  7  68.2021
  8  4.49654
  9  0.00292162
  10  0.410265
  11  9.04048
  12  0.00126099
  13  1.82494e-05
  14  4.57866e-05
  15  21.5737
  16  0.000243603
  17  2.13134
  18  66.281
  19  15.9936
  20  4.45663
  21  4.45593e-05
  22  10.6972
  23  0.70051
  24  4.75313e-05
  25  0.249172
  26  0.182088
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.261e-03  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:  8.978e-01  1.821e-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:  1.004e+00  2.492e-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: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219668/likelihoodResults_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.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) = 6373.72701131
delta logL = -1.41009259096e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6373.72701131
delta logL = -1.40955544339e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96356E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2551       1.0000          .0000       10.000    
     3 'Normalizat'    1.0036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89781       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6373.724     FROM MIGRAD    STATUS=CONVERGED    159 CALLS      329 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87314        39.675        .18143E-02    .19337E-03
   2  Index         1.7954        2.9624        .36647E-01   -.43931E-05
   3  Normalizat    1.0039        .21947        .27338E-03   -.18755E-04
   4  Prefactor     .89693        .17469        .22723E-03   -.17211E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.873142
  Index      = 1.79536
  Normalizat = 1.0039
  Prefactor  = 0.896932
 **********
 **   18 **HESSE 
 **********

 FCN=   6373.724     FROM HESSE     STATUS=OK            27 CALLS      356 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87314        38.688        .36285E-03   -1.5521    
   2  Index         1.7954        2.9427        .14659E-02   -.69571    
   3  Normalizat    1.0039        .21966        .10935E-04   -.92900    
   4  Prefactor     .89693        .17480        .90891E-05   -.96248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.67881e-12
Minuit parameter uncertainties:
  1  11.6315
  2  3.3533
  3  0.219856
  4  0.174907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219668': 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) = 6373.7240207
delta logL = 0.00297651187429

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  8.731e-01  1.163e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  1.795e+00  3.353e+00  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:  8.969e-01  1.749e-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:  1.004e+00  2.199e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/219668/cmap_HighResolution_252028801_252288001_4FGL_J2212.9-2526_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-28 07:09:59.828285', job_id='219668', GAL2='0.90', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632838199.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.98e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='49' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:09:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 219668: <4FGL_J2212.9-2526_daily_bin49> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin49> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:55:28 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:55:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:55:30 2021
Terminated at Tue Sep 28 07:10:00 2021
Results reported at Tue Sep 28 07:10:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin49 333.226 -25.4335 252028801 252288001 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 :                                   704.16 sec.
    Max Memory :                                 1122 MB
    Average Memory :                             249.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

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

