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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1192
RA = 183.001, Dec = -23.4494
tmin = 548294401, tmax = 548553601
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='410154', job_status='RUN', time_executed='2021-09-05 04:04:27.769633', time_epoch_executed='1630839867.77' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410154

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410154/ft1_4FGL_J1212.0-2326_daily_bin1192.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410154/ft1_4FGL_J1212.0-2326_daily_bin1192.fits outfile=/scratch/kocevski/410154/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1192.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=548294401.0 tmax=548553601.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.87
user 3.64
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.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/410154/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1192.fits evtable="EVENTS" outfile="/scratch/kocevski/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.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/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits" evtable="EVENTS" scfile=/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits sctable="SC_DATA" outfile=/scratch/kocevski/410154/ltcube_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.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/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits
.....................!
real 11.90
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits sctable="SC_DATA" expcube=/scratch/kocevski/410154/ltcube_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.fits outfile=/scratch/kocevski/410154/expmap_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.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/410154/ltcube_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.fits
.....................!
real 190.80
user 185.41
sys 5.06

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits scfile=/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits outfile=/scratch/kocevski/410154/cmap_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.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=183.001 yref=-23.4494 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits scfile=/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits outfile=/scratch/kocevski/410154/cmap_HighResolution_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.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=183.001 yref=-23.4494 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/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits evtable="EVENTS" scfile=/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410154/Model_4FGL_J1212.0-2326_daily_bin1192.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/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits.....................!
real 62.97
user 61.61
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits', '/scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits', expMap='/scratch/kocevski/410154/expmap_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.fits', expCube='/scratch/kocevski/410154/ltcube_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410154/Model_4FGL_J1212.0-2326_daily_bin1192.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410154/ft1_filtered_4FGL_J1212.0-2326_daily_bin1192.fits
Spacecraft file(s): /scratch/kocevski/410154/ft2_4FGL_J1212.0-2326_daily_bin1192.fits
Exposure map: /scratch/kocevski/410154/expmap_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.fits
Exposure cube: /scratch/kocevski/410154/ltcube_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410154/Model_4FGL_J1212.0-2326_daily_bin1192.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) = 7210.37531177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.870       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.675       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17043E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17130E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .23194E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.630       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5093       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9965       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.776       1.0000         .10000E-03   10000.    
    19 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6819       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7210.359     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2816 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.871        19.794       -.51808E-06   -.14127E-04
   2  Prefactor     .10000E-03    61.306       -.50763E-06** at limit **
   3  norm          1.1695        2.0155        .35368E-06   -.19614E-04
   4  Prefactor     .10000E-03    108.88        .13023E-05** at limit **
   5  Prefactor     4.6161        5.1703        .47837E-05   -.32542E-03
   6  Prefactor     .10000E-03    9.0306       -.15031E-06** at limit **
   7  norm          10.462        22.657        .90789E-07   -.39226E-05
   8  Prefactor     31.646        18.909       -.39068E-06    .44258E-04
   9  norm          1.2311        4.3797        .12205E-05    .37148E-04
  10  Prefactor     .10025E-03    2.2300       -.49393E-06** at limit **
  11  Prefactor     .10000E-03    146.25       -.10753E-04** at limit **
  12  Prefactor     .10000E-03    93.114        .63352E-06** at limit **
  13  Prefactor     .10000E-03    22.993       -.95912E-05** at limit **
  14  Prefactor     47.452        56.876       -.40290E-06   -.21655E-03
  15  Prefactor     .10000E-03    9.0798        .12959E-06** at limit **
  16  Prefactor     6.5101        12.230        .32320E-06   -.54701E-05
  17  Prefactor     4.9966        2.9919       -.27008E-07    .90736E-05
  18  Prefactor     13.779        12.233        .24968E-06   -.13543E-04
  19  norm          .10000E-03    .38589        .10270E-06** at limit **
  20  Prefactor     .10000E-03    28.922        .27936E-06** at limit **
  21  norm          .10000E-03    2.9067        .27251E-06** at limit **
  22  Prefactor     .10000E-03    1.7443        .14065E-06** at limit **
  23  Normalizat    1.6819        .25553       -.13246E-05    .66959E-04
  24  Prefactor     .82666        .11646        .22630E-06   -.16160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8706
  Prefactor  = 0.000100001
  norm       = 1.16947
  Prefactor  = 0.000100001
  Prefactor  = 4.61613
  Prefactor  = 0.0001
  norm       = 10.4618
  Prefactor  = 31.6463
  norm       = 1.23108
  Prefactor  = 0.000100255
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 47.4516
  Prefactor  = 0.0001
  Prefactor  = 6.51006
  Prefactor  = 4.99658
  Prefactor  = 13.7785
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.68189
  Prefactor  = 0.826658
 **********
 **   18 **HESSE 
 **********

 FCN=   7210.359     FROM HESSE     STATUS=OK           409 CALLS     3225 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.871        19.802        .12152E-03   -1.5048    
   2  Prefactor     .10000E-03    61.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1695        1.9842        .15223E-03   -1.5492    
   4  Prefactor     .10000E-03    109.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6161        5.1739        .93666E-03   -1.5278    
   6  Prefactor     .10000E-03    9.0352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.462        22.654        .12389E-03   -1.5061    
   8  Prefactor     31.646        18.484        .71194E-04   -1.4582    
   9  norm          1.2311        4.2243        .29060E-03   -1.5486    
  10  Prefactor     .10025E-03    3.9327        .44040E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    147.38        .20363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    94.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     47.452        56.636        .29050E-03   -1.4329    
  15  Prefactor     .10000E-03    9.0943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5101        12.261        .15730E-03   -1.5198    
  17  Prefactor     4.9966        3.0009        .10222E-03   -1.5261    
  18  Prefactor     13.779        12.237        .53958E-03   -1.4965    
  19  norm          .10000E-03    3.3657        .10081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.9533        .14135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7540        .10951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6819        .30428        .32197E-03   -.72788    
  24  Prefactor     .82666        .13889        .20284E-03   -.98753    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95234e-10
Minuit parameter uncertainties:
  1  19.8139
  2  0.000491536
  3  1.98434
  4  0.00054454
  5  5.17445
  6  2.54294e-05
  7  22.6728
  8  18.4872
  9  4.22528
  10  0.00200283
  11  0.00079215
  12  0.000809986
  13  0.000176589
  14  56.7007
  15  1.023e-05
  16  12.2662
  17  3.00096
  18  12.2397
  19  7.76751e-05
  20  5.25873e-05
  21  2.14424e-07
  22  8.33401e-09
  23  0.304622
  24  0.138947
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.766e-04  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.267e-01  1.389e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.682e+00  3.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 8.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410154/likelihoodResults_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.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) = 7210.35933856
delta logL = -0.000207119791412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7210.35913236
delta logL = -9.11584720598e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7210.359     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      234 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.934        .90712E-02** at limit **
   2  Index         1.9491        5.0598        .50000        .86017E-05
   3  Normalizat    1.6819        .11666E-01    .72774E-01   -.24581E-03
   4  Prefactor     .82666        .54294E-02    .44063E-01   -.58235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.94911
  Normalizat = 1.68189
  Prefactor  = 0.826658
 **********
 **   18 **HESSE 
 **********

 FCN=   7210.359     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    869.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9491        5.2475        .50000       -.65628    
   3  Normalizat    1.6819        .43371E-01    .32197E-03   -.72788    
   4  Prefactor     .82666        .20196E-01    .20284E-03   -.98753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.74284e-11
Minuit parameter uncertainties:
  1  0.00216233
  2  25.4128
  3  0.0433715
  4  0.0201966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410154': 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) = 7210.35913155
delta logL = -1.05031176645e-07

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.162e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.949e+00  2.541e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.267e-01  2.020e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.682e+00  4.337e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

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/410154/cmap_HighResolution_548294401_548553601_4FGL_J1212.0-2326_daily_bin1192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-05 04:17:08.564656', job_id='410154', GAL2='0.83', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1630840628.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1192' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 410154: <4FGL_J1212.0-2326_daily_bin1192> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1192> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:00:37 2021
Job was executed on host(s) <bullet0182>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:00:38 2021
Terminated at Sun Sep  5 04:17:09 2021
Results reported at Sun Sep  5 04:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1192 183.001 -23.4494 548294401 548553601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   746.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

