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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin131
RA = 333.226, Dec = -25.4335
tmin = 273283201, tmax = 273542401
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='219800', job_status='RUN', time_executed='2021-09-28 06:58:54.179010', time_epoch_executed='1632837534.18' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219800/ft1_4FGL_J2212.9-2526_daily_bin131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219800/ft1_4FGL_J2212.9-2526_daily_bin131.fits outfile=/scratch/kocevski/219800/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin131.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=273283201.0 tmax=273542401.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.69
user 1.51
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.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/219800/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin131.fits evtable="EVENTS" outfile="/scratch/kocevski/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits" evtable="EVENTS" scfile=/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits sctable="SC_DATA" outfile=/scratch/kocevski/219800/ltcube_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.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/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits
.....................!
real 12.13
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits sctable="SC_DATA" expcube=/scratch/kocevski/219800/ltcube_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.fits outfile=/scratch/kocevski/219800/expmap_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.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/219800/ltcube_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.fits
.....................!
real 190.71
user 185.67
sys 4.73

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/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits scfile=/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits outfile=/scratch/kocevski/219800/cmap_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits scfile=/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits outfile=/scratch/kocevski/219800/cmap_HighResolution_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.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/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits evtable="EVENTS" scfile=/scratch/kocevski/219800/ft2_4FGL_J2212.9-2526_daily_bin131.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219800/Model_4FGL_J2212.9-2526_daily_bin131.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/219800/ft1_filtered_4FGL_J2212.9-2526_daily_bin131.fits....................!
real 59.87
user 58.35
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.385       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.315       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.561       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0431       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.810       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.391       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.008       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .31298E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1583       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2780       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61661       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.

 FCN=   7448.729     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3067 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.385        7.3283        .30064E-07    .37309E-04
   2  Prefactor     .10000E-03    1.1817       -.30569E-07** at limit **
   3  Prefactor     .10000E-03    5.2996       -.21171E-06** at limit **
   4  norm          17.394        9.1115        .53510E-07   -.30466E-04
   5  Prefactor     18.243        15.437       -.37152E-07   -.20746E-04
   6  Prefactor     .10000E-03    7.8236        .67284E-06** at limit **
   7  Prefactor     .10000E-03    47.463       -.19241E-04** at limit **
   8  norm          10.312        4.7651        .15863E-05   -.31964E-04
   9  Prefactor     14.561        13.444        .23654E-07   -.21713E-04
  10  norm          1.0431        .34788       -.86968E-07    .53182E-03
  11  Prefactor     2.9913        9.0944       -.76041E-06   -.24309E-03
  12  Prefactor     18.809        13.980        .45568E-07   -.22481E-04
  13  Prefactor     .10000E-03    5.7627        .15496E-06** at limit **
  14  Prefactor     .10000E-03    35.568        .16283E-04** at limit **
  15  norm          16.391        16.548       -.10263E-06   -.60466E-04
  16  Prefactor     .10000E-03    13.701        .96658E-05** at limit **
  17  norm          .10000E-03    .59424        .23978E-07** at limit **
  18  Prefactor     .10000E-03    17.544       -.12212E-04** at limit **
  19  Prefactor     .10000E-03    10.012       -.27145E-05** at limit **
  20  norm          .10000E-03    1.6953        .62648E-07** at limit **
  21  Prefactor     14.019        15.809       -.24494E-06   -.50152E-03
  22  Prefactor     .10012E-03    8.4960        .15728E-05** at limit **
  23  norm          4.1589        .94314       -.38969E-07   -.38477E-02
  24  Prefactor     .10000E-03    3.5279       -.16228E-06** at limit **
  25  Normalizat    1.2783        .17062       -.66677E-06   -.24254E-03
  26  Prefactor     .61641        .13251        .15944E-07   -.21966E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.3853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.3942
  Prefactor  = 18.2434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3122
  Prefactor  = 14.5613
  norm       = 1.04307
  Prefactor  = 2.99134
  Prefactor  = 18.809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.3915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.0192
  Prefactor  = 0.000100116
  norm       = 4.15889
  Prefactor  = 0.0001
  Normalizat = 1.27828
  Prefactor  = 0.61641
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.729     FROM HESSE     STATUS=OK           456 CALLS     3523 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.385        7.3346        .10948E-03   -1.4976    
   2  Prefactor     .10000E-03    1.1828        .91623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.3319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.394        9.1096        .96033E-04   -1.4874    
   5  Prefactor     18.243        15.430        .93770E-04   -1.4853    
   6  Prefactor     .10000E-03    7.8466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.312        4.7786        .11653E-03   -1.5066    
   9  Prefactor     14.561        13.438        .10496E-03   -1.4945    
  10  norm          1.0431        .34891        .27533E-04   -1.5504    
  11  Prefactor     2.9913        9.1024        .23450E-03   -1.5362    
  12  Prefactor     18.809        13.983        .92348E-04   -1.4840    
  13  Prefactor     .10000E-03    5.8444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.391        16.554        .98926E-04   -1.4898    
  16  Prefactor     .10000E-03    13.962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .59950        .64950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7208        .10956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.019        14.817        .10702E-03   -1.4959    
  22  Prefactor     .10012E-03    44.834        .39563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1589        .90738        .33626E-04   -1.5300    
  24  Prefactor     .10000E-03    3.5371        .15824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2783        .19958        .23396E-03   -.84217    
  26  Prefactor     .61641        .15507        .25827E-03   -1.0690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85142e-09
Minuit parameter uncertainties:
  1  7.33508
  2  3.69153e-07
  3  6.68123e-07
  4  9.11029
  5  15.4332
  6  1.44291e-05
  7  0.000109675
  8  4.77882
  9  13.4403
  10  0.348906
  11  9.10661
  12  13.9853
  13  1.2101e-06
  14  2.69021e-06
  15  16.5586
  16  7.42314e-05
  17  2.4369e-07
  18  4.61745e-06
  19  2.0834e-05
  20  1.60666e-06
  21  14.8213
  22  0.00455642
  23  0.907378
  24  2.46585e-06
  25  0.199703
  26  0.155177
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.881e+01  1.399e+01  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:  6.164e-01  1.552e-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.278e+00  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.29
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.51e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.06e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7448.72788177
delta logL = 0.00117210557619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7448.72737536
delta logL = 0.00167851761944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.354       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2993       1.0000          .0000       10.000    
     3 'Normalizat'    1.2759       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61759       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=   7448.727     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      273 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.363        16.414        .93488E-04    .33028E-03
   2  Index         2.2988        .78728        .95528E-02    .92669E-04
   3  Normalizat    1.2759        .19814        .23415E-03   -.10641E-03
   4  Prefactor     .61754        .15475        .25806E-03   -.21904E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3631
  Index      = 2.29882
  Normalizat = 1.27591
  Prefactor  = 0.617542
 **********
 **   18 **HESSE 
 **********

 FCN=   7448.727     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.363        15.750        .18698E-04   -1.4851    
   2  Index         2.2988        .75407        .38211E-03   -.57072    
   3  Normalizat    1.2759        .19774        .46829E-04   -.84288    
   4  Prefactor     .61754        .15468        .10322E-04   -1.0685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48159e-10
Minuit parameter uncertainties:
  1  15.7532
  2  0.758164
  3  0.197857
  4  0.154785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219800': 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) = 7448.72737508
delta logL = 0.00167880125446

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.836e+01  1.575e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.299e+00  7.582e-01  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:  6.175e-01  1.548e-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.276e+00  1.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.27
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 2.30 +/- 0.76
Photon Flux (Free Index): 3.68e-08 +/- 4.01e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.16e-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/219800/cmap_HighResolution_273283201_273542401_4FGL_J2212.9-2526_daily_bin131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.51e-08', energy_flux2='1.39e-05', photon_flux_error='2.61e-08', dlogl='1.68e-03', energy_flux='1.43e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2021-09-28 07:09:49.449220', photon_index_error2='0.76', photon_index2='2.30', ts='4.29', fit_tolerance='1e-08', GAL='0.62', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='1.28', time_epoch_completed='1632838189.45', return_code='0', job_id='219800', GAL2='0.62', EG2='1.28', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='4.01e-08', ts2='4.27', photon_index='2.26' WHERE bin_id='131' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:09:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 219800: <4FGL_J2212.9-2526_daily_bin131> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin131> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:55:39 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:55:42 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:42 2021
Terminated at Tue Sep 28 07:09:50 2021
Results reported at Tue Sep 28 07:09:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin131 333.226 -25.4335 273283201 273542401 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 :                                   654.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            851 sec.

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

